/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   Colores más vibrantes y sombras definidas
========================================= */
:root {
    /* Paleta de Colores Mejorada */
    --color-primary: #00C853; /* Verde más vibrante */
    --color-primary-dark: #009624;
    --color-secondary: #005691; /* Azul Confianza */
    --color-secondary-dark: #003c65;
    --color-accent-gradient: linear-gradient(135deg, #00C853 0%, #009624 100%); /* Gradiente para botones */
    
    /* Textos y Fondos */
    --color-text-main: #2c3e50; /* Gris oscuro premium, no negro puro */
    --color-text-light: #607d8b; /* Para subtítulos */
    --color-light-bg: #f8fbfd; /* Un blanco azulado muy sutil */
    --color-white: #ffffff;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Efectos */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra suave permanente */
    --shadow-hover: 0 20px 40px rgba(0, 86, 145, 0.15); /* Sombra al pasar el mouse */
    --radius-main: 16px; /* Bordes redondeados estándar */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Animación suave y profesional */
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Desplazamiento suave al dar clic en enlaces */
body { 
    font-family: var(--font-body); 
    color: var(--color-text-main); 
    line-height: 1.7; 
    background-color: var(--color-white);
}

/* Imágenes con bordes redondeados generales (Excepto el fondo del Hero) */
img { 
    max-width: 100%; 
    display: block; 
    border-radius: var(--radius-main); /* AQUÍ ESTÁ EL REDONDEO GENERAL */
}
a { text-decoration: none; transition: var(--transition); }

/* =========================================
   2. UTILIDADES Y TIPOGRAFÍA
========================================= */
.container { width: 90%; max-width: 1150px; margin: 0 auto; }
.section-padding { padding: 80px 0; } /* Más espacio para respirar */
.bg-light { background-color: var(--color-light-bg); }
.bg-dark { background-color: var(--color-secondary); color: var(--color-white); }

/* Títulos de Sección con estilo */
.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
    font-family: var(--font-heading); 
    font-size: 2.2rem; 
    color: var(--color-secondary-dark);
    position: relative;
    padding-bottom: 15px;
}
/* Pequeña línea verde debajo de los títulos */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* =========================================
   3. BOTONES (Con gradiente y animación)
========================================= */
.btn-primary {
    background: var(--color-accent-gradient); /* Usamos el gradiente */
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(0, 200, 83, 0.5); /* Sombra verde brillante */
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo al pasar el mouse */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { 
    transform: translateY(-3px); /* Se levanta */
    box-shadow: 0 15px 30px -10px rgba(0, 200, 83, 0.7); 
}
.btn-block { display: block; width: 100%; text-align: center; }

/* =========================================
   4. HEADER Y NAVEGACIÓN
========================================= */
.main-header { 
    padding: 15px 0; 
    background: rgba(255, 255, 255, 0.95); /* Ligeramente transparente */
    backdrop-filter: blur(10px); /* Efecto vidrio esmerilado moderno */
    box-shadow: var(--shadow-soft); 
    position: sticky; top: 0; z-index: 100; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; border-radius: 0; /* El logo no se redondea */ }
.btn-nav { 
    color: var(--color-secondary); 
    font-weight: 700; 
    font-family: var(--font-heading);
    padding: 8px 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 30px;
}
.btn-nav:hover { background: var(--color-secondary); color: var(--color-white); }

/* =========================================
   5. HERO SECTION (Impacto Principal)
========================================= */
.hero {
    background: linear-gradient(135deg, rgba(0, 86, 145, 0.85), rgba(0, 200, 83, 0.4)), url('../img/hero-bg.webp') no-repeat center center/cover;
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    /* El borde redondeado NO APLICA aquí porque es imagen de fondo */
}
.hero-content { position: relative; z-index: 2; color: var(--color-white); max-width: 800px; margin: 0 auto; }
.hero h1 { 
    font-family: var(--font-heading); 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Sombra para leer mejor */
}
.hero-subtitle { font-size: 1.25rem; margin-bottom: 35px; opacity: 0.95; }
.hero-disclaimer { margin-top: 20px; font-size: 0.85rem; opacity: 0.8; color: #e0e0e0; }

/* =========================================
   6. SECCIONES Y TARJETAS (Animaciones)
========================================= */
.grid-3 { display: grid; gap: 40px; }

/* Tarjetas de Beneficios */
.card-beneficio { 
    text-align: center; 
    padding: 40px 30px; 
    background: var(--color-white);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft); /* Sombra suave siempre visible */
    transition: var(--transition);
    border-bottom: 3px solid transparent; /* Preparamos un borde inferior */
}
/* Animación al pasar el mouse: se levanta y aparece borde verde */
.card-beneficio:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-primary);
}
.card-beneficio img { 
    height: 90px; width: 90px; 
    margin: 0 auto 25px; 
    border-radius: 50%; /* Iconos circulares */
    padding: 15px;
    background-color: var(--color-light-bg); /* Fondo sutil para el icono */
}
.card-beneficio h3 { color: var(--color-secondary-dark); margin-bottom: 15px; font-family: var(--font-heading); font-size: 1.3rem;}
.card-beneficio p { color: var(--color-text-light); }

/* Pasos de Cómo Funciona */
.step { 
    text-align: center; position: relative; padding: 30px;
    background: var(--color-white); border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft); transition: var(--transition);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step-number {
    display: inline-flex; justify-content: center; align-items: center;
    width: 50px; height: 50px;
    background: var(--color-accent-gradient); color: white;
    border-radius: 50%; font-size: 1.2rem; font-weight: bold;
    margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}
.step h3 { font-family: var(--font-heading); margin-bottom: 10px; color: var(--color-secondary); }

/* =========================================
   7. TESTIMONIO (Diseño Premium)
========================================= */
.testimonio-box {
    background: var(--color-white);
    border-radius: 20px; /* Bordes más redondeados aquí */
    overflow: visible; /* Para que la imagen redonda pueda sobresalir si queremos */
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
/* Comillas decorativas gigantes */
.testimonio-box::before {
    content: '“';
    position: absolute; top: 20px; left: 30px;
    font-size: 120px; line-height: 1; color: var(--color-primary);
    opacity: 0.1; font-family: serif;
}
.testimonio-img img { 
    width: 150px; height: 150px; 
    object-fit: cover; 
    border-radius: 50%; /* Foto circular */
    border: 4px solid var(--color-white); /* Borde blanco para separar */
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}
.testimonio-text blockquote { 
    font-style: italic; font-size: 1.2rem; 
    margin-bottom: 25px; color: var(--color-text-main); 
    line-height: 1.8; position: relative; z-index: 2;
}
.testimonio-text cite { font-weight: 700; color: var(--color-secondary); font-family: var(--font-heading); }

/* =========================================
   8. CONTACTO Y FORMULARIO (Creativo)
========================================= */
.contacto { position: relative; overflow: hidden; }
/* Decoración de fondo sutil */
.contacto::before {
    content: ''; position: absolute; bottom: -50px; left: -50px;
    width: 300px; height: 300px; background: rgba(0, 200, 83, 0.1);
    border-radius: 50%; filter: blur(80px);
}
.contacto h2 { color: var(--color-white); }
.contacto p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.contact-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; }

/* Diseño del Formulario */
.solar-form { 
    background: var(--color-white); 
    padding: 40px; 
    border-radius: var(--radius-main); 
    box-shadow: var(--shadow-hover); 
    position: relative; z-index: 2;
}
.solar-form h3 { 
    text-align: center; margin-bottom: 30px; 
    color: var(--color-secondary); 
    font-family: var(--font-heading); font-size: 1.5rem;
}
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--color-secondary-dark); font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%; padding: 15px;
    border: 2px solid #e0e0e0; /* Borde inicial suave */
    border-radius: 10px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--color-light-bg);
}
/* Animación al hacer clic en el input */
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary); /* Se pone verde */
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1); /* Resplandor verde suave */
}

/* =========================================
   9. FOOTER Y FLOTANTES
========================================= */
.main-footer { text-align: center; padding: 30px; background: #1a252f; color: #7f8c8d; font-size: 0.9rem; }

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E); /* Gradiente de WhatsApp */
    color: white; width: 65px; height: 65px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: var(--transition);
}
/* Animación de pulso para llamar la atención */
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

/* =========================================
   10. MEDIA QUERIES (Escritorio)
========================================= */
@media (min-width: 992px) { /* Ajustado a 992px para tablets grandes/laptops */
    .hero { height: 95vh; text-align: left; }
    .hero-content { margin: 0; width: 55%; }
    .hero h1 { font-size: 4rem; }
    .hero-subtitle { font-size: 1.5rem; }
    
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 50px; }
    
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
    
    .testimonio-box { 
        flex-direction: row; 
        text-align: left; 
        padding: 60px;
        align-items: flex-start;
    }
    .testimonio-img { margin-right: 50px; margin-bottom: 0; flex-shrink: 0; }
    .testimonio-img img { width: 180px; height: 180px; }
    .testimonio-box::before { left: 230px; top: 30px; } /* Mover comillas */
    .testimonio-text blockquote { font-size: 1.4rem; margin-top: 10px; }
}