body { font-family: 'Nunito', sans-serif; }

/* ── Navbar SAE ── */
.sae-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.sae-navbar > .container { height: 86px; }
.sae-brand { text-decoration: none; display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sae-brand-img { height: 62px; object-fit: contain; }
.sae-brand-fallback { display: flex; align-items: center; gap: .45rem; }
.sae-brand-box { background: #1557c0; color: #fff; font-weight: 900; font-size: 1.25rem; padding: 5px 10px; border-radius: 6px; letter-spacing: .5px; line-height: 1; }
.sae-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sae-brand-name { font-size: .95rem; font-weight: 800; color: #1a2540; letter-spacing: -.2px; }
.sae-brand-tagline { font-size: .62rem; color: #888; font-weight: 500; line-height: 1.3; }
.sae-nav-link {
    color: #444; text-decoration: none; font-size: .88rem; font-weight: 600;
    padding: .4rem .75rem; border-radius: 6px;
    transition: color .15s, background .15s; white-space: nowrap;
    position: relative;
}
.sae-nav-link::after {
    content: ''; position: absolute; bottom: 2px;
    left: .75rem; right: .75rem; height: 2px;
    background: #1557c0; border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform .22s ease;
}
.sae-nav-link:hover { color: #1557c0; }
.sae-nav-link:hover::after { transform: scaleX(1); }
.sae-nav-cta {
    background: #1557c0; color: #fff; text-decoration: none;
    font-size: .82rem; font-weight: 700; padding: .45rem 1rem;
    border-radius: 8px; white-space: nowrap; transition: background .2s;
    letter-spacing: .2px; display: flex; align-items: center; gap: .4rem;
}
.sae-nav-cta i { font-size: 1rem; }
.sae-nav-cta:hover { background: #0e3f8f; color: #fff; }
.sae-hamburger {
    background: none; border: 1px solid #dce3ef; border-radius: 7px;
    padding: .3rem .55rem; font-size: 1.3rem; color: #1a2540;
    cursor: pointer; transition: background .15s; line-height: 1;
}
.sae-hamburger:hover { background: #f0f5ff; }
.sae-mobile-menu { display: none; border-top: 1px solid #e5e9f2; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.sae-mobile-menu.open { display: block; }
.sae-mobile-link {
    display: block; padding: .65rem 1rem; font-size: .9rem; font-weight: 600;
    color: #444; text-decoration: none; border-bottom: 1px solid #f0f2f7; transition: color .15s;
}
.sae-mobile-link:hover { color: #1557c0; }

/* ── Hero ── */
.hero-section {
    min-height: 52vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 60%, #0288d1 100%);
    color: #fff;
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat1 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
    animation: heroFloat2 8s ease-in-out infinite;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-25px); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(20px); }
}
.hero-section .search-box { max-width: 680px; margin: 0 auto; }
.search-pill {
    display: flex; align-items: center;
    background: #fff; border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    overflow: hidden; padding: .2rem .2rem .2rem 1.2rem;
}
.search-pill input {
    flex: 1; border: none; outline: none; font-size: .97rem;
    font-family: 'Nunito', sans-serif; background: transparent; color: #1a2540;
}
.search-pill input::placeholder { color: #9ab; }
.search-pill button {
    background: #1557c0; color: #fff; border: none;
    border-radius: 999px; padding: .6rem 1.4rem;
    font-weight: 700; font-size: .9rem; cursor: pointer;
    display: flex; align-items: center; gap: .4rem;
    transition: background .2s;
}
.search-pill button:hover { background: #0e3f8f; }

/* ── Shared ── */
.section-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: #1557c0; background: #eef3ff;
    border-radius: 999px; padding: .28rem .9rem; margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #1a2540; }
.section-sub { color: #6b7a99; font-size: .93rem; max-width: 600px; }

/* ── Centros ── */
.centros-section { background: #fff; }

.centro-card {
    background: #fff; border-radius: 22px;
    border: 1.5px solid #e8edf8;
    padding: 2rem 1.5rem 1.6rem;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
    display: flex; flex-direction: column; align-items: center;
    height: 100%; position: relative; overflow: hidden;
    text-decoration: none; color: inherit;
}
.centro-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--centro-color, #1557c0);
    transform: scaleX(0); transition: transform .3s ease;
}
.centro-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 56px rgba(21,87,192,.13);
    border-color: #bdd0f8; color: inherit;
}
.centro-card:hover::before { transform: scaleX(1); }

.centro-logo-wrap {
    width: 84px; height: 84px; border-radius: 20px;
    overflow: hidden; border: 2px solid #eaeff8; background: #f5f7fb;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: box-shadow .28s;
}
.centro-card:hover .centro-logo-wrap { box-shadow: 0 10px 28px rgba(21,87,192,.15); }
.centro-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.centro-logo-fallback { font-size: 2.2rem; color: var(--centro-color, #1557c0); }

.centro-name { font-size: 1rem; font-weight: 800; color: #1a2540; margin-bottom: .15rem; line-height: 1.3; }
.centro-badge {
    font-size: .68rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    color: #7a90b8; margin-bottom: 1.1rem;
}
.btn-centro {
    margin-top: auto;
    border: 1.5px solid var(--centro-color, #1557c0); color: var(--centro-color, #1557c0);
    border-radius: 999px; font-size: .82rem; font-weight: 700;
    padding: .4rem 1.4rem; background: transparent;
    transition: background .2s, color .2s;
    text-decoration: none; display: inline-block;
}
.centro-card:hover .btn-centro { background: var(--centro-color, #1557c0); color: #fff; }

/* Wave divider */
.wave-divider { line-height: 0; overflow: hidden; margin-bottom: -2px; }
.wave-divider svg { display: block; width: 100%; }

/* ── Roles ── */
.roles-section {
    background: linear-gradient(160deg, #f0f4fd 0%, #e8edf8 100%);
    position: relative;
}

.role-card {
    background: #fff; border-radius: 22px; border: 1.5px solid #e8edf8;
    padding: 2.5rem 2rem 2rem; text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
    display: flex; flex-direction: column; align-items: center;
    height: 100%; position: relative; overflow: hidden;
}
.role-card.card-admin::before { content: ''; position: absolute; top:0;left:0;right:0;height:4px; background: linear-gradient(90deg,#1557c0,#4285f4); }
.role-card.card-tech::before  { content: ''; position: absolute; top:0;left:0;right:0;height:4px; background: linear-gradient(90deg,#059669,#34d399); }
.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(0,0,0,.1);
    border-color: #c2d1f5;
}

.role-icon-wrap { position: relative; margin-bottom: 1.4rem; }
.role-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.role-icon.admin { background: linear-gradient(135deg,#1557c0,#2563eb); }
.role-icon.tech  { background: linear-gradient(135deg,#059669,#34d399); }
.role-icon-wrap::after {
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 2px solid rgba(0,0,0,.06);
    transition: opacity .3s;
}
.role-card:hover .role-icon-wrap::after { animation: pulse-ring 1.2s ease-out infinite; }
@keyframes pulse-ring {
    0%   { transform: scale(1);    opacity: .5; }
    100% { transform: scale(1.18); opacity: 0;  }
}

.role-card h5 { font-weight: 800; font-size: 1.15rem; color: #1a2540; margin-bottom: .5rem; }
.role-card p  { font-size: .88rem; color: #6b7a99; line-height: 1.65; margin-bottom: 1.6rem; }

.btn-role {
    margin-top: auto; border-radius: 999px;
    font-size: .9rem; font-weight: 700; padding: .6rem 2rem;
    text-decoration: none; transition: opacity .2s, transform .15s; display: inline-block;
}
.btn-role:hover { opacity: .88; transform: translateY(-2px); }
.btn-role.btn-admin {
    background: linear-gradient(135deg,#1557c0,#2563eb); color: #fff; border: none;
    box-shadow: 0 6px 20px rgba(21,87,192,.3);
}
.btn-role.btn-admin:hover { color: #fff; }
.btn-role.btn-tech { background: transparent; color: #059669; border: 2px solid #059669; }
.btn-role.btn-tech:hover { background: #059669; color: #fff; }

.role-stats {
    display: flex; gap: 1.5rem; margin-bottom: 1.4rem;
    padding: .8rem 1rem; background: #f8faff;
    border-radius: 12px; width: 100%;
}
.role-stat { text-align: center; flex: 1; }
.role-stat .stat-n { font-size: 1.1rem; font-weight: 800; color: #1557c0; line-height: 1; }
.role-stat .stat-l { font-size: .68rem; color: #9aafcc; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.role-card.card-tech .role-stat .stat-n { color: #059669; }
.role-stats-tech { background: #f0faf6; }

/* ── Footer ── */
.sae-footer { background: #1a2540; color: #a0b0cc; padding: 2rem 0; }
.sae-footer a { color: #c8d8f0; text-decoration: none; }
.sae-footer a:hover { color: #fff; }
.sae-footer .footer-brand { font-size: 1rem; font-weight: 800; color: #fff; }
.sae-footer .footer-sep { opacity: .2; }
