/* Productos Page Styles */

body {
    background: linear-gradient(120deg, #184f36 0%, #1f7a57 42%, #1a6b4d 100%);
    color: #333;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    opacity: 0.35;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.10), transparent 14%),
        radial-gradient(circle at 50% 70%, rgba(255,255,255,0.08), transparent 12%),
        repeating-radial-gradient(circle at 95% 90%, rgba(255,255,255,0.08) 0 2px, transparent 2px 30px),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 38px);
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

.hero-productos {
    position: relative;
    overflow: visible;
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    background:
        linear-gradient(120deg, rgba(24,79,54,0.78) 0%, rgba(31,122,87,0.65) 42%, rgba(26,107,77,0.82) 100%),
        url('images/banner-producto.png') center/cover no-repeat;
    background-blend-mode: multiply;
    /* Suavizar la transición: eliminar borde duro y usar sombra interior difuminada */
    border-bottom: none;
    box-shadow: inset 0 -60px 60px -20px rgba(0,0,0,0.45), inset 0 0 120px rgba(0,0,0,0.18), 0 24px 40px -18px rgba(0,0,0,0.35);
}

.hero-productos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/banner-producto.png') center/cover no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.hero-productos::after {
    content: '';
    position: absolute;
    top: 12%;
    right: -8rem;
    width: 34rem;
    height: 20rem;
    border-radius: 50% 45% 42% 52% / 58% 50% 48% 46%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18), transparent 48%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
    animation: driftGlow 28s ease-in-out infinite;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-image {
    flex: 1 1 420px;
    display: flex;
    justify-content: left;
    position: relative;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22rem;
    height: 22rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 54%);
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

@keyframes floatBubbles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}

@keyframes heroShine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes driftGlow {
    0% { transform: translateX(0) rotate(12deg); opacity: 0.95; }
    50% { transform: translateX(10px) rotate(15deg); opacity: 0.88; }
    100% { transform: translateX(0) rotate(12deg); opacity: 0.95; }
}

.hero-productos h1 {
    font-family: 'Montserrat-ExtraBold', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.45);
    position: relative;
    z-index: 1;
}

.hero-productos p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.94);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.25);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-text h1 {
    text-align: left;
}

.hero-image {
    flex: 1 1 420px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at center, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse 70% 100% at center, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

@media (max-width: 900px) {
    .hero-productos {
        padding: 80px 0 40px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1,
    .hero-text p {
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }
}

/* Estilos adicionales para la sección Elegirnos en Promo */
.promo-list-v2 {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.promo-list-v2 li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--gris-texto);
}

.promo-list-v2 li i {
    color: var(--verde-principal);
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-promo-card {
    padding: 25px;
    background: white;
    border-top: 4px solid var(--verde-principal);
}

.contact-promo-card h4 {
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contact-promo-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-promo-item i {
    color: var(--verde-medio);
    font-size: 1.1rem;
}

.contact-promo-map {
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.08));
}

@media (max-width: 600px) {
    .contact-promo-card { padding: 15px; }
}

/* Estilos específicos para la galería del espacio en Promo */
.space-gallery {
    background: rgba(255, 255, 255, 0.05);
    padding-bottom: 100px;
}

.space-gallery .section-header h2 {
    color: white;
}

/* Botón Flotante de WhatsApp con Texto */
.whatsapp-fab-text {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Montserrat-Bold', sans-serif;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-fab-text:hover {
    transform: scale(1.05) translateY(-5px);
    background: #128C7E;
    color: white;
}

.nosotras-img {
    width: 100%;
    max-width: 340px;
    display: block;
    margin: 2.5rem auto 0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Centrado y recuadro con mucha transparencia para el banner de promo */
.promo-banner .hero-inner {
    justify-content: center;
    text-align: center;
}

.promo-banner .hero-image {
    display: none; /* Quitamos el espacio lateral de la imagen para centrar el texto */
}

.promo-banner .hero-text {
    flex: 0 1 900px;
    background: rgba(0, 0, 0, 0.322); /* Transparencia aumentada para mayor sutileza */
    padding: 50px;
    border-radius: 32px;
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    text-align: center;
}

.promo-banner .hero-text h1, 
.promo-banner .hero-description {
    text-align: center !important;
}

.promo-banner .promo-features {
    list-style: none;
    padding: 0;
    margin: 25px auto;
    display: inline-block;
    text-align: left; /* Los ítems alineados a la izquierda dentro del bloque centrado */
}

/* Products Section */
.services-slider {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.services-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradiente superior para mezclar con el banner y evitar corte brusco */
    background:
        linear-gradient(to top, rgba(26,107,77,0.95) 0%, rgba(26,107,77,0.0) 55%),
        radial-gradient(circle at top center, rgba(255,255,255,0.06), transparent 30%);
    pointer-events: none;
    opacity: 0.95;
    z-index: 0;
}

.services-slider .slider {
    overflow: hidden;
    padding: 10px 0 5px;
    position: relative;
    z-index: 1;
}

.services-slider .slider-track {
    display: flex;
    gap: 28px;
    animation: scroll-left 36s linear infinite;
}

.services-slider .slide {
    flex: 0 0 auto;
    width: 340px;
    min-width: 340px;
    height: 400px; /* Definimos una altura fija para que todas las tarjetas sean uniformes */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.services-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para mostrar la imagen completa sin recortes */
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.services-slider .slide:hover img {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.03);
}

.slider-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro para que la imagen resalte */
}

.slider-modal-content {
    width: 96vw; /* Ocupa el 96% del ancho de la pantalla */
    max-width: 1600px; /* Incrementamos el límite a 1600px */
    max-height: 98vh;
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh; /* Le damos mucha más prioridad de altura a la imagen */
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.close-slider-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 3.5rem; /* X más grande para que sea fácil de cerrar */
    color: white; /* Blanco para que sea visible sobre el fondo oscuro */
    cursor: pointer;
    z-index: 3;
}

.solicitar-btn {
    display: none;
    margin: 18px 0 24px;
    padding: 14px 32px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 999px;
    background: var(--verde-principal);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solicitar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 840px) {
    .services-slider .slide {
        width: min(90vw, 380px);
        min-width: auto;
    }
}

.products-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.14), transparent 32%);
    pointer-events: none;
    opacity: 0.45;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 127, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--verde-principal);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Montserrat-SemiBold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: var(--verde-oscuro);
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 1.3rem;
    color: var(--verde-fuerte);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--gris-texto);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 1.4rem;
    color: var(--verde-principal);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--verde-principal);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Montserrat-SemiBold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.add-to-cart-btn:hover {
    background: var(--verde-oscuro);
    transform: translateY(-2px);
}

/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--verde-principal);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-icon:hover {
    transform: scale(1.1);
    background: var(--verde-oscuro);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--naranja-acento);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-family: 'Montserrat-Bold', sans-serif;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.cart-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--verde-claro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--verde-principal);
    color: white;
}

.cart-header h3 {
    margin: 0;
    font-family: 'Montserrat-Bold', sans-serif;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--verde-claro);
}

.cart-item-info {
    flex: 1;
    margin-left: 15px;
}

.cart-item-name {
    font-family: 'Montserrat-SemiBold', sans-serif;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--verde-principal);
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    background: var(--verde-claro);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    background: var(--rojo-advertencia);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--verde-claro);
    background: var(--beige-fondo);
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--verde-fuerte);
}

.checkout-btn {
    width: 100%;
    background: var(--naranja-acento);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Montserrat-Bold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.checkout-btn:hover {
    background: var(--naranja-acento);
    transform: translateY(-2px);
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.product-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--verde-principal);
    z-index: 1;
}

.product-detail {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.product-detail-image {
    flex: 1;
    max-width: 400px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 10px;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h2 {
    font-family: 'Montserrat-Bold', sans-serif;
    color: var(--verde-fuerte);
    margin-bottom: 15px;
    font-size: 2rem;
}

.product-detail-info p {
    color: var(--gris-texto);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin: 20px 0;
}

.product-features li {
    padding: 5px 0;
    color: var(--gris-texto);
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--verde-principal);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-productos h1 {
        font-size: 2.5rem;
    }
    
    .hero-productos p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    
    .cart-content {
        width: 100%;
        max-width: 350px;
    }
    
    .product-detail {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .hero-productos {
        padding: 100px 0 60px;
    }
    
    .hero-productos h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        width: 100%;
        max-width: none;
    }
}

/* Forzar imagen de fondo del banner de productos */
.hero-productos {
    background-image: url('images/banner-producto.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: multiply !important;
    position: relative;
}

/* Cortina negra semitransparente encima del banner pero debajo del contenido */
.hero-productos::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* 50% para oscurecer imagen sin opacar texto */
    z-index: 1;
    pointer-events: none;
}

/* Asegurar que el contenido del banner quede por encima de la cortina */
.hero-productos .hero-inner {
    position: relative;
    z-index: 2;
}

.hero-productos .hero-text,
.hero-productos h1,
.hero-productos p {
    position: relative;
    z-index: 3;
    color: #fff;
    opacity: 1;
}

/* Mejoras de responsive y usabilidad táctil */
:root {
    --max-content-width: 1200px;
    --page-gap: 1rem;
}

/* Touch-friendly slider y ajustes generales */
.services-slider {
    -webkit-overflow-scrolling: touch;
}

.services-slider .slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.services-slider .slider-track {
    display: flex;
    gap: 20px;
    scroll-snap-align: start;
}

.services-slider .slide {
    scroll-snap-align: center;
    width: min(86vw, 340px);
    min-width: 280px;
}

/* Aumentar hit-targets en botones para móvil */
.quick-view-btn,
.add-to-cart-btn,
.checkout-btn,
.solicitar-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

/* Breakpoints refinados */
@media (max-width: 1100px) {
    .hero-productos {
        padding: 80px 0 36px;
    }

    .hero-inner {
        gap: 2rem;
        padding: 0 18px;
    }

    .hero-image img {
        max-width: 420px;
        height: auto;
    }
}

@media (max-width: 900px) {
    .hero-productos {
        padding: 64px 0 28px;
    }

    .hero-inner {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text,
    .hero-text h1,
    .hero-text p {
        text-align: center;
    }

    .hero-image img {
        max-width: 380px;
        height: auto;
    }

    .services-slider {
        padding: 48px 0;
    }

    .services-slider .slider-track {
        gap: 16px;
    }

    .services-slider .slide {
        width: min(88vw, 360px);
    }
}

@media (max-width: 600px) {
    /* Banner: reducir espacio, mejorar legibilidad y rendimiento */
    .hero-productos {
        padding: 36px 0 18px;
        background-position: center top !important;
        box-shadow: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Ocultar decoraciones pesadas en móviles */
    .hero-productos::after {
        display: none !important; /* elimina el blob animado */
    }

    .hero-productos::before {
        background-position: center top;
        filter: blur(2px);
        opacity: 0.95;
    }

    /* Forzar overlay más ligero y consistente (sobrescribe inline si existe) */
    .hero-overlay-black,
    .hero-productos .hero-overlay-black {
        background: rgba(0,0,0,0.42) !important;
        pointer-events: none;
    }

    /* Tipografía y espaciado */
    .hero-productos h1 {
        font-size: 1.6rem;
        line-height: 1.18;
        margin-bottom: 10px;
        padding: 0 10px;
        text-align: center;
    }

    .hero-productos p {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 14px;
        margin: 0 auto 8px;
        text-align: center;
    }

    .hero-inner {
        padding: 0 12px;
        gap: 0.75rem;
    }

    /* Imagen: tamaño reducido, centrada y sin máscaras complejas */
    .hero-image {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-image img {
        width: 72%;
        max-width: 300px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* Ajustes generales para secciones y grid */
    .products-section,
    .services-slider {
        padding: 36px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 16px;
    }

    .solicitar-btn {
        display: inline-block;
        width: auto;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .cart-icon {
        width: 52px;
        height: 52px;
        top: 12px;
        right: 12px;
    }

    /* Mejorar hit-targets en hero para accesibilidad táctil */
    .hero-productos .btn,
    .hero-productos a {
        padding: 10px 14px;
        font-size: 0.95rem;
        display: inline-block;
        touch-action: manipulation;
    }
}

/* Pequeños ajustes para pantallas muy pequeñas */
@media (max-width: 420px) {
    .hero-productos {
        padding: 40px 0 20px;
    }

    .hero-productos h1 {
        font-size: 1.6rem;
    }

    .hero-productos p {
        font-size: 0.95rem;
    }

    .services-slider .slide {
        width: min(92vw, 340px);
    }
}

/* Mejora específica para secciones "Importancia" y "Especiales" en móvil */
@media (max-width: 800px) {
    /* Forzar disposición en columna para evitar elementos apretados */
    .importance .importance-content,
    #importancia .importance-content,
    .about.about-content,
    #especiales .about-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    /* Texto: aumentar legibilidad y espacio */
    .importance-text,
    .about-text {
        padding: 0 12px;
    }

    .importance-points,
    .about-panel {
        display: block;
    }

    .importance-points .point {
        margin-bottom: 14px;
        padding: 0 6px;
    }

    .importance-points .point h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .importance-points .point p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    /* Visual: apilar imágenes y centrar */
    .importance-visual,
    .spine-health-illustration,
    .spine-images {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
        padding: 0 12px 12px;
    }

    .spine-images .healthy-spine-image,
    .spine-images .unhealthy-spine-image,
    .about-image-card {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    .spine-images img,
    .about-image-card img,
    .about-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 12px;
    }

    /* Especiales: ajustar panel y lista de características */
    #especiales .about-features,
    .about-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px 20px;
    }

    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Evitar que imágenes desborden */
    .about-image-card,
    .importance-visual {
        overflow: hidden;
    }

    /* Reducir márgenes excesivos en contenedores */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Botones y enlaces más accesibles */
    .btn {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

/* Ajustes finos para pantallas muy pequeñas (<= 420px) */
@media (max-width: 420px) {
    .importance-points .point h4 {
        font-size: 1rem;
    }

    .importance-points .point p,
    .about-panel p,
    .about-intro {
        font-size: 0.92rem;
    }

    .about-image-card img,
    .spine-images img {
        border-radius: 10px;
    }

    /* Aumentar espacio vertical para tocar cómodamente */
    .importance .importance-content > div,
    #especiales .about-content > div {
        padding-bottom: 8px;
    }
}
