 /* =========================================================
   RUTA VIAL
   Landing educativa sobre tránsito y movilidad
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --navy: #071b33;
    --navy-light: #0d2a4d;
    --blue: #0878ff;
    --blue-dark: #0061d5;
    --cyan: #19b6ff;
    --light-blue: #eaf5ff;
    --white: #ffffff;
    --background: #f6f9fc;
    --text: #17283c;
    --muted: #65758a;
    --border: #dfe8f1;

    --radius: 22px;
    --shadow: 0 20px 60px rgba(8, 35, 65, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 82px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(7, 27, 51, 0.07);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(8, 120, 255, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: 18px;
}

.logo-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 31px;
}

.nav a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #42536a;
    transition: 0.25s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: 0.25s;
}

.nav a:hover {
    color: var(--blue);
}

.nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 27px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(5, 22, 43, 0.97) 0%,
            rgba(7, 34, 65, 0.92) 48%,
            rgba(8, 50, 91, 0.78) 100%
        ),
        url("imagenes/carretera.jpg") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(25, 182, 255, 0.13);
    filter: blur(20px);
    right: -180px;
    top: -210px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    right: 8%;
    bottom: -230px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 90px;
    padding: 90px 0;
}

.hero-text {
    max-width: 680px;
}

.hero-tag,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.8px;
}

.hero-tag {
    color: #72cfff;
    margin-bottom: 22px;
}

.hero-tag::before,
.section-tag::before {
    content: "";
    width: 25px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    max-width: 700px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -3px;
    color: white;
}

.hero h1 span {
    display: block;
    color: #57c7ff;
}

.hero-text > p {
    max-width: 610px;
    margin-top: 25px;
    color: #c6d5e5;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), #079cf5);
    box-shadow: 0 10px 30px rgba(8, 120, 255, 0.27);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(8, 120, 255, 0.35);
}

.btn-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}


/* HERO CARD */

.hero-card {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.17);
}

.hero-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35px;
    width: 4px;
    height: 65px;
    background: var(--cyan);
    border-radius: 0 4px 4px 0;
}

.card-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #63cbff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-card h3 {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    line-height: 1.25;
}

.hero-card p {
    margin: 15px 0 22px;
    color: #c9d6e5;
    font-size: 14px;
}

.hero-card a {
    color: #65ceff;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   NOTICE
========================================================= */

.notice {
    background: #eef7ff;
    border-bottom: 1px solid #d9ebfa;
}

.notice-content {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 17px;
}

.notice-icon {
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-family: Georgia, serif;
    font-weight: bold;
}

.notice p {
    color: #4c637b;
    font-size: 13px;
}

.notice strong {
    color: var(--navy);
}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
    padding: 105px 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-header .section-tag {
    margin-bottom: 13px;
}

.section-header h2,
.section-text h2 {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.15;
    letter-spacing: -1.7px;
}

.section-header p {
    max-width: 650px;
    margin: 17px auto 0;
    color: var(--muted);
}


/* =========================================================
   SIMIT
========================================================= */

.simit-section {
    background: white;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.section-text .section-tag {
    margin-bottom: 14px;
}

.section-text > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
}

.info-box {
    margin-top: 30px;
    padding: 22px 24px;
    border-left: 4px solid var(--blue);
    border-radius: 0 14px 14px 0;
    background: #f1f8ff;
}

.info-box strong {
    display: block;
    color: var(--navy);
    margin-bottom: 5px;
}

.info-box p {
    color: #62758a;
    font-size: 13px;
}

.simit-visual {
    position: relative;
    display: grid;
    gap: 15px;
}

.simit-visual::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #e4f4ff;
    right: -70px;
    top: -70px;
    z-index: 0;
}

.visual-card {
    position: relative;
    z-index: 1;
    min-height: 125px;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 35px rgba(8, 35, 65, 0.06);
    transition: 0.25s;
}

.visual-card:hover {
    transform: translateX(8px);
    border-color: #b6dcff;
}

.visual-card span {
    grid-row: 1 / 3;
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--light-blue);
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.visual-card h3 {
    align-self: end;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
}

.visual-card p {
    align-self: start;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   COMPARENDOS
========================================================= */

.comparendos-section {
    background: var(--background);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    position: relative;
    min-height: 280px;
    padding: 30px 26px;
    overflow: hidden;
    border: 1px solid #e2eaf2;
    border-radius: 20px;
    background: white;
    transition: 0.3s;
}

.step-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -50px;
    bottom: -55px;
    border-radius: 50%;
    background: #edf7ff;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.step-card:hover::after {
    transform: scale(1.35);
}

.step-number {
    display: inline-block;
    margin-bottom: 45px;
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.step-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    line-height: 1.3;
}

.step-card p {
    position: relative;
    z-index: 2;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   APRENDIZAJE
========================================================= */

.learn-section {
    background: white;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.learning-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    transition: 0.3s;
}

.learning-card:hover {
    transform: translateY(-6px);
    border-color: #b9ddff;
    box-shadow: var(--shadow);
}

.learning-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e7f4ff, #f4faff);
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.learning-card h3 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
}

.learning-card p {
    min-height: 75px;
    margin: 12px 0 23px;
    color: var(--muted);
    font-size: 13px;
}

.learn-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.learn-btn::after {
    content: " →";
}

.learn-btn:hover {
    color: var(--blue-dark);
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    background: #f5f9fd;
}

.faq-container {
    max-width: 900px;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 15px;
    background: white;
}

.faq-question {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 25px;
    border: 0;
    background: white;
    color: var(--navy);
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.faq-question span {
    color: var(--blue);
    font-size: 23px;
    font-weight: 400;
    transition: 0.25s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 25px 24px;
    color: var(--muted);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    max-height: 220px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}


/* =========================================================
   FINAL
========================================================= */

.final-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(31, 173, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #061a31, #0a3158);
}

.final-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
}

.final-content > span {
    color: #68cfff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.final-content h2 {
    margin: 16px 0;
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.final-content p {
    max-width: 590px;
    margin: 0 auto 28px;
    color: #bed0e1;
}

.btn-light {
    background: white;
    color: var(--navy);
}

.btn-light:hover {
    transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 65px 0 25px;
    background: #041426;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer h3 {
    margin-bottom: 13px;
    font-family: "Manrope", sans-serif;
    font-size: 22px;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 13px;
}

.footer-grid p {
    max-width: 370px;
    color: #8399af;
    font-size: 13px;
}

.footer-grid a {
    display: block;
    width: fit-content;
    margin-top: 9px;
    color: #879cb0;
    font-size: 12px;
    transition: 0.2s;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom p {
    color: #647b91;
    font-size: 10px;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 15, 30, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2;
    width: min(650px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 42px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 30px 90px rgba(0,0,0,.3);
    transform: translateY(25px);
    transition: 0.3s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 17px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef5fb;
    color: var(--navy);
    font-size: 25px;
    cursor: pointer;
}

.modal-content h2 {
    margin: 15px 0;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 30px;
}

#modalBody {
    color: var(--muted);
    font-size: 14px;
}

#modalBody p {
    margin-bottom: 15px;
}

#modalBody strong {
    color: var(--navy);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .nav {
        position: absolute;
        top: 82px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: white;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 13px;
    }

    .nav a::after {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-card {
        max-width: 550px;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .container {
        width: min(100% - 30px, 1160px);
    }

    .header {
        height: 72px;
    }

    .nav {
        top: 72px;
        left: 15px;
        right: 15px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-text small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0 65px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .hero-text > p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-card {
        padding: 28px;
    }

    .notice-content {
        padding: 18px 0;
        align-items: flex-start;
    }

    .section {
        padding: 75px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .steps,
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 240px;
    }

    .step-number {
        margin-bottom: 30px;
    }

    .learning-card p {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .modal-content {
        padding: 35px 25px;
    }
}
/* LOGO RUTA VIAL */

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    display: block;
    width: 205px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 650px) {
    .logo-img {
        width: 175px;
        height: 54px;
    }
}
/* =========================================================
   SEÑALES DE TRÁNSITO
========================================================= */

.signs-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 10%, rgba(8,120,255,.08), transparent 25%),
        #f7fafd;
}

.signs-heading {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
    gap: 70px;
    margin-bottom: 50px;
}

.signs-heading .section-tag {
    margin-bottom: 14px;
}

.signs-heading h2 {
    max-width: 600px;
    font-family: "Manrope", sans-serif;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.1;
    letter-spacing: -1.7px;
}

.signs-heading > p {
    padding-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
}


/* TARJETAS */

.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sign-card {
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 22px;
    background: white;
    transition: .3s ease;
}

.sign-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 22px 55px rgba(7, 32, 61, .11);
}

.sign-visual {
    height: 205px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(7,27,51,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7,27,51,.025) 1px, transparent 1px),
        #edf5fb;
    background-size: 25px 25px;
}

.sign-info {
    padding: 25px;
}

.sign-type {
    display: inline-block;
    margin-bottom: 8px;
    color: #e53935;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.warning-label {
    color: #d88b00;
}

.sign-info h3 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.sign-info p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}
/* =========================================================
   SEÑALES - DISEÑO MEJORADO
========================================================= */
 /* =========================================================
   SEÑAL PARE - CORREGIDA
========================================================= */

.stop-sign {
    position: relative;

    width: 128px;
    height: 128px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ed1c24;

    clip-path: polygon(
        29% 0%,
        71% 0%,
        100% 29%,
        100% 71%,
        71% 100%,
        29% 100%,
        0% 71%,
        0% 29%
    );

    filter: drop-shadow(0 10px 9px rgba(0,0,0,.18));

    transition: transform .3s ease;
}

/* octágono blanco interior */

.stop-sign::before {
    content: "";

    position: absolute;
    inset: 6px;

    background: white;

    clip-path: polygon(
        29% 0%,
        71% 0%,
        100% 29%,
        100% 71%,
        71% 100%,
        29% 100%,
        0% 71%,
        0% 29%
    );
}

/* octágono rojo interior */

.stop-sign::after {
    content: "";

    position: absolute;
    inset: 10px;

    background: #ed1c24;

    clip-path: polygon(
        29% 0%,
        71% 0%,
        100% 29%,
        100% 71%,
        71% 100%,
        29% 100%,
        0% 71%,
        0% 29%
    );
}

.stop-sign span {
    position: relative;
    z-index: 5;

    color: white;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: .5px;
}

/* =========================================================
   CEDA EL PASO
========================================================= */

.yield-sign {
    position: relative;

    width: 145px;
    height: 130px;

    filter:
        drop-shadow(0 10px 8px rgba(0,0,0,.16));
}

/* triángulo rojo */

.yield-sign::before {
    content: "";

    position: absolute;
    left: 50%;
    top: 0;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 72px solid transparent;
    border-right: 72px solid transparent;
    border-top: 125px solid #ed2929;
}

/* interior blanco */

.yield-sign::after {
    content: "";

    position: absolute;
    left: 50%;
    top: 13px;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 57px solid transparent;
    border-right: 57px solid transparent;
    border-top: 99px solid white;
}

.yield-sign div {
    position: absolute;
    z-index: 5;

    top: 35px;
    left: 50%;

    transform: translateX(-50%);

    width: 80px;

    color: #111;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

/* agrega el texto automáticamente */

.yield-sign div::before {
    content: "CEDA";
    display: block;
}

.yield-sign div::after {
    content: "EL PASO";
    display: block;
}


/* =========================================================
   LÍMITE DE VELOCIDAD
========================================================= */

.speed-sign {
    position: relative;

    width: 125px;
    height: 125px;

    display: grid;
    place-items: center;

    border: 12px solid #ef2020;
    border-radius: 50%;

    background: white;

    box-shadow:
        0 9px 18px rgba(0,0,0,.16),
        inset 0 0 0 2px rgba(0,0,0,.05);
}

.speed-sign::before {
    content: "";

    position: absolute;
    inset: -16px;

    border: 2px solid white;
    border-radius: 50%;

    pointer-events: none;
}

.speed-sign span {
    color: #111;

    font-family: Arial, sans-serif;
    font-size: 47px;
    font-weight: 900;
}


/* =========================================================
   CURVA PELIGROSA
========================================================= */
 /* =========================================================
   SEÑAL CURVAS SUCESIVAS
========================================================= */

.warning-sign {
    position: relative;

    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffca18;

    border: 5px solid #151515;
    border-radius: 9px;

    transform: rotate(45deg);

    box-shadow: 0 10px 18px rgba(0,0,0,.16);

    transition: transform .3s ease;
}

/* borde amarillo exterior */

.warning-sign::before {
    content: "";

    position: absolute;
    inset: -10px;

    border: 4px solid #ffca18;
    border-radius: 13px;

    pointer-events: none;
}


/* símbolo interior */

.winding-road {
    position: relative;

    width: 42px;
    height: 67px;

    transform: rotate(-45deg);
}


/* carretera vertical */

.winding-road::before {
    content: "";

    position: absolute;

    left: 17px;
    top: 2px;

    width: 9px;
    height: 63px;

    background: #111;

    border-radius: 8px;

    transform:
        skewX(-10deg);
}


/* primera curva */

.winding-road::after {
    content: "";

    position: absolute;

    left: 7px;
    top: 15px;

    width: 27px;
    height: 22px;

    border: 8px solid #111;

    border-left-color: transparent;
    border-bottom-color: transparent;

    border-radius: 50%;

    transform: rotate(35deg);
}


/* flecha superior */

.road-top {
    position: absolute;

    top: -5px;
    left: 11px;

    width: 0;
    height: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #111;

    transform: rotate(4deg);
}


/* segunda curva */

.road-middle {
    position: absolute;

    left: 7px;
    top: 31px;

    width: 28px;
    height: 22px;

    border: 8px solid #111;

    border-right-color: transparent;
    border-top-color: transparent;

    border-radius: 50%;

    transform: rotate(20deg);
}


/* tramo inferior */

.road-bottom {
    position: absolute;

    left: 17px;
    bottom: 0;

    width: 9px;
    height: 21px;

    background: #111;

    border-radius: 5px;
}

/* =========================================================
   ÁREA DONDE APARECE LA SEÑAL
========================================================= */

.sign-visual {
    position: relative;

    height: 220px;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.95),
            rgba(230,242,252,.75)
        ),
        linear-gradient(
            rgba(7,27,51,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(7,27,51,.025) 1px,
            transparent 1px
        );

    background-size:
        auto,
        25px 25px,
        25px 25px;
}


/* pequeña animación */

.sign-card:hover .stop-sign,
.sign-card:hover .yield-sign,
.sign-card:hover .speed-sign {
    transform: scale(1.06);
}

.stop-sign,
.yield-sign,
.speed-sign {
    transition: transform .3s ease;
}

.sign-card:hover .warning-sign {
    transform: rotate(45deg) scale(1.06);
}
 
/* CONSEJO */

.signs-tip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 25px 28px;
    border-radius: 18px;
    background: var(--navy);
    color: white;
}

.tip-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.signs-tip strong {
    font-size: 14px;
}

.signs-tip p {
    margin-top: 2px;
    color: #9fb2c7;
    font-size: 12px;
}

.signs-tip a {
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #62cbff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s;
}

.signs-tip a:hover {
    background: rgba(255,255,255,.08);
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .signs-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .signs-grid {
        grid-template-columns: 1fr;
    }

    .signs-tip {
        grid-template-columns: auto 1fr;
    }

    .signs-tip a {
        grid-column: 1 / -1;
        text-align: center;
    }
} 
/* CORRECCIÓN ESTABLE DE LAS TARJETAS */

.sign-card {
    overflow: hidden;
}

.sign-visual {
    position: relative;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(rgba(7,27,51,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7,27,51,.025) 1px, transparent 1px),
        #edf5fb;

    background-size: 25px 25px;
}
/* =========================================================
   CRUCE PEATONAL
========================================================= */

.pedestrian-sign {
    position: relative;

    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffca18;

    border: 5px solid #171717;
    border-radius: 9px;

    transform: rotate(45deg);

    box-shadow: 0 10px 20px rgba(0,0,0,.16);

    transition: transform .3s ease;
}

.pedestrian-sign::before {
    content: "";

    position: absolute;
    inset: -10px;

    border: 4px solid #ffca18;
    border-radius: 13px;
}

 /* =========================================================
   PEATÓN CAMINANDO
========================================================= */

.pedestrian-icon {
    position: relative;
    width: 52px;
    height: 70px;
    transform: rotate(-45deg);
}


/* CABEZA */

.person-head {
    position: absolute;
    top: 0;
    left: 25px;

    width: 13px;
    height: 13px;

    background: #111;
    border-radius: 50%;
}


/* CUERPO */

.person-body {
    position: absolute;
    top: 13px;
    left: 24px;

    width: 9px;
    height: 28px;

    background: #111;
    border-radius: 6px;

    transform: rotate(8deg);
    transform-origin: top center;
}


/* BRAZOS */

.person-arm {
    position: absolute;

    width: 27px;
    height: 7px;

    background: #111;
    border-radius: 8px;

    transform-origin: left center;
}

/* brazo hacia adelante */

.arm-right {
    top: 20px;
    left: 28px;

    transform: rotate(32deg);
}

/* brazo hacia atrás */

.arm-left {
    top: 23px;
    left: 26px;

    transform: rotate(145deg);
}


/* PIERNAS */

.person-leg {
    position: absolute;

    width: 31px;
    height: 8px;

    background: #111;
    border-radius: 8px;

    transform-origin: left center;
}

/* pierna hacia adelante */

.leg-right {
    top: 39px;
    left: 27px;

    transform: rotate(58deg);
}

/* pierna hacia atrás */

.leg-left {
    top: 39px;
    left: 27px;

    transform: rotate(122deg);
}
/* HOVER */

.sign-card:hover .pedestrian-sign {
    transform: rotate(45deg) scale(1.06);
}
/* PEATÓN DEFINITIVO */

.pedestrian-svg {
    position: relative;
    z-index: 5;

    width: 55px;
    height: 72px;

    color: #111;

    transform: rotate(-45deg);
}

/* ocultamos las piezas antiguas por si quedó alguna regla */

.pedestrian-icon,
.person-head,
.person-body,
.person-arm,
.person-leg {
    display: none !important;
}
/* =========================================================
   TEST DE CONOCIMIENTO VIAL
========================================================= */

.test-section {
    background: #071b33;
    color: white;
}

.test-header {
    max-width: 680px;
    margin: 0 auto 45px;
    text-align: center;
}

.test-header .section-tag {
    color: #52c5ff;
    margin-bottom: 13px;
}

.test-header h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.test-header p {
    max-width: 580px;
    margin: 15px auto 0;
    color: #9fb2c7;
}

.test-box {
    max-width: 820px;
    margin: auto;
    padding: 38px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;

    background: rgba(255,255,255,.06);
    box-shadow: 0 25px 70px rgba(0,0,0,.18);
}

.test-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #8fa7be;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.test-progress {
    height: 5px;
    margin: 17px 0 35px;

    overflow: hidden;
    border-radius: 10px;

    background: rgba(255,255,255,.1);
}

#progressBar {
    width: 33.33%;
    height: 100%;

    border-radius: inherit;
    background: #19b6ff;

    transition: width .35s ease;
}

.question-number {
    color: #4cc5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

#questionText {
    max-width: 650px;
    margin: 10px 0 25px;

    font-family: "Manrope", sans-serif;
    font-size: 27px;
    line-height: 1.3;
}

.answers {
    display: grid;
    gap: 11px;
}

.answer-option {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px 19px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;

    background: rgba(255,255,255,.045);
    color: #d9e5ef;

    text-align: left;
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    transition: .25s;
}

.answer-option::before {
    content: "";

    flex: 0 0 17px;
    width: 17px;
    height: 17px;

    border: 2px solid #728ba3;
    border-radius: 50%;
}

.answer-option:hover {
    border-color: #31baff;
    background: rgba(25,182,255,.08);
}

.answer-option.selected {
    border-color: #31baff;
    background: rgba(25,182,255,.12);
}

.answer-option.selected::before {
    border: 5px solid #31baff;
    background: white;
}

.answer-option.correct {
    border-color: #42d392;
    background: rgba(66,211,146,.12);
}

.answer-option.wrong {
    border-color: #ff6767;
    background: rgba(255,103,103,.10);
}

.quiz-feedback {
    min-height: 22px;
    margin-top: 18px;

    color: #b7c9d9;
    font-size: 13px;
}

.quiz-next {
    min-height: 48px;
    margin-top: 15px;
    padding: 0 23px;

    border: 0;
    border-radius: 11px;

    background: #0878ff;
    color: white;

    font-weight: 700;
    cursor: pointer;
}

.quiz-next:disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* RESULTADO */

.quiz-result {
    display: none;
    text-align: center;
    padding: 20px 0 5px;
}

.result-label {
    color: #4cc5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.result-score {
    margin: 18px 0 8px;
}

.result-score strong {
    font-family: "Manrope", sans-serif;
    font-size: 65px;
    line-height: 1;
}

.quiz-result h3 {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
}

.quiz-result p {
    max-width: 480px;
    margin: 12px auto 23px;
    color: #9fb2c7;
}

#restartQuiz {
    min-height: 48px;
    padding: 0 23px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;

    background: white;
    color: #071b33;

    font-weight: 700;
    cursor: pointer;
}


/* CELULAR */

@media (max-width: 650px) {

    .test-box {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .test-top {
        flex-direction: column;
        gap: 5px;
    }

    #questionText {
        font-size: 22px;
    }

    .answer-option {
        padding: 15px;
    }

    .quiz-next {
        width: 100%;
    }
}
.footer-politica {
    display: inline-block;
    margin-top: 10px;
    color: inherit;
    text-decoration: underline;
    font-size: 13px;
    transition: opacity .2s ease;
}

.footer-politica:hover {
    opacity: .7;
}