/* Global Styles & Variables */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Cromática de la Consciencia */
    --verde-bosque: #16352D;     /* Principal */
    --terracota: #B55A30;        /* Acento, hover */
    --azul-rio: #385E72;         /* Tecnología, enlaces */
    --mostaza: #D4A35C;          /* Detalles, llamadas de atención */
    
    /* Neutrales */
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    
    /* Tipografía */
    --font-display: 'Fraunces', serif; /* H1, títulos hero */
    --font-body: 'Inter', sans-serif;  /* Cuerpo, h2, h3, botones, menús */
    
    /* UI */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --header-height: 85px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--verde-bosque);
    line-height: 1.2;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--verde-bosque);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--azul-rio);
    transition: var(--transition);
}

a:hover {
    color: var(--terracota);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--terracota);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--verde-bosque);
    border: 2px solid var(--verde-bosque);
}

.btn-secondary:hover {
    background-color: var(--verde-bosque);
    color: var(--white);
}

.btn-cta {
    background-color: var(--terracota);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    background-color: #9c4c28; /* Terracota más oscuro */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Secciones Generales */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--mostaza);
    margin: 0 auto;
    border-radius: 2px;
}

/* Migas de Pan (Breadcrumbs) */
.breadcrumbs {
    padding: 15px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
    margin-top: var(--header-height);
}

.breadcrumbs a {
    color: var(--azul-rio);
}

.breadcrumbs span {
    color: #888;
    margin: 0 8px;
}

/* Header & Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--verde-bosque);
    line-height: 1;
}

/* Menú de Navegación Desktop */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-item:hover .nav-link {
    color: var(--verde-bosque);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--verde-bosque);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background-color: #f5f8f5;
    color: var(--verde-bosque);
    padding-left: 25px;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--verde-bosque);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-container-relative {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero h1 {
    font-size: calc(4rem - 3pt);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pilares Section */
.pilares-section {
    background-color: var(--white);
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pilar-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.pilar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mostaza);
}

.pilar-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(56, 94, 114, 0.1); /* Azul Río transparente */
    color: var(--azul-rio);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.pilar-card:hover .pilar-icon {
    background-color: var(--azul-rio);
    color: var(--white);
}

.pilar-card:hover .pilar-icon i {
    color: #FFFFFF !important;
}

.pilar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--verde-bosque);
}

/* Productos Destacados (Tienda) */
.productos-section {
    background-color: #f4f7f5;
}

.productos-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--terracota) #eaeaea;
}

.productos-carousel::-webkit-scrollbar {
    height: 8px;
}

.productos-carousel::-webkit-scrollbar-track {
    background: #eaeaea;
    border-radius: 10px;
}

.productos-carousel::-webkit-scrollbar-thumb {
    background: var(--terracota);
    border-radius: 10px;
}

.producto-card {
    min-width: 300px;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: var(--transition);
    position: relative;
}

.producto-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.producto-img {
    height: 220px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.producto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--terracota);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.producto-info {
    padding: 25px;
}

.producto-rating {
    color: var(--mostaza);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.producto-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.producto-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Experiencias Transformadoras */
.experiencias-section {
    background-color: var(--white);
}

.experiencias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.experiencia-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.experiencia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.experiencia-img:hover img {
    transform: scale(1.05);
}

.experiencia-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.experiencia-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.experiencia-features {
    margin-bottom: 30px;
}

.experiencia-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.experiencia-features li i {
    color: var(--mostaza);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--verde-bosque);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.footer-about {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--terracota);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--mostaza);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--mostaza);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    background-color: var(--terracota);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #9c4c28;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.footer-legal a:hover {
    color: var(--mostaza);
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #FFF;
}

/* Page Specific Layouts (Blog, Tienda, Afiliación, Contacto) */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 40px;
    background-color: var(--verde-bosque);
    color: var(--white);
    text-align: center;
}
.page-header h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 15px;
}
.page-header .breadcrumbs {
    background-color: transparent;
    border: none;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.8);
}
.page-header .breadcrumbs a {
    color: var(--mostaza);
}
.page-header .breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

/* Tienda Grid */
.tienda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.blog-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}
.blog-content {
    padding: 25px;
}
.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}
.blog-meta span {
    color: var(--terracota);
    font-weight: 600;
}
.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Lineas de Acción Grid */
.lineas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Afiliación Cards */
.afiliacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.afiliacion-card {
    background: var(--bg-light);
    border: 2px solid #eaeaea;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}
.afiliacion-card:hover {
    border-color: var(--verde-bosque);
    box-shadow: var(--shadow-md);
}

/* Contacto Form */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info-box {
    background: var(--verde-bosque);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
}
.contact-info-box h3 {
    color: var(--white);
}
.contact-info-box .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--mostaza);
}
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}
.form-control:focus {
    outline: none;
    border-color: var(--verde-bosque);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsive */
@media (max-width: 992px) {
    .experiencias-grid {
        grid-template-columns: 1fr;
    }
    
    .experiencia-img {
        order: -1; /* Image always on top in mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lineas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .lineas-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        padding: 0 15px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        transition: var(--transition);
        overflow-y: auto;
        padding: 30px 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        display: none;
        padding: 10px 0;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }

    .contact-info-box, .contact-form {
        padding: 25px 20px;
    }
}
