/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para colores y medidas */
:root {
    --color-primary: #013CA9;
    --color-secondary: #183EA0;
    --color-accent: #247DE1;
    --color-accent-light: #257CE1;
    --color-text-primary: #414042;
    --color-background-light: #F5F5F5;
    --color-background-form: #F4F8FD;
    --color-background-card: #E3F2FD;
    --color-border-card: #BBDEFB;
    --color-input-bg: #F1F1F1;
    --color-white: #ffffff;
    
    --font-size-xl: 78px;
    --font-size-lg: 48px;
    --font-size-md: 32px;
    --font-size-sm: 25px;
    --font-size-xs: 18px;
    --font-size-xxs: 16px;
    
    --spacing-xs: 16px;
    --spacing-sm: 20px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 100px;
}

/* Declaraciones de fuentes personalizadas */
@font-face {
    font-family: 'Avenir Medium';
    src: url('./fonts/AvenirLTStd-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Bold';
    src: url('./fonts/AvenirNextLTPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Sistema de tipografía */
.font-medium {
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

.font-bold {
    font-family: 'Avenir Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

/* Clases de utilidad para tamaños de texto */
.text-xl { font-size: var(--font-size-xl); line-height: 100%; }
.text-lg { font-size: var(--font-size-lg); line-height: 100%; }
.text-md { font-size: var(--font-size-md); line-height: 100%; }
.text-sm { font-size: var(--font-size-sm); line-height: 30px; }
.text-xs { font-size: var(--font-size-xs); line-height: 105.735%; }
.text-xxs { font-size: var(--font-size-xxs); line-height: 1.5; }

/* Clases de utilidad para colores */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-accent-light { color: var(--color-accent-light); }
.text-dark { color: var(--color-text-primary); }
.text-white { color: var(--color-white); }

/* Clases de utilidad para espaciado */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Clases de utilidad para layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Clases base para contenedores */
.container-base {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Secciones principales */
.site-header {
    width: 100%;
    height: auto;
    background: transparent;
}

.header-bar {
    width: 100%;
    height: 5vh;
    background-color: #1a213e;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 70%;
    margin-left: 60px;
}

.header-band {
    width: 100%;
    height: 10vh;
    background-color: rgba(1, 32, 96, 0.8);
    display: flex;
    align-items: center;
}

.header-band a .header-logo {
    width: 200px;
    margin: 0 auto;
    padding-top: 15px;
    margin-left: 200px;
}
.section {
    width: 100%;
    min-height: 500px;
}

.section-hero {
    background-color: var(--color-background-light);
    height: 700px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding-right: var(--spacing-sm);
    overflow: hidden;
}

.section-content {
    background-color: var(--color-white);
    min-height: 500px;
    padding: 50px 0px;
}

.section-form {
    background-color: var(--color-background-form);
    min-height: 750px;
    padding: 50px 0px;
}

/* Columnas y layout */
.col {
    height: 100%;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: left center;
    border-bottom-right-radius: 320px;
    display: block;
}

h2.font-bold.text-lg.text-secondary.text-center {
    padding: 30px 0px;
}

.content-wrapper {
    max-width: 1110px;
    margin: 0 auto;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: right;
    justify-content: center;
    margin-left: -20px;
    padding-right: 100px;
}

/* Componentes reutilizables */
.title-hero {
    margin: 25px 0;
}

.logo-container {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0;
}

.logo-clickpay {
    width: 522px;
    height: 79px;
}

.subtitle-hero {
    margin: 0;
}

/* Texto y contenido */
.text-content-main {
    margin: var(--spacing-lg) 0;
}

.info-section {
    width: 100%;
    max-width: 850px;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.info-text {
    margin: 0 0 var(--spacing-sm) 0;
}

.info-text:last-child {
    color: #414042;
    text-align: center;
    font-family: "Avenir Next", 'Avenir Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
}

/* Sección de beneficios */
.benefits-section {
    width: 100%;
    max-width: 1220px;
    margin-top: var(--spacing-xl);
    text-align: center;
    /* margin-bottom: 50px; */
}

.benefits-title {
    font-size: 42px;
    line-height: 100%;
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.benefits-row-top {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.benefits-row-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.benefit-card {
    width: 100%;
    max-width: 345px;
    height: 400px;
    background-color: rgba(227, 242, 253, 0.5);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-lg) 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin: 0px 10px;
}

.benefit-icon {
    height: 80px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 60px;
    height: 60px;
}

.benefit-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Tamaños específicos por ícono (más específicos que .benefit-icon img) */
.benefit-icon img.icon-afiliados { width: 80.85px; height: 81.39px; }
.benefit-icon img.icon-comodidad { width: 75px; height: 108px; }
.benefit-icon img.icon-contrasenas { width: 95.72px; height: 95.65px; }
.benefit-icon img.icon-pagos { width: 100.35px; height: 94.01px; }
.benefit-icon img.icon-seguridad { width: 83.11px; height: 95.33px; }

.benefit-card-title {
    color: #003CA6;
    text-align: center;
    font-family: "Avenir Next", 'Avenir Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: var(--spacing-sm);
}

.benefit-card-text {
    color: #414042;
    text-align: center;
    font-family: "Avenir Next", 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    margin: 0;
}

.benefit-card-text strong {
    font-size: 25px;
    font-weight: 700;
}



/* Formularios */
.form-section {
    width: 100%;
    max-width: 800px;
    padding-bottom: var(--spacing-xl);
}

.form-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.form-field {
    width: 533px;
    height: 78px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-accent);
    background: var(--color-input-bg);
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-xs);
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 105.735%;
    color: #000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field:focus {
    outline: none;
    border: 1px solid var(--color-accent);
    background-color: var(--color-white);
    box-shadow: none;
}

.form-field::placeholder {
    color: var(--color-accent);
    font-size: var(--font-size-xs);
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 105.735%;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--spacing-md) center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 60px;
    color: #000;
}

.form-select option {
    color: #000;
    font-size: var(--font-size-xs);
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 105.735%;
}

.btn {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary {
    width: 235px;
    height: 69px;
    border-radius: var(--border-radius-lg);
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 24px;
    font-weight: 500;
    line-height: 97.776%;
    margin-top: var(--spacing-sm);
}

.btn-primary:hover {
    background-color: #0F2A7A;
}

/* Estados de error para formularios */
.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Media queries optimizadas */
@media (max-width: 960px) {
    .section-hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        height: auto;
        padding: 0;
    }
    
    h1.font-bold.text-xl.text-primary.title-hero {
        font-size: 40px;
        margin-bottom: 5px;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        margin: 15px 0;
    }

    .hero-image {
        width: 100%;
        height: auto;
        border-bottom-right-radius: 80px;
    }
    
    .text-content {
        text-align: center;
        gap: var(--spacing-xs);
        margin-left: 0;
        padding-right: 0;
    }
    
    .text-xl { font-size: var(--font-size-lg); }

    .text-lg {
        font-size: 25px;
        padding-bottom: 50px;
    }

    .logo-clickpay {
        width: 320px;
        height: 50px;
    }
}

@media (max-width: 1200px) {
    .benefits-row-top {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-row-bottom {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-form,
    .section-content {
        padding: var(--spacing-sm);
    }
    
    .text-lg {
        font-size:30px;
    }
    
    .text-md {
        font-size: var(--spacing-sm);
    }
    
    .form-section {
        width: 100%;
        max-width: 800px;
        padding-bottom: 30px;
    }

    h2.font-bold.text-lg.text-secondary.text-center {
        font-size: 26px;
    }

    .form-container {
        max-width: 480px;
        gap: 14px;
    }

    .form-field,
    .form-select {
        width: 100%;
        max-width: 360px;
        height: 64px;
        font-size: 16px;
        padding: 0 16px;
    }

    .btn-primary {
        width: 220px;
        height: 60px;
        font-size: 20px;
    }
    
    .content-wrapper {
        max-width: 90vw;
    }
    
    .benefits-row-top,
    .benefits-row-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-card {
        width: 100%;
        max-width: 400px;
        margin: 0px;
    }
    
    .benefits-title {
        font-size: 32px;
    }

    /* Ajustes mobile para beneficios e info */
    .benefits-section {
        margin-top: 50px;
    }

    .benefits-grid {
        gap: 0px;
    }

    .info-section {
        width: 100%;
        max-width: 850px;
        margin-top: 20px;
        text-align: center;
    }

    /* Header mobile */
    .header-bar {
        height: 2vh;
    }

    .header-band {
        height: 10vh;
    }

    .header-band a .header-logo {
        width: 180px;
        margin: 0 auto;
    }

    /* Footer mobile */
    .footer-bar {
        height: 2vh;
    }

    .footer-band {
        height: 5vh;
    }

    .footer-band p {
        font-size: 9px;
        line-height: 1.2;
    }
}

/* Estilos base del body */
body {
    font-family: 'Avenir Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    width: 100%;
    height: auto;
    background: transparent;
}

.footer-bar {
    width: 100%;
    height: 4vh;
    background-color: #283375;
}

.footer-band {
    width: 100%;
    height: 7vh;
    background-color: #1a213e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-band p {
    color: #ffffff;
    font-size: 11px;
}

.footer-band a {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive específico: Tablet (769px–1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Header */
    .header-bar { height: 3vh; }
    .header-band { height: 8vh; }
    .header-band a .header-logo { width: 220px; margin: 0 24px; }

    /* Hero */
    .section-hero {
        grid-template-columns: 1fr 1fr;
        height: auto;
        padding-right: var(--spacing-sm);
    }
    .hero-image { border-bottom-right-radius: 200px; }
    .logo-clickpay { width: 420px; height: auto; }
    .text-lg { font-size: 28px; }

    /* Beneficios */
    .benefits-section { max-width: 1000px; }
    .benefits-title { font-size: 36px; }
    .benefit-card {
        max-width: 320px;
        height: 380px;
        padding: var(--spacing-md) 24px;
        margin: 0 8px;
    }

    /* Formulario */
    .form-container { max-width: 560px; }
    .form-field { width: 480px; height: 72px; }
    .btn-primary { width: 220px; height: 64px; font-size: 22px; }

    /* Footer */
    .footer-bar { height: 3vh; }
    .footer-band { height: 6vh; }
    .footer-band p { font-size: 10px; }
}

/* Responsive específico: MacBook (1201px–1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
    /* Header */
    .header-bar { height: 3vh; }
    .header-band { height: 8vh; }
    .header-band a .header-logo { width: 240px; margin: 0 32px; }

    /* Hero */
    .section-hero {
        height: auto;
        min-height: 600px;
        grid-template-columns: 1.1fr 1fr;
        padding-right: var(--spacing-sm);
    }
    .hero-image { border-bottom-right-radius: 260px; }
    .logo-clickpay { width: 460px; height: auto; }
    .text-lg { font-size: 30px; }

    /* Beneficios */
    .benefits-section { max-width: 1160px; }
    .benefit-card { max-width: 330px; }

    /* Formulario */
    .form-container { max-width: 600px; }
    .form-field { width: 520px; height: 74px; }

    /* Footer */
    .footer-band p { font-size: 11px; }
}
