/* =========================================
   ESTILOS BASE Y VARIABLES (Design System)
   ========================================= */

html {
    scroll-behavior: smooth;
}
:root {
    /* Paleta de colores WCAG Compliant */
    --primary-green: #2D8A5E;    /* Verde corporativo (Crecimiento) */
    --primary-hover: #236B49;
    --accent-blue: #2A5298;     /* Azul confianza */
    --bg-light: #F8FAFC;        /* Fondo gris muy claro */
    --text-main: #1E293B;       /* Azul oscuro/Gris para legibilidad */
    --text-muted: #475569;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Tipografía */
    --font-main: 'Open Sans', 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* HEADER ESTILO FINTECH */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: #006b3f; }

.btn-login {
    background-color: #0f172a; /* Azul muy oscuro casi negro */
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

/* HERO SECTION MODERNA */
.hero-modern {
    padding: 80px 20px;
    background-color: #ffffff;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-tagline {
    color: #006b3f;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.hero-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-hero-main {
    background-color: #008556;
    color: white;
    padding: 18px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 133, 86, 0.2);
}

.btn-hero-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 133, 86, 0.3);
}

.hero-cta-note {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* IMAGEN CON BORDES REDONDEADOS */
.hero-image-container .hero-img {
    width: 100%;
    border-radius: 40px; /* Borde muy redondeado como en la imagen */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   ACCESIBILIDAD Y ENFOQUE
   ========================================= */
h1, h2, h3 {
    color: var(--accent-blue);
    margin-top: 0;
}

a:focus, button:focus, input:focus {
    outline: 3px solid #60A5FA;
    outline-offset: 2px;
}

/* =========================================
   LAYOUT RESPONSIVE
   ========================================= */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Tarjetas de beneficios */
.card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 24px); /* Desktop */
    min-width: 280px;
}

/* =========================================
   BOTONES Y TRANSICIONES
   ========================================= */
.cta-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 14px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button:active {
    transform: translateY(0);
}

/* SECCIÓN DE CAPTURA ESTILO IMAGEN */
.capture-section {
    background-color: #006b3f; /* Verde oscuro de la imagen */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

.capture-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Formulario */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input, 
.form-group select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #000000;
    font-size: 1rem;
}

/* Estilo para el placeholder */
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Select con flecha blanca */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Mensajes de error */
.error-msg {
    color: #ffb3b3;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    display: none; /* Se activa con JS */
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

.checkbox-group label a {
    color: #ffffff;
    text-decoration: underline;
}

/* Botón Destacado */
.btn-submit {
    background-color: #ffffff;
    color: #006b3f;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-submit:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.faq-section {
    background-color: #f8fafc;
    padding: 80px 20px;
    text-align: center;
}

.faq-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.faq-subtitle {
    color: #64748b;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

/* Icono de flecha usando CSS puro */
.arrow-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid #2d8a5e;
    border-bottom: 2px solid #2d8a5e;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Estado activo */
.accordion-item.active {
    border-color: #2d8a5e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.accordion-item.active .arrow-icon {
    transform: rotate(-135deg);
    margin-top: 6px;
}

/* Contenido colapsable */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-inner {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   MEDIA QUERIES (Breakpoints)
   ========================================= */

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-cta-wrapper { flex-direction: column; }
    .nav-links { display: none; } /* Ocultar menú en móvil para simplicidad */
}

/* Desktop & Large Screens (> 1024px) */
@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
}

/* Tablet (768px a 1023px) */
@media (max-width: 1023px) {
    .card {
        flex: 1 1 calc(50% - 24px);
    }
    h1 { font-size: 2.5rem; }
}

/* Móvil (< 767px) */
@media (max-width: 767px) {
    section {
        padding: 40px 15px;
    }
    
    .card {
        flex: 1 1 100%;
    }

    h1 { font-size: 2rem; }
    
    .cta-button {
        width: 100%; /* Botón ancho completo en móvil */
    }

    #registro {
        padding: 24px;
        margin: 20px;
    }
}

/* =========================================
   ESTILOS DE TESTIMONIOS
   ========================================= */
blockquote {
    border-left: 4px solid var(--primary-green);
    padding: 20px 30px;
    margin: 20px 0;
    background: var(--white);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    color: var(--accent-blue);
}
