:root {

    --font-family: 'Raleway', sans-serif;
}

.toeic-logo {
    width: min(290px, 100vw);
    margin: 0 auto 1rem;
}

.toeic-logo svg,
.toeic-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.toefl-logo {
    width: min(300px, 100vw);
    margin: 0 auto;
}

.toefl-logo img {
    width: 100%;
    height: auto;
    display: block;
}
.tfl-logo{
    width: min(300px, 100vw);
    margin: 0px;
    padding: 10px;
}


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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-family: var(--font-family);
    overflow-x: hidden;
}

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

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

/* --- Animación de Entrada Suave --- */
@keyframes fadeInDown {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Barra de Navegación (Fondo Azul Oscuro) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    opacity: 1;
    backdrop-filter: none;
    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;
}

/* --- Botones del Nav (Gradientes solo de Tonos Azules) --- */
.nav-btn {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px;
    padding-right: 15px;
    padding-left: 15px;
    border-radius: 10px; /* Estilo píldora moderna */
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
}

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

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

.contact-btn:hover {
    background: #ffffff;
    color: #23487f;
    box-shadow: 0 10px 22px rgba(35, 72, 127, 0.18);
    transform: translateY(-2px);
    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 {
    background-color: var(--card-bg);
    padding: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.28) 40%, rgba(15, 23, 42, 0.08) 100%);
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    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);
}

.titul {
    max-width: 7ch;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.7vw, 4.1rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: 0;
    -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.2);
    text-shadow: 0 4px 18px rgba(0,0,0,0.35);
    margin: 0;
}
.subtitul {
    color: #ffffff;
    width: max-content;
    max-width: none;
    font-size: clamp(1rem, 1.05vw, 1.08rem);
    line-height: 1.3;
    font-weight: 500;
    text-shadow: 0 4px 18px rgba(0,0,0,0.35);
    margin: 0;
    white-space: nowrap;
}

.subtitul br {
    display: block;
    content: "";
}

.subtitul strong {
    font-weight: 800;
}

.disponible {
    margin-top: 1.35rem;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 10px;
    background-color: white;
    color: #27487f;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.disponible-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.disponible-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    padding-top: 60px;

}

.benefits > div {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #7a8ea8;
}

.benefits p {
    margin: 0;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f67b2;
}

.benefit-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.enter{
    color: #ea3350;
    font-size: 37px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}
.text{
    color: #64748b;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 500;
}

.entertext{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0%;
}

.selection-area {
    scroll-margin-top: 90px;
    padding-inline: 0;
}

#toeic-bloque {
    scroll-margin-top: 16px;
}

.containers-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem 2.5rem;
    max-width: 1080px;
    margin: 0 auto 1rem;
    
}


.containers-text > div {
    width: 100%;
    margin-bottom: 0px;

}

.containers-text p,
.containers-text h3 {
    margin: 0;
}

.subtitulocontainer {
    color: #ffffff;
    background-color: #27487f;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0.7rem;
    padding: 8px 20px;
    border-radius: 12px 12px 0px 0px ;
    width: 100%;
    box-sizing: border-box;
}

h3 {
    color: rgb(77, 75, 75);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    width: 100%;
    padding: 10px; padding-left: 20px;
    margin-bottom: 0.85rem;
    box-sizing: border-box;
}

.context{
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    width: 100%;
    padding: 0 20px;
    min-height: 3.2em;
    box-sizing: border-box;
}

.cuadrotext{
    background-color: #ffffff;
    border-radius: 12px 12px 12px 12px;
    padding: 0 0 0.95rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cdrtext{
    background-color: #ffffff;
    border-radius: 12px 12px 12px 12px;
    padding: 0 0 0.95rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cuadrotext:hover,
.cuadrotext:focus-visible,
.cdrtext:hover,
.cdrtext:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(39, 72, 127, 0.2);
    outline: none;
}

.subcontainer{
    color: #ffffff;
    background-color: #27487f;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0.7rem;
    padding: 8px 20px;
    border-radius: 12px 12px 0px 0px ;
    width: 100%;
    box-sizing: border-box;
}

.conteext{
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    width: 100%;
    padding: 0 20px;
    min-height: 3.2em;
    box-sizing: border-box;
}

.cnttext{
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem 2.5rem;
    max-width: 1080px;
    margin: 0 auto 3rem;
    
}

.cnttext-single {
    grid-template-columns: minmax(280px, 520px);
    justify-content: center;
}

.cnttext-single > div {
    width: 100%;
}

.cnttext p,
.cnttext h3 {
    margin: 0;
}

.details-link {
    
    margin-left: 20px;
    color: #4a76b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.details-link:hover {
    color: #23487f;
}

/* --- Filtros (Botones de Pestañas con Gradiente Rojo) --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    background-color: white;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    
    
}

.filter-btn:hover {
    border-color: var(--bright-red);
    color: var(--bright-red);
}

.filter-btn.active {
    background: var(--primary-red); /* Fallback */
    background: var(--grad-btn-red); /* Gradiente rojo aplicado aquí */
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.3);
}

/* --- Cuadrícula y Tarjetas --- */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 5rem;
}

.exam-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Adorno superior sutil */
.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-btn-red); /* Usamos gradiente rojo */
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.exam-tag {
    font-size: 0.8rem;
    color: var(--secondary-blue);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: block;
}

.exam-title {
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.exam-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

/* --- Botón de Tarjeta (Sólido con Gradiente Rojo) --- */
.exam-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--bright-red); /* Fallback */
    background: var(--grad-btn-red); /* Gradiente rojo aplicado aquí */
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.3);
}

/* --- 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: 1240px;
    margin: 0 auto;
    padding-inline: clamp(0.8rem, 2vw, 1.35rem);
    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: 700;
}

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

.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;
}

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

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

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

.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);
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-copy {
        padding: 2.3rem 1.2rem 1.9rem;
        max-width: 1240px;
    }
    .benefits {
        gap: 1.25rem 2rem;
        padding-top: 2.5rem;
    }
    .containers-text,
    .cnttext,
    .toefl-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 1.25rem;
    }
    .footer-shell {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        justify-content: center;
        gap: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .nav-links {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: clamp(0.9rem, 4vw, 2rem);
    }
    .nav-btn {
        font-size: 0.92rem;
        padding: 0.5rem 0.35rem;
    }
    .logoheader {
        width: 145px;
        margin-right: 0;
    }
    .hero { padding: 0; }
    .img-hero,
    .hero-img { height: clamp(360px, 70vw, 460px); }
    .hero::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 100%);
    }
    .hero-copy {
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem 1rem 1.4rem 1.35rem;
        max-width: min(1240px, 100%);
    }
    .titul {
        max-width: 8ch;
        font-size: clamp(1.85rem, 5.8vw, 2.9rem);
    }
    .subtitul {
        width: auto;
        max-width: 30ch;
        font-size: clamp(0.95rem, 2.45vw, 1.02rem);
        white-space: normal;
    }
    .disponible {
        padding: 0.85rem 1.15rem;
        font-size: 0.92rem;
    }
    .benefits {
        gap: 0.9rem;
        padding-top: 2rem;
        margin-bottom: 2.25rem;
    }
    .benefits > div {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .enter {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
        margin-bottom: 1rem;
    }
    .text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    .toeic-logo,
    .toefl-logo,
    .tfl-logo {
        width: min(240px, 78vw);
    }
    .containers-text,
    .cnttext,
    .toefl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    .subtitulocontainer,
    .subcontainer,
    h3,
    .context,
    .conteext,
    .skill-tags,
    .details-link {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-shell {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 1.35rem;
        padding-inline: clamp(0.8rem, 2vw, 1.35rem);
    }
    .footer-legal {
        grid-column: auto;
    }
    hr {
        width: 70%;
    }
}

@media (max-width: 560px) {
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: clamp(0.7rem, 3vw, 1.35rem);
    }
    .containers-text,
    .cnttext,
    .toefl-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }
    .footer-legal {
        grid-column: auto;
    }
    .footer-shell {
        width: 100%;
        gap: 1.55rem;
        padding-inline: 1.6rem;
    }
    .footer-brand,
    .footer-contact,
    .footer-location,
    .footer-legal {
        text-align: left;
    }
    .footer-brand img {
        margin-left: 0;
        margin-right: 0;
    }
    .footer-contact a,
    .footer-location p {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100%, 1240px);
    }
    .nav-container {
        gap: 0.7rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }
    .nav-links {
        gap: 0.95rem;
    }
    .nav-btn {
        width: auto;
        justify-content: center;
        padding: 0.45rem 0.2rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .hero-copy {
        gap: 0.75rem;
        padding: 1.1rem 0.95rem 1.25rem;
        max-width: min(320px, 100%);
    }
    .img-hero,
    .hero-img {
        height: 400px;
    }
    .benefits p,
    .skill-tag {
        white-space: normal;
    }
    .cuadrotext,
    .cdrtext {
        border-radius: 10px;
    }
    .subtitulocontainer,
    .subcontainer {
        font-size: 0.9rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    h3 {
        font-size: 1.08rem;
        margin-bottom: 0.65rem;
    }
    .titul {
        max-width: 8ch;
        font-size: clamp(1.45rem, 7vw, 2.1rem);
        line-height: 1.02;
    }
    .subtitul {
        max-width: 22ch;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .context,
    .conteext {
        font-size: 0.92rem;
        min-height: auto;
    }
    .footer-shell {
        grid-template-columns: 1fr;
        width: 90%;
    }
    .footer-legal {
        grid-column: auto;
    }
    hr {
        width: 82%;
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0rem 20px 0;
    margin-bottom: 0.95rem;
}

.toeic-format-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0 20px;
    margin: 0.85rem 0 1rem;
}

.toeic-format-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #c9d7cf;
    border-left: 3px solid #005933;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    color: #17342a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.40rem 0.7rem;
    border-radius: 999px;
    background: #f1f2f4;
    color: #6e7074;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    color: #2f67b2;
    background: transparent;
    border-radius: 999px;
    box-shadow: none;
}

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

.details-link {
    margin-top: auto;
    padding: 0 10px;
    color: #4a76b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.details-link:hover {
    color: #23487f;
}

hr {
    border: none;
    border-top: 2px solid #6e7074;
    margin: 0px auto;
    width: 50%;
}

