/* ==================== 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 */

.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;
}

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

/* nav styles managed by styles.css */

.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;
    width: 100%;
    padding: 4rem 2rem;
    background: #000; /* Color de respaldo */
    background: linear-gradient(135deg, var(--color-green-lighter) 0%, var(--color-white) 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-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: gray;
    max-width: 600px;
    margin: 0 auto;
}

/* 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); }
}

/* Terms of Service specific styles */
.terms-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section h2 {
    color: var(--color-green-main);
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-section h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-green-main), var(--color-green-light));
    border-radius: 2px;
}

.terms-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-green-dark);
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box strong {
    color: #d84315;
}

.info-box {
    background: linear-gradient(135deg, var(--color-green-light), rgba(212, 241, 228, 0.5));
    border-left: 4px solid var(--color-green-main);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box strong {
    color: var(--color-green-dark);
}

/* --- DARK MODE TERMS OF SERVICE --- */
[data-theme="dark"] .terms-content {
    background: var(--nm-secondary-bg, #162019);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .terms-section {
    border-bottom-color: var(--nm-border, #1e2d27);
}

[data-theme="dark"] .terms-section h2 {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .terms-section h3 {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .terms-section p {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .terms-section li {
    color: var(--nm-text, #e8f0ed);
}

[data-theme="dark"] .info-box {
    background: linear-gradient(135deg, rgba(45, 138, 122, 0.2), rgba(45, 138, 122, 0.08));
    border-left-color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .info-box strong {
    color: var(--nm-accent, #2d8a7a);
}

[data-theme="dark"] .warning-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    border-left-color: #ff9800;
}

[data-theme="dark"] .warning-box strong {
    color: #ffb74d;
}
        
/* Footer heredado de styles.css */

/* ==================== RESPONSIVE ==================== */
@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: 40px;
    }

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

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

    /* 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;
    }
        
    .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;
    }

    .terms-content {
        padding: 2rem 1.5rem;
    }
            

            

    

            

            





    



}

@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;
    }

    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
    }

    .terms-section h2 {
        font-size: 1.25rem;
    }

    .info-box, .warning-box {
        padding: 1rem;
        margin: 1rem 0;
    }
                

}