/* ==================== VARIABLES Y DISEÑO GLOBAL ==================== */
:root {
    --color-green-dark: #2d5f4f;
    --color-green-main: #40a578;
    --color-green-light: #6fd39a;
    --color-green-lighter: #e8f5f0;
    --color-gray-dark: #2b2d42;
    --color-gray-mid: #6c757d;
    --color-gray-light: #f1f5f9;
    --color-gray-lighter: #f9fafb;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-accent-orange: #ff8c42;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.12);
                
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
                
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease-out;
            
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
            
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 24px rgba(45, 95, 79, 0.15);
    --shadow-hover: 0 12px 32px rgba(45, 95, 79, 0.2);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto evita el movimiento lateral */
    position: relative;
    scroll-behavior: smooth;
    height: -webkit-fill-available; /* Llena el espacio real del navegador */
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Asegura que el contenido no se desplace por el notch */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

* {
    box-sizing: border-box; /* Asegura que paddings no sumen ancho extra */
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-gray-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-mid);
    font-size: 1rem;
}

a {
    color: var(--color-green-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-green-dark);
}

/* ==================== NAVEGACIÓN ==================== */
/* header styles managed by styles.css */

/* Suavizamos la transición cuando se quita el efecto */
header, section, footer {
    transition: filter 0.4s ease;
}

/* nav styles managed by styles.css */

/* .logo managed centrally by styles.css */
        
/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}
        
/* #nav .cta-button managed centrally by styles.css */

/* .mobile-menu-toggle managed by styles.css */

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-green-main);
}

.btn-secondary:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 2rem;
    background: #000; /* Color de respaldo */
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 100%);
    width: 100%;
}
    
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 95, 79, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 25px !important;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .cta-button {
    display: inline-block;
    animation: slideUp 0.8s ease 0.4s both;
    background-color: var(--accent-color);
    color: var(--dark-text);
    margin: 0 0.5rem;
}

.hero .cta-button:hover {
    background-color: #e5b587;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
        
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}
    
.hero-image img {
    max-width: 100% !important;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Sombra más profunda */
    border: 1px solid rgba(255,255,255,0.1);
}
    
section {
    padding: 4rem 0;
    overflow: hidden;
    width: 100%;
}

.section-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    max-width: 1200px; /* Ancho máximo deseado */
    margin: 0 auto;
    padding: 0 2rem;
    padding-left: 2rem;  /* Espacio de seguridad para que no toque los bordes en tablets */
    padding-right: 2rem;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}
        
section.alt-bg {
    width: 100%;
    display: block;
    background-color: var(--color-gray-lighter);
    padding: 6rem 1.5rem; /* Margen superior e inferior amplio */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-green-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-green-dark);
    max-width: 650px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.section-title p strong {
    color: var(--color-green-main);
}

/* Botón de WhatsApp con Estilo Glass */
.cta-btn-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 2px solid #25d366;
    color: #25d366;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.cta-btn-whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-5px);
}
        
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(64, 165, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 165, 120, 0); }
}

/* ==================== SECCIÓN MISIÓN Y VISIÓN ==================== */
.mission-vision-section {
    position: relative;
    padding: 8rem 2rem 10rem;
    margin-top: 3rem;
    background: linear-gradient(rgba(11, 27, 16, 0.9), rgba(2, 6, 5, 0.95)), 
        url('../images/bosque-guadua.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.mission-vision-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-vision-intro h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.mission-vision-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    line-height: 1.8;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mission-card, .vision-card {
    background: radial-gradient(circle at top left, #28492a 0%, #0b1b10 45%, transparent 60%);
    border: 1px solid rgba(111, 211, 154, 0.3);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.mission-card {
    animation-delay: 0s;
}

.vision-card {
    animation-delay: 0.2s;
}

.mission-card:hover, .vision-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(111, 211, 154, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(45, 95, 79, 0.3);
}

.mission-vision-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
    
.mission-vision-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.mission-card h3, .vision-card h3 {
    margin: 0;
    font-size: 1.75rem;
}

.mission-card h3 {
    color: var(--color-accent-orange);
}

.vision-card h3 {
    color: var(--color-green-light);
}

.mission-card p, .vision-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.purpose-badge {
    color: var(--color-green-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.purpose-line {
    width: 60px;
    height: 4px;
    background: var(--color-green-main);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Tarjetas Estilo Cristal */
.purpose-card {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
        
.card-glass-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.purpose-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(111, 211, 154, 0.1);
    border: 1px solid var(--color-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-green-light);
    transition: all 0.4s ease;
}

.purpose-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.purpose-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.purpose-card:hover {
    transform: translateY(-15px);
    border-color: var(--color-green-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.purpose-card:hover .purpose-icon-wrapper {
    background: var(--color-green-main);
    color: white;
    transform: rotateY(180deg);
}
        
.mission h3 { color: var(--color-accent-orange) !important; }
.vision h3 { color: var(--color-green-light) !important; }
        
/* --- ESTILO DE PARTÍCULAS FLOTANTES --- */
.purpose-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Detrás del texto pero sobre el fondo */
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--color-green-light);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}
        
/* ==================== CARD DE EQUIPO ==================== */
.team-card {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(64, 165, 120, 0.1);
    position: relative;
    z-index: 1;
}

.team-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--color-green-lighter);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
        
/* Overlay de Redes Sociales */
.team-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(45, 95, 79, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-social-overlay a {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--color-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
        
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    z-index: 2;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(45, 95, 79, 0.15);
    border-color: var(--color-green-main);
}

.team-card:hover .team-img {
    transform: scale(1.1); /* Efecto de acercamiento */
}

.team-card:hover .team-social-overlay {
    opacity: 1;
}

.team-card:hover .team-social-overlay a {
    transform: translateY(0);
}

.team-card:hover .team-social-overlay a:hover {
    background: var(--color-green-main);
    color: white;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green-main) 0%, var(--color-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-hover);
}

.team-content {
    padding: 2rem;
    text-align: center;
    background: white;
    position: relative;
    z-index: 2;
}

.team-content h3 {
    margin-bottom: 0.75rem;
    color: var(--color-green-dark);
}
        
.team-card h3 {
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-role {
    color: var(--color-green-main);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

/* CEO card destacada */
.team-card-ceo {
    border-color: var(--color-green-main) !important;
    box-shadow: 0 0 0 2px rgba(64, 165, 120, 0.15), 0 10px 30px rgba(64, 165, 120, 0.1);
    position: relative;
}

.team-card-ceo .team-role {
    color: var(--color-accent-orange);
}

.team-card-ceo::after {
    content: 'CEO';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-accent-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(255, 140, 66, 0.3);
}

.team-card p {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
}

/* ==================== GRID LAYOUT ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

/* ==================== SECCIÓN VALORES ==================== */
.values-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf5f1 100%) !important;
    padding: 8rem 2rem;
    position: relative;
}

.values-section .section-title::after {
    display: none;
}

.values-section .purpose-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    margin: 1.2rem auto 1.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(64, 165, 120, 0.2);
}

.values-section .section-title p {
    color: var(--color-gray-mid);
    font-size: 1.05rem;
    max-width: 700px;
    line-height: 1.8;
}

.values-section .section-title p strong {
    color: var(--color-green-dark);
    font-weight: 700;
}

.values-grid {
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.value-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 3px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
        
.value-card-inner {
    background: white;
    padding: 3rem 2rem;
    border-radius: 18px;
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
}
        
.value-icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-green-lighter), rgba(64, 165, 120, 0.08));
    color: var(--color-green-main);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(64, 165, 120, 0.1);
}

.value-icon-box svg {
    width: 32px;
    height: 32px;
}
        
        

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
    
.value-card h3 {
    color: var(--color-green-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--color-gray-mid);
    line-height: 1.7;
}

/* --- EFECTOS HOVER --- */
.value-card:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, var(--color-green-main), var(--color-green-light));
    box-shadow: 0 20px 40px rgba(45, 95, 79, 0.2);
}

.value-card:hover .value-icon-box {
    background: linear-gradient(135deg, var(--color-green-main), var(--color-green-dark));
    color: white;
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(64, 165, 120, 0.3);
}

.value-card:hover .value-card-inner {
    background: #fafdfb;
}
        
/* ==================== SECCIÓN HISTORIA ==================== */
.history-section {
    background: white !important;
    padding: 10rem 2rem;
    position: relative;
}

.history-section .section-title::after {
    display: none;
}

.history-section .purpose-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-green-main), var(--color-green-light));
    margin: 1.2rem auto 1.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(64, 165, 120, 0.2);
}
        
.modern-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-bottom: 2rem;
}

.history-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}
    
.timeline-item {
    padding: 1.5rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--color-green-light);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-green-main);
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-weight: 700;
    color: var(--color-green-main);
    font-size: 1.1rem;
}

.timeline-text {
    color: var(--color-gray-mid);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}
        
/* Línea Central */
.timeline-main-line {
    position: absolute;
    left: 50%;
    top: 50px !important;    /* Corregido: Agregado px */
    bottom: 20px !important;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--color-green-light) 0%, 
        var(--color-green-main) 50%, 
        var(--color-green-dark) 100%);
    transform: translateX(-50%);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

/* Bloques de Hitos */
.timeline-milestone {
    position: relative;
    width: 50%;
    padding: 2rem 4rem;
    margin-bottom: 2rem;
    z-index: 2;
}

.timeline-milestone.invert {
    margin-left: 50%;
    text-align: left;
}

.timeline-milestone:not(.invert) {
    text-align: right;
}

/* Iconos en la línea */
.milestone-icon {
    position: absolute;
    top: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-green-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 3;
}

.milestone-icon svg {
    width: 22px;
    height: 22px;
}

.timeline-milestone:not(.invert) .milestone-icon { right: -25px; }
.timeline-milestone.invert .milestone-icon { left: -25px; }

/* Tarjetas de Contenido */
.milestone-content {
    background: var(--color-gray-lighter);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.timeline-milestone:hover .milestone-content {
    background: white;
    border-color: var(--color-green-light);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(64, 165, 120, 0.1);
}
.milestone-year {
    display: block;
    font-weight: 900;
    color: var(--color-green-main);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.milestone-content h3 {
    color: var(--color-green-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
        
.timeline-glow-runner {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    /* Brillo en degradado blanco/verde suave */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0) 20%,
        rgba(111, 211, 154, 0.8) 50%, 
        rgba(255, 255, 255, 0) 80%,
        transparent 100%);
    filter: blur(8px);
    z-index: 1;
    animation: timelinePulse 5s linear infinite;
}

@keyframes timelinePulse {
    0% {
        top: -150px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%; /* Recorre toda la altura de la línea */
        opacity: 0;
    }
}

/* Sincronización: Iluminar iconos al paso del brillo (Opcional pero recomendado) */
.timeline-milestone:hover .milestone-icon {
    box-shadow: 0 0 20px var(--color-green-light);
    transform: scale(1.2);
    }
        .history-content p {
            font-size: 1rem;
            color: var(--color-gray-mid);
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

/* ==================== SECCIÓN CTA ==================== */
.premium-cta {
    position: relative;
    padding: 10rem 2rem !important;
    background: linear-gradient(rgba(45, 95, 79, 0.9), rgba(26, 74, 58, 0.95)), 
        url('../images/faq.jpg') !important; /* Mantenemos tu imagen de fondo */
    background-size: cover !important;
    background-attachment: fixed !important;
    overflow: hidden;
}
        
.cta-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 211, 154, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}
        
.cta-content-box {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 1.5rem auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
        
.cta-content-box h2 {
    color: white !important;
    font-size: 3.2rem !important;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
        
.cta-content-box p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones Premium */
.cta-buttons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-btn-premium {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-btn-premium.whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.cta-btn-premium.phone {
    background: white;
    color: var(--color-green-dark);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn-premium:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
        
/* Trust Badges */
.cta-trust-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin: 0.75rem 0;
}

.trust-tag {
    color: var(--color-green-light);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
        
        
.cta-section {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, #1a4a3a 100%);
    color: var(--color-white);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: var(--color-white);
    color: var(--color-green-main);
    border: none;
}

.btn-white:hover {
    background: var(--color-gray-light);
    transform: translateY(-3px);
}
        
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.aliados-section {
  position: relative;
  padding: 8rem 2rem;
  background: linear-gradient(
      rgba(11, 27, 16, 0.92),
      rgba(2, 6, 5, 0.96)
    ),
    url("../images/aliados.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.aliados-section .section-title h2 {
  color: var(--color-green-light);
  margin-bottom: 0.75rem;
}

.aliados-section .section-title p {
  max-width: 650px;
  margin: 0.5rem auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.aliados-section .purpose-badge {
  color: var(--color-green-light);
}

.aliados-section .purpose-line {
  background: var(--color-green-main);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 2.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

.carousel-track {
  display: flex;
  gap: 2.5rem;
  width: fit-content;
  will-change: transform;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}
    
.carousel-item {
  flex: 0 0 200px;
  height: 200px;
  background: radial-gradient(circle at top, rgba(228, 228, 228, 0.9), rgba(111, 211, 154, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.carousel-item:hover {
  background: linear-gradient(
    135deg,
    var(--color-green-lighter) 0,
    var(--color-white) 100%
  );
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(64, 165, 120, 0.7);
  color: var(--color-green-dark);
}

.item-icon {
  margin-bottom: 0.75rem;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* Footer, redes sociales, botones flotantes y keyframes heredados de styles.css */



@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* nav ul managed by styles.css */
            
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

        
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
                
    .logo {
        font-size: 1.2rem;
        height: 40px;
    }
    .logo img {
        height: 45px;
    }

    /* mobile menu styles managed by styles.css */

    .hero {
        position: relative; /* Necesario para posicionar el video */
        margin-top: 70px;
        min-height: 90vh;
        display: flex;
        align-items: center;
        overflow: hidden; /* Corta el video sobrante */
        padding: 4rem 2rem;
        background: #000;
        margin-bottom: 2rem;
    }

    /* .header-container managed by styles.css */

    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Botones uno sobre otro en móviles */
    }
            
    .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que cubra sin deformarse */
        z-index: 0;
        opacity: 0.6; /* Ajusta la opacidad para que el texto resalte */
    }
            
    .hero-content {
        order: 1;
    }
                
    .hero-content h1 {
        color: #ffffff; /* Asegura contraste en móviles sobre el video */
    }

    .hero-content p {
        color: #f1f1f1;
    }
            
    .hero-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        margin-top: 1.5rem;
    }
            
    .hero-image img {
        width: 185px;       /* Ancho reducido */
        height: 490px;
        border-radius: 50px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg); /* Sombra suave definida en tus variables */
        transition: var(--transition-smooth);
        object-fit: cover; 
        object-position: center;
    }

    .hero-image img:hover {
        transform: scale(1.02); /* Efecto sutil al pasar el mouse */
    }
                
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .testimonial-card {
        min-width: 90%;
    }
            
    section {
        padding: 3.5rem 1.5rem;
    }
            
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        gap: 1.5rem !important;
        grid-template-columns: 1fr;
    }

    .values-section {
        padding: 4rem 1.2rem !important;
    }
    .value-card {
        border-radius: 15px !important;
    }
            
    .value-card-inner {
        padding: 2rem 1.5rem !important; /* Reducimos el "aire" interno */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #ffffff !important; /* Forzamos fondo blanco para máximo contraste */
    }
            
    .value-icon-box {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1.2rem !important;
    }

    /* Tipografía más cómoda para celular */
    .value-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .value-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        color: var(--color-gray-mid) !important;
    }

    /* Efecto de "toque" (Active state) para móviles */
    .value-card:active {
        transform: scale(0.97);
        background: var(--color-green-light);
    }
            
            
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .mission-vision-section {
        padding: 6rem 1.5rem;
    }
            
    .timeline-main-line {
        left: 20px !important; /* Alineada con los iconos móviles */
        transform: none !important;
        top: 40px !important; /* Baja un poco más en móvil para no tocar el título */
    }

    .timeline-milestone {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 0 3rem 50px !important; /* Deja espacio a la izquierda para la línea */
        text-align: left !important;
    }

    .milestone-icon {
        left: -5px !important;
        top: 0 !important;
        width: 40px;
        height: 40px;
    }

    .milestone-icon svg {
        width: 18px;
        height: 18px;
    }
    }

    .cta-content-box {
        padding: 3rem 1.5rem;
        border-radius: 25px;
    }
    .cta-content-box h2 {
        font-size: 2rem !important;
    }
    .cta-btn-premium {
        width: 100%;
        justify-content: center;
    }
    .cta-trust-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding-top: 1.5rem;
    }
            
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .aliados-section {
        padding: 5rem 1.5rem;
        background-attachment: scroll;
    }

    .carousel {
        padding: 1.8rem 0;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    .carousel-item {
        flex: 0 0 160px;
        height: 160px;
    }

    .item-title {
        font-size: 0.85rem;
    }
    
@media (max-width: 473px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }

    section {
        /* Cambiamos el 0 por 1.5rem para crear el margen lateral */
        padding: 2.5rem 1.5rem; 
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
            
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    /* nav styles managed by styles.css */

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
            
    .logo {
        font-size: 1.25rem;
        height: 40px;
    }
            
    .logo img {
        height: 35px;
    }

    .hero {
        margin-top: 0;
        min-height: 45vh;
    }

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

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

/* ==================== MODO OSCURO ==================== */
[data-theme="dark"] .values-section {
    background: linear-gradient(135deg, var(--nm-bg) 0%, var(--nm-secondary-bg) 100%) !important;
}

[data-theme="dark"] .values-section .purpose-line {
    background: linear-gradient(90deg, var(--nm-accent), var(--color-green-light));
    box-shadow: 0 2px 8px rgba(45, 138, 122, 0.3);
}

[data-theme="dark"] .values-section .section-title h2 {
    color: var(--nm-text);
}

[data-theme="dark"] .values-section .section-title p {
    color: var(--nm-text);
    opacity: 0.8;
}

[data-theme="dark"] .values-section .section-title p strong {
    color: var(--nm-accent);
}

[data-theme="dark"] .value-card {
    background: var(--nm-secondary-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .value-card-inner {
    background: var(--nm-secondary-bg);
}

[data-theme="dark"] .value-icon-box {
    background: linear-gradient(135deg, var(--nm-border), rgba(45, 138, 122, 0.1));
    color: var(--nm-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .value-card h3 {
    color: var(--nm-text);
}

[data-theme="dark"] .value-card p {
    color: var(--nm-text);
    opacity: 0.75;
}

[data-theme="dark"] .value-card:hover {
    background: linear-gradient(135deg, var(--nm-accent), var(--color-green-dark));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .value-card:hover .value-icon-box {
    background: linear-gradient(135deg, var(--nm-accent), var(--color-green-dark));
    color: var(--nm-text);
    box-shadow: 0 8px 20px rgba(45, 138, 122, 0.3);
}

[data-theme="dark"] .value-card:hover .value-card-inner {
    background: var(--nm-bg);
}

/* Dark mode for other sections */
[data-theme="dark"] #equipo .section-title h2 {
    color: var(--nm-accent);
}

[data-theme="dark"] .history-section {
    background: var(--nm-bg) !important;
}

[data-theme="dark"] .history-section .section-title h2 {
    color: var(--nm-accent);
}

[data-theme="dark"] .milestone-content {
    background: var(--nm-secondary-bg);
    border-color: var(--nm-border);
}

[data-theme="dark"] .milestone-content h3 {
    color: var(--nm-text);
}

[data-theme="dark"] .milestone-content p {
    color: var(--nm-text);
    opacity: 0.8;
}

[data-theme="dark"] .milestone-year {
    color: var(--nm-accent);
}