/* ====================================================
   RESET — Limpieza base de estilos del navegador
==================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #f5f7fa;
    line-height: 1.6;
}


/* ====================================================
   VARIABLES DE COLOR Y ESTILO
   ✏ CAMBIAR: Ajusta los colores aquí para cambiar toda la paleta
==================================================== */
:root {
    --primario:   #b5ecb8;    /* ✏ Verde natural (header, botones) */
    --secundario: #c5346c;    /* ✏ Rosa/mango (hover, footer, highlights) */
    --acento:     #c54c93;    /* ✏ Rosa intenso (títulos, íconos sociales) */
    --blanco:     #ffffff;
    --oscuro:     #1a1a1a;
    --texto:      #383535;

    /* Variables usadas en componentes heredados */
    --primary:   #2E7D32;
    --secondary: #6d5519;
    --accent:    #F57C00;
    --dark:      #1a1a1a;
}
/* ⚠ NOTA: Tienes dos grupos de variables (--primario/--acento y --primary/--accent).
   En el futuro conviene unificarlas en un solo grupo. */


/* ====================================================
   UTILIDADES GENERALES
==================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--acento); /* ✏ CAMBIAR color del título de sección */
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.highlight {
    color: var(--accent); /* ✏ CAMBIAR color del texto resaltado */
}

/* Botones base */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}


/* ====================================================
   HEADER — Barra de navegación fija
==================================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: 0.3s ease;
    /* ✏ CAMBIAR: Gradiente del header */
    background: linear-gradient(90deg, var(--primario), var(--acento));
}

header.scrolled {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo + nombre de marca */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px; /* ✏ CAMBIAR tamaño del logo */
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--blanco);
}

.logo-text .highlight {
    color: var(--secundario);
}

/* Menú de navegación */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* ✏ CAMBIAR: Estilo de los enlaces del menú */
nav a {
    text-decoration: none;
    color: white;
    margin: 0 20px;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    /* ✏ CAMBIAR: Gradiente del hover en el menú */
    background: linear-gradient(135deg, #FF6B6B, #40E0D0, #2e9719);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* ====================================================
   HERO — Sección principal con video de fondo
==================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* ✏ CAMBIAR opacidad del overlay oscuro */
    z-index: -1;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Texto con degradado en el hero */
.text-gradient {
    /* ✏ CAMBIAR: Colores del texto degradado del título */
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ====================================================
   PRODUCTOS — Galería de productos (2 filas)
==================================================== */

/* Primera fila: usa gallery-grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 5px solid #ffffff;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay de texto sobre cada producto */
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(13, 59, 102, 0.8); /* ✏ CAMBIAR color del overlay de producto */
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: 0.4s ease;
    text-align: center;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h4 {
    margin: 5px 0;
    font-size: 18px;
}

.overlay p {
    font-size: 14px;
}


/* ====================================================
   PROCESO — Tarjetas de pasos del proceso
==================================================== */
.proceso {
    padding: 80px 20px;
    text-align: center;
}

.proceso-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: white;
    width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 2px solid #f0f0f0; /* ✏ CAMBIAR color del marco de la tarjeta */
    transition: 0.3s ease;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 20px 0 10px;
    font-size: 20px;
    color: #E63946; /* ✏ CAMBIAR color del título de cada tarjeta */
}

.card p {
    padding: 0 20px 25px;
    color: #555;
}


/* ====================================================
   VIDEO — Sección de video de YouTube
==================================================== */
.video-section {
    padding: 100px 0;
}

.video-wrapper {
    max-width: 900px;
    margin: auto;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}


/* ====================================================
   GALERÍA — Cuadrícula de imágenes decorativas
==================================================== */
#galeria {
    padding: 60px 20px;
    text-align: center;
}

#galeria h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.galeria-item {
    overflow: hidden;
    border-radius: 12px;
}

.galeria-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galeria-item img:hover {
    transform: scale(1.1);
}


/* ====================================================
   TESTIMONIOS — Comentarios de clientes
==================================================== */
.comentarios {
    padding: 60px 20px;
    /* ✏ CAMBIAR: Gradiente de fondo de la sección de testimonios */
    background: linear-gradient(135deg, #FF6B6B, #40E0D0, #c4a82cc5);
    text-align: center;
    color: white;
}

.comentarios h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.comentarios-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.comentario {
    background: white;
    color: #333;
    padding: 25px;
    width: 280px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.comentario:hover {
    transform: translateY(-8px);
}

.comentario p {
    font-style: italic;
    margin-bottom: 15px;
}

.comentario h4 {
    color: #e48d1b; /* ✏ CAMBIAR color del nombre del cliente */
}


/* ====================================================
   CONTACTO — Caja de contacto y redes sociales
==================================================== */
#contacto-haps {
    padding: 60px 20px;
}

.contacto-box {
    background: #f4f1ea; /* ✏ CAMBIAR color de fondo de la caja */
    padding: 45px;
    border-radius: 18px;
    text-align: center;
    width: 420px;
    margin: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    animation: aparecer 0.8s ease;
    transition: all 0.3s ease;
}

.contacto-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de WhatsApp en la sección de contacto */
.btn-whatsapp {
    display: inline-block;
    margin-top: 20px;
    /* ✏ CAMBIAR: Gradiente del botón de WhatsApp */
    background: linear-gradient(45deg, #ff7a18, #ff2d8d);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Íconos de redes sociales */
.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-media a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--acento); /* ✏ CAMBIAR color de fondo de los íconos */
    color: var(--blanco);
    font-size: 18px;
    transition: 0.3s ease;
}

.social-media a:hover {
    background: var(--secundario);
    transform: translateY(-5px);
}


/* ====================================================
   MAPA — Sección de ubicación en Google Maps
==================================================== */
.map-section {
    padding: 60px 20px;
    text-align: center;
    background: #F4EFEA; /* ✏ CAMBIAR color de fondo de la sección del mapa */
}

.map-section h2 {
    margin-bottom: 30px;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ====================================================
   FOOTER — Pie de página
==================================================== */
footer {
    background: var(--secundario); /* ✏ CAMBIAR color del footer */
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: #081622; /* ✏ CAMBIAR color de la franja inferior del footer */
    margin-top: 40px;
}


/* ====================================================
   BOTÓN FLOTANTE DE WHATSAPP
==================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* ====================================================
   TÉRMINOS Y CONDICIONES
==================================================== */
.terminos {
    background: #1f2933; /* ✏ CAMBIAR color de fondo de términos */
    color: white;
    padding: 40px;
    margin-top: 60px;
}

.terminos h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #ffd54f; /* ✏ CAMBIAR color del título de términos */
}

.terminos p {
    max-width: 900px;
    margin: auto;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}


/* ====================================================
   RESPONSIVE — Pantallas pequeñas (móvil)
   ✏ CAMBIAR: Ajusta breakpoints según necesites
==================================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* ⚠ PENDIENTE: Agregar menú hamburguesa para móvil */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contacto-box {
        width: 100%;
    }
}
