/* ============================
   VARIABLES DE COLORES PASTEL
   ============================ */
:root {
    --pastel-cream: #f8f4e9;
    --pastel-beige: #e8d8c3;
    --pastel-gold: #d4b483;
    --pastel-green: #b8c4a3;
    --pastel-brown: #a68a64;
    --pastel-blue: #a3b8c4;
    --text-dark: #3a3a3a;
    --text-light: #6c6c6c;
}

/* ============================
   MEDIA QUERIES PARA RESPONSIVIDAD
   ============================ */

/* Pantallas grandes (escritorio) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
    .product-hero-section .section-title {
        font-size: 2.5rem;
    }

    .hero-content-row {
        flex-direction: column;
    }

    .hero-image-block,
    .hero-text-block {
        flex: none;
        min-height: 50vh;
    }

    .text-content {
        max-width: 90%;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-step {
        flex: none;
    }

    .modal-body {
        flex-direction: column;
    }

    .contact-row {
        gap: 30px;
    }
}

/* Móviles */
@media (max-width: 767.98px) {
    .product-hero-section {
        height: auto;
        min-height: 100vh;
    }

    .product-hero-section .section-title {
        font-size: 2rem;
        text-align: center;
        padding: 0 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        padding: 0 15px;
    }

    .hero-title-block {
        padding: 30px 15px;
    }

    .hero-content-row {
        flex-direction: column;
    }

    .hero-image-block,
    .hero-text-block {
        padding: 20px 15px;
        min-height: 400px;
    }

    .product-hero-section .circle-image {
        width: 280px;
        height: 280px;
    }

    .text-content {
        max-width: 100%;
        text-align: center;
    }

    .text-content h3 {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
    }

    .features {
        flex-direction: column;
        gap: 25px;
        margin-top: 25px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .feature-item i {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


/* 🔹 Arreglar alturas en móvil */
@media (max-width: 768px) {
    section {
        height: auto !important;
        /* Deja que crezca según contenido */
        min-height: auto !important;
        padding: 40px 20px;
        /* más espacio para respiración */
    }

    .process-steps {
        flex-direction: column;
        /* Pasos en columna */
        gap: 20px;
        /* Espacio entre pasos */
    }

    .process-step {
        width: 100%;
        /* Que usen todo el ancho */
        text-align: center;
    }

    .process-bar {
        width: 100%;
        /* Ajusta la barra al ancho */
        height: 8px;
        margin: 20px 0;
    }
}


/* Pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .product-hero-section .circle-image {
        width: 250px;
        height: 250px;
    }

    .product-section .circle-image.small {
        width: 220px;
        /* Imágenes más grandes en móviles */
        height: 220px;
    }

    .product-card {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-info,
    .product-section .btn-hero {
        width: 100%;
        text-align: center;
    }

    .contact-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px 15px;
    }

    .process-visual {
        width: 95%;
    }
}


/* ============================
   SECCIÓN HERO MEJORADA
   ============================ */
.product-hero-section {
    margin-top: -44px !important;
    /* lo mismo que ajustaste en tu nav */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pastel-cream) 0%, var(--pastel-beige) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagesprod/destileria-textura.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

/* BLOQUE 1: TÍTULO */
.hero-title-block {
    background-color: #c2c4a3;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.product-hero-section .section-title {
    font-size: 3rem;
    color: #f6f2d9;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1.5s ease forwards;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    margin-top: 10px;
    animation: fadeInUp 1.5s ease forwards;
}

/* BLOQUE 2: FILA IMAGEN + TEXTO */
.hero-content-row {
    display: flex;
    flex: 1;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Estilo mejorado para la descripción del producto */
.product-description {
    font-family: 'Poppins', 'Arial', sans-serif;
    /* Fuente elegante y legible */
    font-size: 1rem;
    line-height: 1.8;
    /* Mejor lectura */
    color: #6c5b46;
    /* Color pastel oscuro, armoniza con tu paleta */
    text-align: justify;
    /* Justificado para estilo más limpio */
    margin-bottom: 20px;
    /* Espacio entre párrafos */
    transition: all 0.3s ease;
    /* Suaviza efectos al hover si quieres */
}

/* Opcional: un pequeño efecto al pasar el puntero */
.text-content:hover .product-description {
    color: #574733;
    /* Un poco más intenso al hover */
}


/* BLOQUE 2A: IMAGEN */
.hero-image-block {
    background-color: #e0d389;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
    position: relative;
}

.hero-image-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagesprod/laop.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.hero-image-block img.hero-img {
    width: 100%;
    /* Ocupa todo el ancho del bloque */
    height: 100%;
    /* Ocupa todo el alto del bloque */
    object-fit: contain;
    /* Mantiene la proporción de la imagen */
    display: block;
    z-index: 1;
    /* Asegura que quede sobre el fondo */
    transition: all 0.5s ease;
}


/* BLOQUE 2B: TEXTO */
.hero-text-block {
    background-color: #f6f3d9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease 0.3s;
    position: relative;
}

.hero-text-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagesprod/lops.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.05;
}

.hero-img-wrapper img.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.text-content {
    max-width: 80%;
    position: relative;
    z-index: 1;
}

.text-content h3 {
    color: var(--pastel-brown);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--pastel-gold);
    padding-bottom: 10px;
}


/* Características del producto */
.features {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-item i {
    font-size: 2rem;
    color: var(--pastel-gold);
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--pastel-brown);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    margin-top: 5px;
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}





/* ============================
   SECCIÓN CONTACTOS MEJORADA
   ============================ */
/* SECCIÓN CONTACTOS FILA */
.contact-row-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    /* puedes cambiar a oscuro si quieres */
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0a1f2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.5rem;
    color: #c9a467;
}

.contact-item:hover {
    color: #c9a467;
}

.contact-item:hover i {
    transform: translateY(-2px);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    padding: 30px 20px;
    background-color: var(--pastel-brown);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer p {
    margin: 5px 0;
}



/*ESTILOS DE CAMPOS FINALES*/
/* IMPACTO */
/* --- Ajustes de la tarjeta --- */
.impact-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;/* 🔹 transición suave */
    height: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    align-self: flex-start;    /* ✅ evita que se estiren con otras */
}

.impact-card h3 {
    color: #0a1f2d;
    font-size: 1.4rem;
    margin-top: 15px;
}

.sub-info {
    font-size: 0.9rem;
    color: #777;
    margin: 5px 0;
}

.price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #b28c6e;
    margin-bottom: 10px;
}

/* --- Botones --- */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.btn.pastel {
    flex: 1;
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    color: white;
}

.info-btn {
    background-color: #a8c686;
}

.info-btn:hover {
    background-color: #91b170;
}

.buy-btn {
    background-color: #e6a8a1;
}

.buy-btn:hover {
    background-color: #d08f8a;
}

/* --- Slideshow de imágenes --- */
.slideshow {
    position: relative;
    width: 100%;
    height: 250px;
    /* Altura fija */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centra la imagen */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: transform 0.5s ease, opacity 1s ease;
    /* transición imagen */
    border-radius: 12px;
}

.slideshow img.active {
    opacity: 1;
    position: absolute;
}

/* --- Hover: elevación tarjeta y zoom imagen --- */
.impact-card:hover {
    transform: translateY(-10px);
    /* eleva la tarjeta */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* sombra más intensa */
}

.impact-card:hover .slideshow img.active {
    transform: translate(-50%, -50%) scale(1.08);
    /* zoom suave */
}

/* --- Contenido desplegable (acordeón) --- */
.info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: left;
    font-size: 0.9rem;
    color: #555;
}

.info-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

/* Cuando se despliega */
.info-content.show {
    max-height: 300px;        /* límite de altura visible */
    overflow-y: auto;         /* scroll vertical si hay más contenido */
    padding-right: 8px;       /* espacio para que no tape el scroll */
    scrollbar-width: thin;    /* scroll delgado en Firefox */
    scrollbar-color: #b28c6e #f1f1f1; /* color scroll */
}

.info-content .info-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #0a1f2d;
    margin-top: 15px;
    margin-bottom: 8px;
    border-left: 4px solid #b28c6e;
    padding-left: 8px;
}

/* --- Animación de aparición scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}