/* =============================================================================
   ALTA GESTIÓN — Portada pública con el layout de Alta Ekklesía (Home/About)
   -----------------------------------------------------------------------------
   Estructura, tamaños y ritmo copiados de AE.WEB/wwwroot/assets/css/views/home/
   About.css; los colores NO: todo sale de ag-tokens.css (paleta de Alta Gestión).
   Mapeo aplicado:
     azul AE #2564BF (botones, íconos sólidos) -> --ag-primary / --ag-primary-hover
     teal AE #17A2A0 (acento secundario)       -> --ag-primary-soft
     celestes AE (#E7F1FF, #E9F8FF, #F8F9FE)   -> #f6f9fe / --ag-blue-100 / --ag-blue-200
     pasteles AE (#C2D4ED, #C8DEFF, #E5ECF7)   -> --ag-active-bg
     degradado demo #4E8EF7 -> #2564BF         -> --ag-surface-accent -> --ag-primary
   Prefijo agl- para no chocar con ekp- (landing-modern.css), que sigue cargándose
   aquí solo por los estilos de formulario (.ekp-input, .ekp-form-*).
   ============================================================================= */

.agl-page {
    font-family: var(--ag-font-body);
    color: var(--ag-primary);
    background: #fff;
    /* clip y no hidden: hidden convierte a .agl-page en contenedor de scroll y rompe
       el position: sticky del header. */
    overflow-x: clip;
}

.agl-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Header / Nav ── */
.agl-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--ag-border);
}
.agl-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 108px;
    gap: 24px;
}
.agl-brand { display: flex; align-items: center; }
.agl-brand img { height: 64px; width: auto; display: block; }

.agl-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.agl-nav-links a {
    color: var(--ag-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
.agl-nav-links a:hover { color: var(--ag-primary-soft); }

.agl-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 13px 26px;
    border-radius: 24px;
    border: none;
    background: var(--ag-primary);
    color: #fff;
    font-family: var(--ag-font-head);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--ag-transition);
}
.agl-btn:hover { background: var(--ag-primary-hover); color: #fff; }
.agl-btn i { font-size: 16px; }

.agl-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ag-primary);
}
.agl-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 16px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--ag-border);
}
.agl-mobile-nav a { color: var(--ag-primary); text-decoration: none; font-weight: 600; }
.agl-mobile-nav a.agl-btn { color: #fff; }

/* ── Hero ── */
.agl-hero {
    position: relative;
    overflow: hidden;
    background: #f6f9fe;
    padding: 72px 0 80px;
}
.agl-hero-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--ag-active-bg);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}
.agl-hero-circle--tl { width: 320px; height: 320px; top: -140px; left: -120px; }
.agl-hero-circle--tr { width: 260px; height: 260px; top: 20px; right: -100px; }

.agl-hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
}
.agl-hero-copy { flex: 1 1 55%; }
.agl-hero-art { flex: 1 1 45%; text-align: center; }
.agl-hero-art img { width: 100%; max-width: 420px; height: auto; }

.agl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ag-active-bg);
    color: var(--ag-primary);
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.agl-hero-title {
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
    color: var(--ag-primary);
    margin: 0 0 20px;
}
.agl-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ag-text-muted);
    margin: 0 0 32px;
    max-width: 560px;
}
.agl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ag-primary);
    color: #fff;
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 24px;
    text-decoration: none;
    transition: background var(--ag-transition);
}
.agl-hero-cta:hover { background: var(--ag-primary-hover); color: #fff; }

/* ── Títulos de sección ── */
.agl-section-title {
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: var(--ag-primary);
    text-align: center;
    margin: 0 0 12px;
}
.agl-section-subtitle {
    font-size: 15px;
    color: var(--ag-text-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 44px;
}

/* ── Por qué elegir ── */
.agl-why {
    background: var(--ag-blue-100);
    padding: 72px 0;
}
.agl-why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.agl-why-card {
    flex: 1 1 300px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: 16px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.agl-why-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--ag-active-bg);
    color: var(--ag-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
}
.agl-why-title {
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ag-primary);
    margin: 0 0 8px;
}
.agl-why-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ag-text-muted);
    margin: 0;
}

/* ── Módulos (tarjetas "sistema" de AE, con el acordeón de normativas) ── */
.agl-sys {
    background: #f6f9fe;
    padding: 72px 0;
}
.agl-sys-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.agl-sys-card {
    flex: 1 1 260px;
    max-width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 26, 63, 0.06);
    overflow: hidden;
}
.agl-sys-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 22px;
    text-align: left;
    cursor: pointer;
}
.agl-sys-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--ag-primary-soft);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.agl-sys-title {
    flex: 1;
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ag-primary);
    margin: 0;
}
.agl-sys-chevron {
    color: var(--ag-primary-soft);
    transition: transform var(--ag-transition);
}
.agl-sys-toggle[aria-expanded="true"] .agl-sys-chevron { transform: rotate(180deg); }
.agl-sys-body { padding: 0 22px 22px; }
.agl-sys-body ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ag-text-muted);
}
.agl-sys-body li { margin-bottom: 4px; }

/* ── Demo + formulario ── */
.agl-contact { background: #fff; padding: 0; } /* anula section { padding: 9rem 0 } de LandingStyle.css */
.agl-demo-grid { display: flex; width: 100%; }
.agl-demo-aside {
    flex: 1 1 50%;
    background: linear-gradient(160deg, var(--ag-surface-accent) 0%, var(--ag-primary) 100%);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.agl-demo-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.agl-demo-title {
    font-family: var(--ag-font-head);
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #fff;
    margin: 0 0 16px;
}
.agl-demo-subtitle {
    font-size: 16.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
}
.agl-demo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.agl-demo-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
}
.agl-demo-form {
    flex: 1 1 50%;
    background: #f6f9fe;
    padding: 56px;
}
.agl-demo-form .ekp-form-actions .ekp-btn { width: 100%; height: 52px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .agl-nav-links { display: none; }
}
@media (max-width: 900px) {
    .agl-hero-grid { flex-direction: column; }
    .agl-hero-art { order: -1; }
    .agl-hero-title { font-size: 32px; line-height: 40px; }
    .agl-demo-grid { flex-direction: column; }
    .agl-demo-aside, .agl-demo-form { padding: 48px 28px; }
}
@media (max-width: 700px) {
    .agl-container { padding: 0 16px; }
    .agl-nav { height: 80px; }
    .agl-brand img { height: 44px; }
    .agl-nav-actions { display: none; }
    .agl-nav-toggle { display: block; }
    .agl-section-title { font-size: 28px; line-height: 36px; }
    .agl-demo-title { font-size: 28px; line-height: 36px; }
}
