:root {
    --bg: #f5f1ea;
    --panel: #ffffffd9;
    --border: #e8dfd5;

    --text: #2f241d;
    --muted: #776b62;

    --gold: #d89a34;
    --gold-soft: #f2d199;

    --shadow:
        0 10px 30px rgba(63, 40, 24, .06);

    --radius: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left,
            rgba(216, 154, 52, .10),
            transparent 30%),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        sans-serif;

    padding-bottom: 100px;
}

/* ========================= */
/* TOPBAR */
/* ========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    padding: 18px 24px;
}

.topbar-inner {

    max-width: 1400px;
    margin: auto;

    background: rgba(255, 255, 255, .72);

    border: 1px solid rgba(255, 255, 255, .6);

    backdrop-filter: blur(20px);

    border-radius: 24px;

    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    color: var(--text);
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 14px;
}

.brand h1 {
    font-size: .95rem;
    font-weight: 900;
}

.brand span {
    font-size: .78rem;
    color: var(--muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;

    background: #fff;

    cursor: pointer;
}

/* ========================= */
/* PAGE */
/* ========================= */

.page {
    width: min(1400px, 92%);
    margin: auto;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
    margin-top: 16px;
    margin-bottom: 26px;
}

.hero-card {

    display: grid;
    grid-template-columns: 1.3fr .7fr;

    gap: 26px;

    padding: 42px;

    border-radius: 36px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .85),
            rgba(255, 255, 255, .65));

    border: 1px solid rgba(255, 255, 255, .65);

    box-shadow: var(--shadow);

    overflow: hidden;
}

.clean-chip {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #fff;

    border: 1px solid var(--border);

    padding: 10px 14px;

    border-radius: 999px;

    font-size: .84rem;
    font-weight: 700;

    margin-bottom: 26px;
}

.hero-eyebrow {
    color: var(--gold);

    font-size: .82rem;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-weight: 900;

    margin-bottom: 16px;
}

.hero-copy h2 {

    font-size: clamp(3rem, 8vw, 6rem);

    line-height: .92;

    letter-spacing: -0.07em;

    margin-bottom: 22px;

    font-weight: 950;
}

.hero-copy p {

    max-width: 720px;

    line-height: 1.8;

    color: var(--muted);

    font-size: 1.05rem;
}

.hero-actions {

    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.hero-brand-panel {

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .9),
            rgba(255, 255, 255, .65));

    border-radius: 28px;

    border: 1px solid var(--border);

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-stage {
    flex: 1;

    display: grid;
    place-items: center;
}

.logo-stage img {
    width: 220px;
    object-fit: contain;
}

.brand-mini-info {
    text-align: center;
}

.brand-mini-info strong {
    display: block;
    font-size: 2rem;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn,
.btn-primary,
.btn-soft,
.btn-gold {

    border: none;

    border-radius: 18px;

    padding: 14px 18px;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;

    font-weight: 800;

    transition: .25s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-soft:hover,
.btn-gold:hover {
    transform: translateY(-2px);
}

.btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary,
.btn-gold {

    background:
        linear-gradient(135deg,
            var(--gold),
            var(--gold-soft));

    color: #2d210f;
}

.btn-soft {
    background: #fff8eb;
    color: #6b4a14;
}

/* ========================= */
/* QUICK PANEL */
/* ========================= */

.quick-panel {
    margin-bottom: 24px;
}

.quick-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.quick-card {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 20px;

    text-decoration: none;

    color: var(--text);

    box-shadow: var(--shadow);

    transition: .25s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
}

.quick-icon {

    width: 52px;
    height: 52px;

    border-radius: 16px;

    background: #fff6e3;

    display: grid;
    place-items: center;

    color: var(--gold);

    font-size: 1.3rem;

    margin-bottom: 14px;
}

.quick-card strong {
    display: block;
    margin-bottom: 8px;
}

.quick-card small {
    color: var(--muted);
}

/* ========================= */
/* PANELS */
/* ========================= */

.panel {

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 32px;

    padding: 34px;

    margin-bottom: 24px;

    box-shadow: var(--shadow);
}

.section-head {
    margin-bottom: 30px;
}

.section-kicker {

    color: var(--gold);

    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-weight: 900;

    margin-bottom: 12px;
}

.section-head h3 {

    font-size: 2rem;

    margin-bottom: 10px;

    font-weight: 900;
}

.section-head p {
    color: var(--muted);
    line-height: 1.7;
}

/* ========================= */
/* STEPS */
/* ========================= */

.steps {

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 26px;
}

.mini-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 22px;
}

.mini-icon {

    width: 54px;
    height: 54px;

    border-radius: 16px;

    background: #fff5df;

    color: var(--gold);

    display: grid;
    place-items: center;

    font-size: 1.4rem;

    margin-bottom: 18px;
}

.mini-card h4 {
    margin-bottom: 10px;
    font-weight: 900;
}

.mini-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ========================= */
/* FORM */
/* ========================= */

.form-inscripcion {

    margin-top: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 28px;

    padding: 28px;
}

.form-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo-full {
    grid-column: 1/-1;
}

.campo label {
    font-weight: 800;
}

.campo input,
.campo select,
.campo textarea {

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 14px 16px;

    background: #fff;

    outline: none;

    transition: .25s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {

    border-color: var(--gold);

    box-shadow:
        0 0 0 4px rgba(216, 154, 52, .14);
}

.campo small {
    color: var(--muted);
}

.radio-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.radio-grid label {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 14px;

    cursor: pointer;

    font-weight: 700;
}

.form-actions {
    margin-top: 24px;
}

.btn-submit {

    border: none;

    border-radius: 18px;

    padding: 15px 22px;

    background:
        linear-gradient(135deg,
            var(--gold),
            var(--gold-soft));

    font-weight: 900;

    cursor: pointer;
}

.mensaje-form {
    margin-top: 16px;
    font-weight: 800;
}

/* ========================= */
/* DOWNLOADS */
/* ========================= */

.doc-layout {

    display: grid;
    grid-template-columns: 1.2fr .8fr;

    gap: 18px;
}

.doc-stack,
.downloads {

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.download-item {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.download-left {

    display: flex;
    align-items: flex-start;

    gap: 14px;
}

.download-left i {

    width: 42px;
    height: 42px;

    border-radius: 14px;

    background: #fff5df;

    display: grid;
    place-items: center;

    color: var(--gold);
}

.download-left strong {
    display: block;
    margin-bottom: 4px;
}

.download-left small {
    color: var(--muted);
}

.alert-card {

    background: #fff8ea;

    border: 1px solid #f0d6a4;

    border-radius: 24px;

    padding: 22px;

    margin-bottom: 16px;
}

.alert-card h4 {
    margin-bottom: 10px;
}

/* ========================= */
/* TIMELINE */
/* ========================= */

.timeline {

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.time-item {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 18px;

    display: grid;
    grid-template-columns: 90px 1fr auto;

    gap: 18px;

    align-items: center;
}

.time-date {

    width: 70px;
    height: 70px;

    border-radius: 18px;

    background: #fff5df;

    display: grid;
    place-items: center;

    font-weight: 900;

    color: #7d520d;
}

.badge {

    padding: 8px 12px;

    border-radius: 999px;

    font-size: .76rem;

    font-weight: 800;
}

.badge-ok {
    background: #e8f7ee;
    color: #20814f;
}

.badge-next {
    background: #fff4d9;
    color: #a56a00;
}

.badge-info {
    background: #e7f1ff;
    color: #2765b4;
}

.badge-muted {
    background: #f2f2f2;
    color: #666;
}

/* ========================= */
/* PROJECTS */
/* ========================= */

.project-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.project-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 22px;
}

.project-top {

    display: flex;
    justify-content: space-between;

    margin-bottom: 20px;
}

.project-icon {

    width: 52px;
    height: 52px;

    border-radius: 16px;

    background: #fff5df;

    color: var(--gold);

    display: grid;
    place-items: center;
}

.project-card h4 {
    margin-bottom: 10px;
}

.project-card p {

    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 18px;
}

/* ========================= */
/* FAQ */
/* ========================= */

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;
}

.faq-q {

    width: 100%;

    border: none;

    background: none;

    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-weight: 800;

    cursor: pointer;
}

.faq-a {

    display: none;

    padding: 0 18px 18px;
}

.faq-item.open .faq-a {
    display: block;
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.contact-item {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 18px;

    display: flex;
    gap: 14px;
}

.contact-item i {

    width: 46px;
    height: 46px;

    border-radius: 14px;

    background: #fff5df;

    color: var(--gold);

    display: grid;
    place-items: center;
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {

    text-align: center;

    color: var(--muted);

    padding: 34px 0 120px;
}

/* ========================= */
/* BOTTOM NAV */
/* ========================= */

.bottom-nav {

    position: fixed;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(255, 255, 255, .85);

    border: 1px solid rgba(255, 255, 255, .6);

    backdrop-filter: blur(20px);

    border-radius: 22px;

    padding: 12px;

    display: flex;
    gap: 8px;

    z-index: 999;
}

.bottom-nav a {

    color: var(--muted);

    text-decoration: none;

    padding: 10px 14px;

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    font-size: .75rem;

    font-weight: 700;
}

.bottom-nav a.active {
    background: #fff5df;
    color: #7d520d;
}

/* ========================= */
/* TOAST */
/* ========================= */

.toast {

    position: fixed;

    right: 24px;
    bottom: 110px;

    width: 320px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 18px;

    box-shadow: var(--shadow);

    display: none;

    z-index: 2000;
}

.toast.show {
    display: block;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1100px) {

    .hero-card,
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .project-grid,
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:860px) {

    .steps,
    .project-grid,
    .quick-grid,
    .contact-grid,
    .form-grid,
    .radio-grid {
        grid-template-columns: 1fr;
    }

    .download-item,
    .time-item {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 3.2rem;
    }

    .topbar {
        padding: 14px;
    }

    .topbar-inner {
        padding: 14px;
    }

    .nav-links {
        display: none;
    }

}

@media(max-width:640px) {

    .hero-card,
    .panel {
        padding: 22px;
    }

    .bottom-nav {
        width: 95%;
        justify-content: space-between;
    }

}


.form-oculto {
    display: none;
}

.form-visible {
    display: block;
    animation: aparecerFormulario .25s ease;
}

@keyframes aparecerFormulario {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comprobante-oculto {
    display: none;
}

.comprobante-visible {
    display: block;
    margin-top: 28px;
    animation: aparecerFormulario .25s ease;
}

.comprobante-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.comprobante-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.comprobante-header span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 900;
}

.comprobante-header h3 {
    font-size: 2rem;
    margin-top: 8px;
}

.comprobante-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #e8f7ee;
    color: #20814f;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}

.comprobante-body p {
    color: var(--muted);
    margin-bottom: 22px;
}

.comprobante-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.comprobante-grid div {
    background: #fffaf1;
    border: 1px solid #f1dcc0;
    border-radius: 18px;
    padding: 16px;
}

.comprobante-grid small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.comprobante-grid strong {
    color: var(--text);
    word-break: break-word;
}

.comprobante-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.comprobante-footer p {
    color: var(--muted);
}

@media(max-width: 760px) {
    .comprobante-grid {
        grid-template-columns: 1fr;
    }

    .comprobante-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #comprobanteParaImprimir,
    #comprobanteParaImprimir * {
        visibility: visible;
    }

    #comprobanteParaImprimir {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    .comprobante-footer button {
        display: none;
    }
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.doc-item {
    display: grid;
    grid-template-columns: auto 42px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #eadfD4;
    border-radius: 22px;
    background: #fff;
    transition: .25s ease;
}

.doc-item:hover {
    transform: translateY(-3px);
    border-color: #d39a45;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
}

.doc-number {
    font-size: .75rem;
    font-weight: 800;
    color: #d2aa72;
    letter-spacing: 1px;
}

.doc-item i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fbf1df;
    color: #d08b2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.doc-item h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2b211b;
}

.doc-item p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.45;
    color: #756b63;
}

.doc-item strong {
    font-size: .85rem;
    color: #9b6a30;
    background: #fbf1df;
    padding: 6px 10px;
    border-radius: 999px;
}

/* Móviles */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-item {
        grid-template-columns: 42px 1fr auto;
        padding: 18px;
    }

    .doc-number {
        display: none;
    }

    .doc-item h4 {
        font-size: 1rem;
    }

    .doc-item p {
        font-size: .88rem;
    }
}

/* DOCUMENTACIÓN OBLIGATORIA - ARTÍCULO */
.documento-destacado {
    align-items: flex-start;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.documento-destacado .download-left {
    width: 100%;
}

.documento-destacado .download-left i {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.documento-destacado strong {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.documento-destacado small {
    display: block;
    line-height: 1.6;
    margin-bottom: 14px;
}

.lista-documentacion {
    list-style: none;
    margin-top: 14px;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.lista-documentacion li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 800;
}

.lista-documentacion li span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff5df;
    color: #7d520d;
    display: grid;
    place-items: center;
    font-weight: 900;
}

/* Corrige tarjetas de descarga en mobile */
@media(max-width:860px) {
    .download-item {
        flex-direction: column;
        align-items: stretch;
    }

    .download-item .btn {
        width: 100%;
    }

    .documento-destacado {
        flex-direction: row;
    }
}

.btn-upload {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.form-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 9999;
    padding: 1rem;
}

.form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-modal-content {
    width: min(950px, 100%);
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
}

.form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.3rem;
    background: #143d2a;
    color: white;
}

.form-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.close-modal {
    border: none;
    background: rgba(255, 255, 255, .15);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.form-modal-body {
    background: #f5f5f5;
}

.form-modal-body iframe {
    display: block;
    border: none;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open main,
body.modal-open header,
body.modal-open nav,
body.modal-open footer {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.form-modal {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.doc-panel {
    background: #fffdf8;
}

.doc-simple-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.doc-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-guide {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(173, 126, 38, .22);
    border-radius: 22px;
    background: #fffaf0;
}

.doc-guide-icon,
.doc-row-icon,
.upload-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff1cf;
    color: #b7791f;
    font-size: 1.25rem;
}

.doc-guide h4,
.upload-card-clean h4 {
    margin: 0 0 .7rem;
    color: #2b2118;
}

.doc-steps-simple {
    display: grid;
    gap: .55rem;
}

.doc-step-simple {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.doc-step-simple span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d99a2b;
    color: white;
    font-weight: 800;
}

.doc-step-simple p {
    margin: 0;
    color: #514235;
    line-height: 1.35;
}

.doc-list-clean {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(45, 34, 24, .12);
    border-radius: 18px;
    background: #ffffff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.doc-row:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 154, 43, .45);
    box-shadow: 0 12px 28px rgba(45, 34, 24, .08);
}

.doc-row-info {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.doc-row h4 {
    margin: 0 0 .2rem;
    font-size: .98rem;
    color: #2b2118;
}

.doc-row p {
    margin: 0;
    font-size: .85rem;
    color: #6b5c4d;
}

.btn-doc-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 128px;
    padding: .7rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(45, 34, 24, .15);
    background: #fff;
    color: #2b2118;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.btn-doc-download:hover {
    background: #2f5d44;
    color: white;
    border-color: #2f5d44;
}

.doc-side-clean {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-card-clean,
.teacher-tip-clean {
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(173, 126, 38, .22);
    background: #ffffff;
}

.upload-card-clean {
    position: sticky;
    top: 1rem;
}

.upload-card-clean p,
.teacher-tip-clean p {
    color: #5c4d40;
    line-height: 1.45;
}

.btn-upload-clean {
    width: 100%;
    margin-top: .8rem;
    border: none;
    border-radius: 16px;
    padding: .9rem 1rem;
    background: #d99a2b;
    color: #1f170e;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    transition: .2s ease;
}

.btn-upload-clean:hover {
    background: #c8851f;
    transform: translateY(-1px);
}

.teacher-tip-clean strong {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #2b2118;
}

@media (max-width: 900px) {
    .doc-simple-layout {
        grid-template-columns: 1fr;
    }

    .upload-card-clean {
        position: static;
    }
}

@media (max-width: 600px) {
    .doc-guide {
        flex-direction: column;
    }

    .doc-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn-doc-download {
        width: 100%;
    }
}

.portal-logo {
    width: 100%;
    max-width: 250px;
    padding: 1rem;
    border-radius: 24px;
    background: #fff8ea;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem;
}

/* =========================================================
   AJUSTE FINAL UX/UI - HERO + LOGO FERIA
   Este bloque pisa reglas anteriores duplicadas del hero.
   ========================================================= */

.hero {
    padding-top: 2rem;
}

.hero-card.hero-clean {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
    gap: 2rem;
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 34px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h2 {
    max-width: 720px;
    line-height: .92;
}

.hero-brand-panel {
    width: 100%;
    min-height: unset;
    align-self: center;
    justify-self: end;
    padding: 1.1rem;
    border-radius: 28px;
    border: 1px solid rgba(128, 89, 35, .18);
    background:
        radial-gradient(circle at 50% 18%, rgba(216, 154, 52, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 250, 241, .88));
    box-shadow:
        0 18px 45px rgba(66, 45, 23, .08),
        inset 0 1px 0 rgba(255, 255, 255, .95);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .85rem;
}

.logo-stage {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    display: grid;
    place-items: center;
    padding: .55rem;
    background: #fff7e8;
    border: 1px solid rgba(216, 154, 52, .18);
    overflow: hidden;
}

.logo-stage .portal-logo,
.portal-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    background: transparent;
}

.brand-mini-info {
    width: 100%;
    padding: .8rem .5rem .55rem;
    text-align: center;
    border-top: 1px solid rgba(128, 89, 35, .12);
    line-height: 1.1;
}

.brand-mini-info span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
}

.brand-mini-info strong {
    display: block;
    margin: .12rem 0;
    color: var(--text);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    line-height: .95;
    letter-spacing: -.04em;
}

/* Modal más cómodo: bloquea scroll visual y centra el formulario */
body.modal-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Desenfoca solo el fondo, NO el modal */
body.modal-open .topbar,
body.modal-open .bottom-nav,
body.modal-open main>*:not(.comprobante-modal) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* El modal nunca debe quedar borroso */
.comprobante-modal,
.comprobante-modal * {
    filter: none !important;
}

.form-modal {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-modal-content {
    width: min(900px, calc(100vw - 2rem));
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
}

.form-modal-body {
    flex: 1;
    overflow: hidden;
}

.google-form-frame,
.form-modal-body iframe {
    width: 100%;
    height: min(72vh, 650px);
    display: block;
    border: 0;
}

/* Responsive del hero */
@media (max-width: 980px) {
    .hero-card.hero-clean {
        grid-template-columns: 1fr;
    }

    .hero-brand-panel {
        max-width: 360px;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .hero-card.hero-clean {
        padding: 1.25rem;
        border-radius: 26px;
        gap: 1.25rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-brand-panel {
        max-width: 100%;
        padding: .85rem;
        border-radius: 22px;
    }

    .logo-stage {
        border-radius: 18px;
    }

    .logo-stage .portal-logo,
    .portal-logo {
        border-radius: 14px;
    }
}


/* ================================
   AJUSTES UX/UI FINALES
   Modal + nav superior + bottom nav
================================ */

/* NAV SUPERIOR FIJO Y LIMPIO */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 251, 244, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(78, 52, 32, .14);
    box-shadow: 0 8px 24px rgba(58, 39, 24, .08);
}

/* MODAL CON COLORES A TONO */
.form-modal {
    background: rgba(43, 30, 20, .62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-modal-content {
    border-radius: 24px;
    overflow: hidden;
    background: #fffaf2;
    border: 1px solid rgba(91, 62, 38, .18);
    box-shadow: 0 28px 80px rgba(35, 23, 14, .38);
}

.form-modal-header {
    background: linear-gradient(135deg, #3a2618, #5a3921);
    color: #fff8ec;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.form-modal-header h4 {
    font-weight: 800;
    letter-spacing: -.02em;
}

/* BOTÓN CERRAR MÁS VISIBLE */
.close-modal {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 248, 236, .55);
    background: #d99a2b;
    color: #2b1e14;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: .2s ease;
}

.close-modal:hover {
    background: #fff3d8;
    color: #3a2618;
    transform: rotate(90deg) scale(1.05);
}

/* CUERPO DEL MODAL */
.form-modal-body {
    background: #f7efe3;
    padding: .8rem;
}

.google-form-frame,
.form-modal-body iframe {
    border-radius: 16px;
    background: white;
}

/* BLOQUEAR Y DESENFOCAR FONDO */
body.modal-open {
    overflow: hidden;
}



/* MENÚ INFERIOR MÁS DISTINGUIBLE */
.bottom-nav {
    background: #3a2618;
    border: 1px solid rgba(255, 238, 210, .14);
    box-shadow: 0 -10px 35px rgba(43, 30, 20, .28);
}

.bottom-nav a {
    color: #f3dfc4;
}

.bottom-nav a i {
    color: #f3dfc4;
}

.bottom-nav a.active {
    background: #f2c46d;
    color: #2b1e14;
}

.bottom-nav a.active i {
    color: #2b1e14;
}

.bottom-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}


/* MENÚ INFERIOR MÁS SUAVE */
.bottom-nav {
    background: #5a3b25;
    border: 1px solid rgba(255, 238, 210, .22);
    box-shadow: 0 -10px 30px rgba(90, 59, 37, .22);
}

.bottom-nav a {
    color: #f8ead4;
}

.bottom-nav a i {
    color: #f8ead4;
}

/* ACCESO ACTIVO / DONDE ESTÁ PARADO */
.bottom-nav a.active {
    background: #f3d9aa;
    color: #3b2819;
    border-radius: 16px;
}

.bottom-nav a.active i {
    color: #3b2819;
}

/* HOVER MÁS SUAVE */
.bottom-nav a:hover {
    background: rgba(243, 217, 170, .18);
    color: #fff8ec;
    border-radius: 16px;
}



/* =========================================================
   DEFINITIVE OVERRIDES - UX/UI CLEANUP
========================================================= */

/* ---------- TOPBAR ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 243, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(93, 64, 38, .10);
    box-shadow: 0 8px 24px rgba(54, 36, 22, .06);
}

/* ---------- HERO ---------- */

.hero-card.hero-clean {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: center;
}

.hero-brand-panel {
    width: 100%;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid rgba(133, 94, 66, .16);
    background: linear-gradient(180deg, #fffdf8, #fff7ec);
    box-shadow: 0 16px 40px rgba(60, 39, 20, .06);
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.logo-stage {
    width: 100%;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    background: #fff1d8;
    border-radius: 22px;
    overflow: hidden;
    padding: .4rem;
}

.portal-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.brand-mini-info {
    text-align: center;
    border-top: 1px solid rgba(93, 64, 38, .10);
    padding-top: .8rem;
}

.brand-mini-info span {
    display: block;
    color: #6c5a4c;
    font-size: .88rem;
}

.brand-mini-info strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin: .15rem 0;
    color: #2f2118;
}

/* ---------- MODAL ---------- */

.form-modal {
    background: rgba(41, 28, 18, .58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-modal-content {
    width: min(920px, calc(100vw - 2rem));
    max-height: 88vh;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(98, 70, 46, .16);
    background: #fffaf2;
    box-shadow: 0 30px 90px rgba(29, 19, 12, .36);
}

.form-modal-header {
    background: linear-gradient(135deg, #4f3422, #6b4a32);
    color: #fff8ee;
    padding: 1rem 1.2rem;
}

.close-modal {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f0c979;
    color: #3a2618;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
    background: #ffe7b8;
}

.form-modal-body {
    padding: .8rem;
    background: #f8f0e3;
}

.google-form-frame,
.form-modal-body iframe {
    width: 100%;
    height: min(72vh, 650px);
    border: none;
    border-radius: 16px;
    background: white;
    display: block;
}

/* ---------- BODY LOCK ---------- */

body.modal-open {
    overflow: hidden;
}

body.modal-open .page,
body.modal-open .topbar,
body.modal-open .bottom-nav {
    filter: blur(4px);
    pointer-events: none;
}

/* ---------- BOTTOM NAV ---------- */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: auto;
    max-width: calc(100% - 26px);

    padding: 10px;

    background: #6b4a32;
    border: 1px solid rgba(255, 238, 210, .16);
    border-radius: 22px;

    box-shadow: 0 12px 35px rgba(54, 36, 22, .22);

    overflow-x: auto;
    scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

.bottom-nav a {
    min-width: 68px;
    height: 56px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    padding: 8px 10px;

    border-radius: 16px;

    color: #f7e8cf;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;

    transition: background-color .2s ease, color .2s ease;
}

.bottom-nav a i {
    font-size: 1rem;
    color: inherit;
}

.bottom-nav a:hover {
    background: rgba(255, 255, 255, .08);
}

.bottom-nav a {
    position: relative;
    z-index: 1;
}

.bottom-nav a.active {
    background: #f4d9aa !important;
    color: #3b2819 !important;
}

.bottom-nav a.active i {
    color: #3b2819 !important;
}

/* evita que otro link conserve estilos */
.bottom-nav a:not(.active) {
    background: transparent !important;
    color: #f7e8cf;
}

.bottom-nav a:not(.active) i {
    color: #f7e8cf;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:980px) {

    .hero-card.hero-clean {
        grid-template-columns: 1fr;
    }

    .hero-brand-panel {
        max-width: 360px;
        margin-inline: auto;
    }
}

@media (max-width:560px) {

    .hero-card.hero-clean {
        gap: 1.25rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        width: calc(100% - 18px);
        justify-content: space-between;
        padding: 8px;
        gap: 4px;
        bottom: 8px;
    }

    .bottom-nav a {
        min-width: 58px;
        height: 52px;
        font-size: .66rem;
    }
}

/* responsive men*/
/* FIX BOTÓN COMPLETAR INSCRIPCIÓN EN MOBILE */

.featured-panel .section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
}

.featured-panel .section-head>div {
    flex: 1;
    min-width: 0;
}

#btnAbrirFormulario {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

/* Mobile */
@media (max-width: 700px) {
    .featured-panel .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    #btnAbrirFormulario {
        width: 100%;
        justify-content: center;
        padding: .95rem 1rem;
        font-size: .95rem;
        border-radius: 18px;
    }
}

/* FIX: que el menú inferior no tape las secciones */

html {
    scroll-padding-top: 95px;
    scroll-padding-bottom: 120px;
}

section[id] {
    scroll-margin-top: 105px;
    scroll-margin-bottom: 130px;
}

.page {
    padding-bottom: 140px;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 92px;
        scroll-padding-bottom: 135px;
    }

    section[id] {
        scroll-margin-top: 105px;
        scroll-margin-bottom: 145px;
    }

    .page {
        padding-bottom: 155px;
    }
}


/* =========================================================
   FIX DEFINITIVO DEL MENÚ INFERIOR
   Elimina el bug visual de Inicio/Docs activo al mismo tiempo.
========================================================= */

.bottom-nav {
    position: fixed !important;
    left: 50% !important;
    bottom: 8px !important;
    transform: translateX(-50%) !important;
    z-index: 999 !important;

    width: calc(100% - 18px) !important;
    max-width: 430px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;

    padding: 8px !important;
    border-radius: 22px !important;

    background: #6b4a32 !important;
    border: 1px solid rgba(255, 238, 210, .18) !important;
    box-shadow: 0 12px 32px rgba(54, 36, 22, .22) !important;

    overflow: hidden !important;
}

.bottom-nav a,
.bottom-nav a:visited,
.bottom-nav a:focus,
.bottom-nav a:active {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    height: 52px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    padding: 7px 6px !important;
    border-radius: 16px !important;

    background: transparent !important;
    color: #f7e8cf !important;
    text-decoration: none !important;

    font-size: .66rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;

    transition: background-color .18s ease, color .18s ease, transform .18s ease !important;
}

.bottom-nav a i,
.bottom-nav a:visited i,
.bottom-nav a:focus i,
.bottom-nav a:active i {
    color: inherit !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.bottom-nav a.active,
.bottom-nav a.active:visited,
.bottom-nav a.active:focus,
.bottom-nav a.active:active {
    background: #f4d9aa !important;
    color: #3b2819 !important;
}

.bottom-nav a.active i {
    color: #3b2819 !important;
}

/* Evita el hover pegado en celulares */
@media (hover: hover) {
    .bottom-nav a:not(.active):hover {
        background: rgba(255, 255, 255, .08) !important;
        color: #fff8ee !important;
    }
}

/* Espacio para que el menú no tape contenido */
html {
    scroll-padding-top: 105px !important;
    scroll-padding-bottom: 145px !important;
}

section[id] {
    scroll-margin-top: 105px !important;
    scroll-margin-bottom: 145px !important;
}

.page {
    padding-bottom: 160px !important;
}

/* =========================
   CONTACTO
========================= */

.contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.contact-info-box,
.contact-map-box {
    background: #fffdf8;
    border: 1px solid rgba(120, 82, 48, .12);
    border-radius: 28px;
    padding: 1.2rem;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.contact-item i {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: #fff1d8;
    color: #8b5b2c;

    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: .2rem;
    color: #2f2118;
}

.contact-item p {
    margin: 0;
    color: #6d5b4b;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    margin-top: .35rem;

    color: #8b5b2c;
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.copy-mail-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .45rem;
}

.copy-mail-box input {
    flex: 1;

    padding: .8rem .9rem;

    border-radius: 14px;
    border: 1px solid rgba(120, 82, 48, .18);

    background: #fff;
    color: #2f2118;

    font-size: .92rem;
}

.btn-copy-mail {
    width: 46px;
    height: 46px;

    border: none;
    border-radius: 14px;

    background: #8b5b2c;
    color: white;

    cursor: pointer;

    transition: .2s ease;
}

.btn-copy-mail:hover {
    background: #6f4722;
}

.contact-map-box {
    overflow: hidden;
    padding: 0;
}

.contact-map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map-box iframe {
        min-height: 320px;
    }
}

/*form2.0*/
.form-block-title {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 1.3rem 0 1rem;
}

.form-block-title span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #d99a2b;
    color: #2b1e14;
    font-weight: 900;
}

.form-block-title h4 {
    margin: 0;
    color: #2f2118;
}

.form-block-title p {
    margin: .15rem 0 0;
    color: #6d5b4b;
}

.campo label {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    align-items: center;
}

.campo input,
.campo select,
.campo textarea {
    font-size: .96rem;
}

.field-help {
    display: block;
    margin-top: .45rem;
    color: #756252;
    line-height: 1.35;
}

.link-ayuda-form {
    color: #1d62d1;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.link-ayuda-form:hover {
    text-decoration: underline;
}

.steam-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .7rem;
}

.steam-options label {
    cursor: pointer;
}

.steam-options input {
    display: none;
}

.steam-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 54px;
    border: 1px solid rgba(120, 82, 48, .18);
    border-radius: 16px;
    background: #fffdf8;
    color: #3b2819;
    font-weight: 800;
    transition: .2s ease;
}

.steam-options input:checked+span {
    background: #f3d9aa;
    border-color: #d99a2b;
    box-shadow: 0 0 0 4px rgba(217, 154, 43, .16);
}

.steam-options span:hover {
    border-color: #d99a2b;
}

/* MODAL COMPROBANTE */

.comprobante-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(43, 30, 20, .62);
    overflow-y: auto;
}

.comprobante-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.comprobante-modal-card {
    width: min(920px, 100%);
    margin: 24px auto;
    background: #fffaf2;
    border-radius: 28px;
    padding: 1rem;
}
.close-comprobante {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f0c979;
    color: #3a2618;
    cursor: pointer;
}

.comprobante-actions {
    display: flex;
    justify-content: flex-end;
    gap: .8rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .steam-options {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .comprobante-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .steam-options {
        grid-template-columns: 1fr;
    }

    .campo label {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* SELECTS MÁS LIMPIOS */
.campo select {
    min-height: 52px;
    cursor: pointer;
    background-color: #fffdf8;
}

/* CHIPS STEAM COMPACTOS */
.steam-compact {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.steam-compact label {
    cursor: pointer;
}

.steam-compact input {
    display: none;
}

.steam-compact span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;

    min-height: 46px;
    padding: .75rem 1rem;

    border-radius: 999px;
    border: 1px solid rgba(120, 82, 48, .18);

    background: #fffdf8;
    color: #3b2819;

    font-weight: 800;
    white-space: nowrap;

    transition: .2s ease;
}

.steam-compact span:hover {
    border-color: #d99a2b;
    background: #fff7ea;
}

.steam-compact input:checked+span {
    background: #f3d9aa;
    color: #3b2819;
    border-color: #d99a2b;
    box-shadow: 0 0 0 4px rgba(217, 154, 43, .16);
}

/* DOCENTES MÁS CLARO */
.docentes-title {
    margin-top: 1.4rem;
}

.docente-help-card {
    display: flex;
    align-items: center;
    gap: .8rem;

    margin: .55rem 0 .75rem;
    padding: .9rem 1rem;

    border-radius: 18px;
    background: #fff7ea;
    border: 1px solid rgba(217, 154, 43, .22);
}

.docente-help-card i {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    background: #f3d9aa;
    color: #6b4a32;
}

.docente-help-card strong {
    display: block;
    color: #2f2118;
}

.docente-help-card p {
    margin: .1rem 0 0;
    color: #6d5b4b;
    font-weight: 700;
}

.campo textarea[name="docentes_orientadores"] {
    min-height: 130px;
    line-height: 1.45;
    font-family: inherit;
}

@media (max-width: 600px) {
    .steam-compact {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .steam-compact span {
        width: 100%;
        border-radius: 16px;
    }
}

.select-clean {
    height: 52px;
    padding: 0 1rem;
    border-radius: 16px;
    border: 1px solid rgba(120, 82, 48, .18);
    background: #fffdf8;
    color: #2f2118;
    font-weight: 700;
    cursor: pointer;
}

.select-clean:focus {
    outline: none;
    border-color: #d99a2b;
    box-shadow: 0 0 0 4px rgba(217, 154, 43, .14);
}

.label-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .6rem !important;
    flex-wrap: wrap;
}

/* FIX  RESPONSIVE FORMULARIO :)  */

.form-inscripcion {
    overflow: hidden;
}

.form-grid {
    width: 100%;
}

.campo,
.campo-full {
    min-width: 0;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .form-inscripcion {
        padding: 1rem !important;
        border-radius: 24px;
    }

    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .campo-full {
        grid-column: auto !important;
    }

    .form-block-title {
        display: flex;
        align-items: flex-start;
        gap: .7rem;
    }

    .form-block-title div {
        min-width: 0;
    }

    .steam-compact {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .65rem;
    }

    .steam-compact span {
        width: 100%;
        justify-content: flex-start;
        padding-inline: 1rem;
    }

    .docente-help-card {
        align-items: flex-start;
    }

    .docente-help-card p {
        word-break: break-word;
    }

    .campo textarea[name="docentes_orientadores"] {
        min-height: 170px;
    }

    .label-inline {
        flex-direction: column;
        align-items: flex-start !important;
        gap: .25rem !important;
    }

    .link-ayuda-form {
        margin-left: 0;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

.docente-example {
    margin: .6rem 0 .75rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: #fffdf8;
    border: 1px dashed rgba(120, 82, 48, .28);
    color: #6d5b4b;
}

.docente-example strong,
.docente-example span {
    display: block;
}

/* =========================================================
   FIX RESPONSIVE FINAL - SELECTS + FORMULARIO MOBILE
   Pegado al final para pisar estilos anteriores
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    padding-bottom: 112px;
}

.form-inscripcion,
.form-grid,
.campo,
.campo-full {
    min-width: 0 !important;
    max-width: 100% !important;
}

.campo input,
.campo textarea,
.campo select,
.select-clean {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

.campo select,
.select-clean {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 46px 0 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(120, 82, 48, .20) !important;
    background-color: #fffdf8 !important;
    color: #2f2118 !important;
    font-weight: 700 !important;
    line-height: 54px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #6f4a2d 50%),
        linear-gradient(135deg, #6f4a2d 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 18px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.campo select option,
.select-clean option {
    background: #fffdf8 !important;
    color: #2f2118 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px !important;
}

.campo select:focus,
.select-clean:focus {
    position: relative !important;
    z-index: 20 !important;
    outline: none !important;
    border-color: #d89a34 !important;
    box-shadow: 0 0 0 4px rgba(216, 154, 52, .18) !important;
}

@media (max-width: 900px) {

    .page,
    .container,
    main,
    section,
    .panel,
    .hero-card,
    .form-inscripcion {
        max-width: 100% !important;
    }

    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .campo-full {
        grid-column: auto !important;
    }
}

@media (max-width: 600px) {
    body {
        padding-bottom: 122px !important;
    }

    .page,
    main,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .panel,
    .hero-card,
    .form-inscripcion,
    .comprobante-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 22px !important;
        overflow: visible !important;
    }

    .campo {
        width: 100% !important;
        gap: 7px !important;
    }

    .campo label,
    .label-inline {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 6px !important;
        line-height: 1.25 !important;
    }

    .campo input,
    .campo textarea,
    .campo select,
    .select-clean {
        border-radius: 17px !important;
    }

    .bottom-nav {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 6px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        z-index: 1000 !important;
    }

    .bottom-nav a {
        min-width: 0 !important;
        width: 100% !important;
        height: 48px !important;
        padding: 5px 2px !important;
        font-size: .55rem !important;
        line-height: 1.05 !important;
        border-radius: 13px !important;
        gap: 3px !important;
        text-align: center !important;
    }

    .bottom-nav a i {
        font-size: .95rem !important;
    }
}

@media (max-width: 390px) {

    .page,
    main,
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .panel,
    .hero-card,
    .form-inscripcion {
        padding: 14px !important;
    }

    .bottom-nav a {
        font-size: .50rem !important;
    }
}
/* =========================================================
   FIX URGENTE - SELECTS RESPONSIVE (NO SE DESBORDAN)
   ========================================================= */

/* Fuerza que todos los contenedores respeten el ancho */
.page,
.panel,
.form-inscripcion,
.form-grid,
.campo,
.campo-full,
.form-block-title div {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Fix definitivo para todos los selects */
.campo select,
select.select-clean,
.form-inscripcion select,
.form-grid select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    /* Esto evita que el texto se desborde */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;

    /* Espacio para la flecha */
    padding: 12px 36px 12px 14px !important;

    /* Tamaño legible en móvil */
    font-size: 14px !important;

    /* Mantiene la altura consistente */
    height: auto !important;
    min-height: 52px !important;

    /* Asegura que respete el borde redondeado */
    border-radius: 16px !important;
}

/* Para móviles muy pequeños, reduce padding */
@media (max-width: 560px) {

    .campo select,
    select.select-clean,
    .form-inscripcion select,
    .form-grid select {
        padding: 10px 32px 10px 12px !important;
        font-size: 13px !important;
        min-height: 48px !important;
    }
}

/* Las opciones internas también deben ser legibles */
.campo select option,
select.select-clean option {
    font-size: 13px !important;
    padding: 10px !important;
    white-space: normal !important;
    word-break: break-word !important;

    /* Límite de ancho para opciones largas */
    max-width: 90vw !important;
}

/* Para iOS, asegura que el select no haga zoom */
@media (max-width: 768px) {

    .campo select,
    select.select-clean,
    .form-inscripcion select,
    .form-grid select {
        font-size: 16px !important;
        /* Evita zoom en iOS */
    }
}

/* Fix adicional para el grid del formulario en móvil */
@media (max-width: 860px) {
    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .campo-full {
        grid-column: auto !important;
    }

    /* Cada campo ocupa todo el ancho */
    .campo {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Labels en columna en móvil */
    .campo label,
    .label-inline {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
}

/* Fix para el contenedor principal en móvil */
@media (max-width: 640px) {
    .page {
        width: 94% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .panel {
        padding: 18px !important;
        border-radius: 24px !important;
    }

    .form-inscripcion {
        padding: 16px !important;
        border-radius: 20px !important;
    }
}

/* Previene scroll horizontal en todo el body */
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Cualquier elemento que pueda desbordar */
img,
iframe,
video,
.logo-stage img,
.portal-logo {
    max-width: 100% !important;
    height: auto !important;
}

/* Para los contenedores de texto largo */
.hero-copy h2,
.section-head h3,
.brand-mini-info strong,
.doc-item h4 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
/* ===============================
   FIX FINAL MODAL COMPROBANTE
================================ */

body.modal-open {
    overflow: hidden;
}

/* Fondo desenfocado */
body.modal-open .topbar,
body.modal-open .bottom-nav,
body.modal-open .page>*:not(.comprobante-modal) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* Modal limpio */
.comprobante-modal,
.comprobante-modal * {
    filter: none !important;
}

.comprobante-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 16px;
    background: rgba(43, 30, 20, .62);
    overflow-y: auto;
}

.comprobante-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.comprobante-modal-card {
    position: relative;
    width: min(920px, 100%);
    margin: 24px auto;
    background: #fffaf2;
    border-radius: 28px;
    padding: 1rem;
    filter: none !important;
}