:root {
    --font-family: 'Raleway', sans-serif;
    --primary-blue: #ffffff;
    --bg-color: #eef4fb;
    --text-main: #162032;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(109, 165, 217, 0.2), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg-color) 100%);
    color: var(--text-main);
    line-height: 1.6;
    font-family: var(--font-family);
}


.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding-inline: clamp(0.8rem, 2vw, 1.35rem);
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.7s ease-out forwards;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.95rem, 1.8vw, 1.2rem) 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-btn {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 10px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
}

.nav-btn:hover {
    background: #23487f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 72, 127, 0.28);
}

.contact-btn {
    background: #23487f;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(35, 72, 127, 0.22);
}

.contact-btn:hover {
    background: #ffffff;
    color: #23487f;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(35, 72, 127, 0.18);
    filter: brightness(1.01);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    color: currentColor;
    line-height: 1;
    opacity: 1;
    width: 0.95rem;
    overflow: hidden;
    transition: opacity 0.25s ease, width 0.25s ease;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logoheader {
    width: 150px;
    margin-right: 10px;
}

.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0f141e;
}

.img-header {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 88px);
    object-fit: contain;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 0;
    background: linear-gradient(90deg, rgba(9, 18, 34, 0.84) 0%, rgba(15, 32, 58, 0.46) 44%, rgba(15, 20, 30, 0.06) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    justify-content: center;
    width: min(100%, 1240px);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(1.85rem, 3.8vw, 3rem) clamp(0.8rem, 2vw, 1.35rem);
    color: #ffffff;

}

.img-hero,
.hero-img {
    width: 100%;
    display: block;
    height: clamp(260px, 38vw, 520px);
    object-fit: cover;
    object-position: center;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    font-weight: 600;
    margin-top: -0.35rem;
    margin-bottom: clamp(0.9rem, 1.8vw, 1.3rem);
    max-width: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 15px;
    border-radius: 10px;
    background: transparent;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.back-link:hover {
    background: #6da5d9;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(35, 72, 127, 0.28);
    transform: translateY(-2px);
}

.hero-content h1 {
    font-size: clamp(1rem, 2.5vw, 3rem);
    line-height: 0.98;
    font-weight: 800;
    max-width: min(500px, 68vw);
    margin-bottom: 0.65rem;
    color: #ffff;
    margin-top: 0;
}

.hero-content p {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    max-width: min(500px, 62vw);
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.exam-overview {
    padding: 4rem 0 4.5rem;
}

.overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.68fr);
    gap: 1.6rem;
    align-items: start;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    justify-content: center;
}

.overview-main {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    padding: 1.95rem 2.1rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

.overview-section + .overview-section {
    margin-top: 2rem;
}

.section-title {
    font-size: clamp(1.4rem, 1.7vw, 1.8rem);
    line-height: 1.15;
    color: #1d2b45;
    margin-bottom: 0.9rem;
    font-weight: 800;
}

.section-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.title-icon,
.subtitle-icon,
.item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d63b3;
    flex-shrink: 0;
}

.title-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.subtitle-icon {
    width: 1rem;
    height: 1rem;
}

.item-icon {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.18rem;
}

.title-icon svg,
.subtitle-icon svg,
.item-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.overview-section p,
.plain-list li {
    color: #607089;
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 400;
}

.overview-section p + p {
    margin-top: 0.6rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #eef3fb;
    color: #23487f;
    font-size: 0.88rem;
    font-weight: 500;
}

.info-tag::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323487f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9.5 12.5l1.8 1.8 3.2-4'/%3E%3C/svg%3E");
}

.requirements-grid {
    display: grid;

    gap: 1rem 1.5rem;
}

.requirement-block h4 {
    color: #1d2b45;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.plain-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.4rem;
}

.plain-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-weight: 400;
}

.overview-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 108px;
    align-self: start;
}

.side-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(35, 72, 127, 0.08);
}

.cta-card h3,
.data-card h3 {
    color: #1d2b45;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.cta-card p {
    color: #607089;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    font-weight: 400;
}

.cta-button {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #23487f;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(35, 72, 127, 0.22);
}

.cta-note {
    display: block;
    text-align: center;
    color: #7a8aa4;
    font-size: 0.78rem;
    margin-top: 0.55rem;
}

.data-card {
    display: grid;
    gap: 1rem;
}

.data-item + .data-item {
    border-top: 1px solid #eef2f7;
    padding-top: 1rem;
}

.data-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #1d2b45;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.data-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    color: #2d63b3;
    flex-shrink: 0;
}

.data-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.data-item p {
    color: #607089;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 400;
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    background: #6da5d9;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 1.05rem 1.4rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.modality-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.65rem;
}

.mode-btn:hover {
    background: #23487f;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(35, 72, 127, 0.22);
}

.mode-btn-secondary {
    background: #6da5d9;
}

.mode-btn-secondary:hover {
    background: #23487f;
    box-shadow: 0 12px 24px rgba(35, 72, 127, 0.22);
}

.modality-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(35, 72, 127, 0.08);
    color: #23487f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.modality-panel {
    display: grid;
    gap: 1rem;
}

.modality-inline-section {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f7;
}

.modality-inline-section p {
    color: #607089;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
    max-width: 620px;
}

.modality-panel-inline {
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modality-main-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 1.05rem 1.4rem;
    font-size: 1rem;
}

.booking-highlight {
    margin-top: 2.35rem;
    padding: 1.65rem;
    border-radius: 28px;
    background: rgba(109, 165, 217, 0.8);
    border: none;
    box-shadow: 0 18px 34px rgba(109, 165, 217, 0.16);
}

.booking-copy {
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.booking-copy p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
}

.booking-shell {
    position: relative;
}

.booking-frame-card {
    padding: clamp(0.8rem, 2vw, 1.05rem);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(10, 19, 36, 0.18);
    overflow: hidden;
}

.booking-frame-card iframe {
    display: block;
    width: 100%;
    border-radius: 14px;
    background: #ffffff;
}

/* --- Pie de página (Fondo Rojo Oscuro) --- */
footer {
    background: #3c56a4;
    padding: 3rem 0 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
}

.footer-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2rem;
}

footer h4 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-kicker {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.7rem;
    font-weight: 400;
}

.footer-brand img {
    width: min(120px, 100%);
    height: auto;
    display: block;
    margin-bottom: 0.9rem;
}

.footer-brand p,
.footer-location p,
.footer-legal p,
footer li {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
    font-weight: 400;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li + li {
    margin-top: 0.45rem;
}

footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
}

.footer-contact a,
.footer-location p {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.66);
}

.footer-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-legal {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);

    text-align: center;
}

.footer-legal p {
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 400;
}

@media (max-width: 768px) {
    .container {
        width: min(100%, 1100px);
    }

    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-banner {
        min-height: 300px;
    }

    .img-header {
        width: 100%;
        height: 100%;
        min-height: 300px;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .hero-overlay {
        padding: 0;
    }

    .hero-content {
        inset: 0;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0;
        margin-left: 0;
        padding: 1.25rem 1rem 1.4rem 1.35rem;
        max-width: min(420px, 78vw);
    }

    .back-link {
        margin-top: -0.2rem;
        margin-bottom: 1.1rem;
        gap: 0.3rem;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 5.8vw, 2.7rem);
        max-width: min(390px, 72vw);
        margin-bottom: 0.85rem;
    }

    .hero-content p {
        font-size: clamp(0.9rem, 2.25vw, 1rem);
        max-width: min(340px, 68vw);
    }

    .exam-overview {
        padding: 3rem 0 3.5rem;
    }

    .overview-layout {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .overview-main,
    .side-card {
        padding: 1.4rem;
    }

    .overview-sidebar {
        position: static;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        width: 90%;
    }
    .footer-legal {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 320px;
    }

    .img-header {
        width: 100%;
        height: 100%;
        min-height: 320px;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .hero-content {
        inset: 0;
        gap: 0.35rem;
        justify-content: center;
        margin-top: 0;
        margin-left: 0;
        padding: 1rem 1rem 1rem 1.1rem;
        max-width: min(320px, calc(100vw - 32px));
    }

    .back-link {
        font-size: clamp(0.72rem, 3vw, 0.82rem);
        margin-bottom: 0.85rem;
        gap: 0.25rem;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 7.6vw, 2rem);
        max-width: min(300px, calc(100vw - 36px));
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: clamp(0.82rem, 3.5vw, 0.94rem);
        max-width: min(300px, calc(100vw - 36px));
    }

    .modality-actions {
        flex-direction: column;
    }

    .mode-btn {
        text-align: center;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .overview-layout {
        width: 100%;
    }

    .modality-panel-inline {
        grid-template-columns: 1fr;
    }

    .booking-highlight {
        padding: 1rem;
    }
}
