/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   convenio.css Ã¢â‚¬â€ Cuponera / Convenios Bolivia
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

:root {
    --red:          #e30613;
    --sun:          #ffcc00;
    --pink:         #fee2e2;
    --gin:          #f5b72b;
    --white:        #ffffff;
    --ink:          #1a1a1a;
    --rojo:         var(--red);
    --rojo-pastel:  var(--pink);
    --rojo-hover:   var(--red);
    --blanco:       var(--white);
    --blanco-dim:   var(--pink);
    --amarillo:     var(--sun);
    --amarillo-pastel: var(--sun);
    --coral:        var(--red);
    /* 2. Tipografía pública — misma pila que el prototipo El Solar */
    --font-display: Arial, Helvetica, sans-serif;
    --font-body:    Arial, Helvetica, sans-serif;
    --font-mono:    Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-padding-top: 90px;
}

/* La navbar se comporta EXACTO igual que en MenÃƒÂº, Inicio y Sucursales:
   `position: sticky; top: 0` (lo define navbar.php) y SIN
   `body { padding-top }`.

   Antes esta pÃƒÂ¡gina forzaba `position: fixed` + `padding-top` en el
   body. Ese padding reservaba una franja blanca completa bajo la
   barra; con el fondo claro se veÃƒÂ­a como un bloque blanco enorme,
   por mÃƒÂ¡s que se redujera el alto. Sin el padding la barra ocupa
   solo su propio alto en el flujo, igual que en el menÃƒÂº.
   NO se redefine `.header` aquÃƒÂ­ a propÃƒÂ³sito: se hereda de navbar.php. */

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--pink);
}

/* ── Panel fotográfico a sangre (lado izquierdo) ── */
.conv-visual {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: clamp(300px, 34vw, 560px);
    overflow: hidden;
    background: var(--ink);
    z-index: 0;
}
.conv-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Todo el contenido por encima del overlay y a la derecha de la foto */
.conv-header,
.conv-guide,
.conv-content,
.conv-nota,
.conv-logo-bar,
.convenio-section {
    position: relative;
    z-index: 1;
    margin-left: clamp(300px, 34vw, 560px);
}

/* Quitar fondos blancos que tapan el fondo */
.conv-header,
.conv-logo-bar {
    background: transparent;
}

.convenio-section {
    background: transparent;
}

/* Navbar sólida: blanca y limpia, sin líneas negras ni rojas */
.header--solid {
    background: var(--white) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   HEADER Ã¢â‚¬â€ tÃƒÂ­tulo esquina superior
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-header {
    padding: 4px 20px;
    border-bottom: none;
    background: transparent;
}

.conv-header__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 6vh, 76px);
    font-weight: 400;
    line-height: .92;
    text-transform: uppercase;
    color: var(--ink);
    }

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   CONTENIDO Ã¢â‚¬â€ tarjetas centradas
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 48px 32px 180px;
    overflow: clip;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Card Ã¢â€â‚¬Ã¢â€â‚¬ */
.cards {
    position: relative;
    height: 150px;
    transition-duration: 0.5s;
    background: none;
    overflow: visible;
    cursor: pointer;
}

.cards:hover .outlinePage {
    box-shadow: 0 10px 20px rgba(198, 40, 40, 0.28);
}

.cards:hover .detailPage { display: flex; }

.outlinePage {
    position: relative;
    background: var(--red);              /* rojo sÃƒÂ³lido */
    width: 300px;
    height: 150px;
    border-radius: 25px;
    transition-duration: 0.5s;
    z-index: 2;
    overflow: hidden;
}

.detailPage {
    position: absolute;
    top: 130px;
    left: 0;
    display: none;
    width: 300px;
    height: 135px;
    background: var(--white);
    z-index: 10;
    transition-duration: 1s;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--pink);
    border-top: none;
}

.splitLine {
    position: absolute;
    width: 200px;
    height: 10px;
    top: 70px;
    left: 35%;
    transform: translateX(-50%);
    background: var(--sun);              /* amarillo pastel sÃ³lido */
    height: 10px;
    width: 120px;
    border-radius: 5px;
    z-index: 3;
}

.uni-logo-wrap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-58%);
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15), inset 0 -2px 0 rgba(0,0,0,0.04);
    z-index: 2;
    border: 3px solid var(--sun);          /* amarillo pastel suave */
}

.uni-logo-wrap img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

/* AnimaciÃƒÂ³n del logo de cada universidad */
.uni-logo {
    animation: uniBreathe 3s ease-in-out infinite;
    will-change: transform;
}

.cards:nth-child(odd) .uni-logo { animation-delay: 0.15s; }
.cards:nth-child(even) .uni-logo { animation-delay: 0.6s; }

.cards:hover .uni-logo {
    animation: uniPop 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes uniBreathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.09) rotate(-3deg); }
}

@keyframes uniPop {
    0%, 100% { transform: translateY(0) scale(1); }
    40%      { transform: translateY(-7px) scale(1.14) rotate(3deg); }
    70%      { transform: translateY(0) scale(1.05) rotate(-2deg); }
}

.ranking_number {
    position: relative;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 62px;
    left: 20px;
    top: 10px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.ranking_word { font-size: 26px; color: var(--white); }

.userName {
    position: relative;
    font-weight: 700;
    color: var(--white);
    left: 20px;
    font-size: 12px;
    top: 26px;
    max-width: 155px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gradesBox {
    position: relative;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.gradesBoxLabel {
    display: block;
    color: var(--ink);
    letter-spacing: 4px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
}

.gradesBoxNum {
    display: block;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cta-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.cards:hover .cta-arrow { transform: scale(1.12); }
.cta-arrow svg { color: var(--white); }

.slide-in-top {
    animation: slide-in-top 0.45s cubic-bezier(0.65, 0.05, 0.36, 1) both;
}

@keyframes slide-in-top {
    0%   { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0);     opacity: 1; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   NOTA Ã¢â‚¬â€ fija al fondo
   5. Sin backdrop-filter (consume GPU continuamente)
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-nota {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97); /* opacidad alta compensa la falta de blur */
    border-top: 1px solid var(--pink);
    padding: 10px 24px;
    font-size: 12px;
    color: var(--ink);
    text-align: center;
    line-height: 1.5;
    z-index: 100;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   RESPONSIVE
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
@media (max-width: 768px) {

    /* Navbar transparente en mÃƒÂ³vil Ã¢â‚¬â€ igual que desktop */

    /* TÃƒÂ­tulo mÃƒÂ¡s compacto */
    .conv-header { padding: 8px 16px; }
    .conv-header__title { font-size: clamp(24px, 8vw, 56px); }

    /* Tarjetas apiladas y centradas */
    .conv-content {
        padding: 20px 16px calc(110px + env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Tarjeta adaptada al ancho del mÃƒÂ³vil */
    .outlinePage {
        width: min(300px, calc(100vw - 40px));
    }
    .detailPage {
        width: min(300px, calc(100vw - 40px));
    }

    /* Nota fija Ã¢â‚¬â€ sobre el bottom nav */
    .conv-nota {
        bottom: calc(90px + env(safe-area-inset-bottom));
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   TÃƒÂTULO CUPONERA (usado en cuponeragabriel / upsa)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-logo-bar {
    display: flex;
    align-items: center;
    padding: 4px 20px;
    border-bottom: 1px solid var(--pink);
    background: var(--white);
    overflow: hidden;
}

.conv-logo-bar .texto {
    font-family: var(--font-display);
    font-size: clamp(30px, 6vh, 76px);
    line-height: 0.88;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.convenio-instruccion {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
    text-align: center;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   SECCIÃƒâ€œN TICKET
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.convenio-section {
    background: var(--white);
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-wrap {
    position: relative;
    max-width: 680px;
    width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
}

.ticket {
    background: var(--white);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    position: relative;
    overflow: hidden;
}

.ticket-side {
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}

.ticket-side.right {
    background: var(--paper-dim);
    align-items: center;
    text-align: center;
    position: relative;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ PerforaciÃƒÂ³n central Ã¢â€â‚¬Ã¢â€â‚¬ */
.perforation {
    position: relative;
    border-left: 2px dashed var(--pink);     /* lÃ­nea punteada gris suave */
}

.perforation::before,
.perforation::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--petrol);
}

.perforation::before { top: -13px; }
.perforation::after  { bottom: -13px; }

.perf-dashes {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed var(--ink);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Input carnet Ã¢â€â‚¬Ã¢â€â‚¬ */
.input-container {
    position: relative;
    width: 100%;
}

.carnet-input {
    width: 100%;
    height: 60px;
    padding: 12px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background-color: var(--white);
    border: 4px solid var(--ink);
    border-radius: 0;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 8px 8px 0 var(--ink);
}

.carnet-input::placeholder { color: var(--ink); }

.carnet-input:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--ink);
}

.carnet-input:focus {
    background-color: var(--ink);
    color: var(--white);
    border-color: var(--pink);
    animation: shake 0.5s ease-in-out;
}

.carnet-input:focus::placeholder { color: var(--white); }

/* 4. glitch finito Ã¢â‚¬â€ corre 3 veces y para, en vez de infinite */
.carnet-input:not(:placeholder-shown) {
    animation: glitch 1s linear 3;
    font-weight: bold;
    letter-spacing: 1px;
}

.input-container::after {
    content: "|";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
    pointer-events: none;
    animation: blink 0.7s step-end infinite;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px) rotate(-1deg); }
    50%  { transform: translateX(5px)  rotate(1deg); }
    75%  { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0); }
}

@keyframes glitch {
    0%   { transform: none; opacity: 1; }
    7%   { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10%  { transform: none; opacity: 1; }
    30%  { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35%  { transform: none; opacity: 1; }
    55%  { transform: skew(-1deg, 0.2deg); opacity: 0.75; }
    60%  { transform: none; opacity: 1; }
    75%  { transform: skew(0.4deg, 1deg); opacity: 0.75; }
    80%  { transform: none; opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes blink { 50% { opacity: 0; } }

.btn-generar {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    background-color: var(--ink);
    outline: 3px var(--ink) solid;
    outline-offset: -3px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 400ms;
}

.btn-generar .text { color: white; font-weight: 700; font-size: 1em; transition: 400ms; }
.btn-generar svg path { transition: 400ms; }
.btn-generar:hover { background-color: transparent; }
.btn-generar:hover .text { color: var(--ink); }
.btn-generar:hover svg path { fill: var(--ink); }
.btn-generar:disabled { background-color: var(--ink); outline-color: var(--ink); cursor: default; }
.btn-generar:disabled .text { color: var(--pink); }

.helper-text { margin-top: 10px; font-size: 12.5px; color: var(--ink); }
.helper-text.error { color: var(--coral); font-weight: 500; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Lado derecho: estados Ã¢â€â‚¬Ã¢â€â‚¬ */
.placeholder-state { color: var(--ink); font-size: 14px; line-height: 1.6; }
.placeholder-icon  { font-size: 26px; margin-bottom: 10px; opacity: .6; }
.code-state        { display: none; width: 100%; }

.code-state.active {
    display: block;
    animation: reveal .5s cubic-bezier(.2,.8,.2,1);
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

.code-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}

.code-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(22px, 4vw, 30px);
    letter-spacing: 0.04em;
    color: var(--coral);
    background: var(--white);
    border: 1.5px dashed var(--coral);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.countdown-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: center;
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: 13px;
}

.countdown-value { font-size: 17px; font-weight: 600; }

.code-note { margin-top: 14px; font-size: 12px; color: var(--ink); max-width: 220px; }

.stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    font-style: italic;
    font-size: 12px;
    color: var(--coral);
    border: 2px solid var(--coral);
    border-radius: 6px;
    padding: 3px 8px;
    transform: rotate(8deg) scale(0);
    opacity: 0;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.stamp.active { transform: rotate(8deg) scale(1); opacity: 1; }

.convenio-foot {
    margin-top: 26px;
    font-size: 13px;
    color: var(--ink);
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   RESPONSIVE
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
@media (min-width: 769px) and (max-width: 1024px) {
    .convenio-section { padding: 36px 28px 48px; }
}

@media (max-width: 768px) {
    .conv-logo-bar        { padding: 16px 20px 12px; }
    .conv-logo-bar .texto { font-size: clamp(22px, 6vw, 36px); line-height: 0.9; }

    .ticket { grid-template-columns: 1fr; border-radius: 14px; }

    .perforation {
        height: 24px;
        border-top: 2px dashed var(--pink);     /* lÃ­nea punteada gris suave */
    }
    .perforation::before,
    .perforation::after { top: 50%; transform: translateY(-50%); }
    .perforation::before { left: -13px; }
    .perforation::after  { left: auto; right: -13px; }

    .perf-dashes {
        left: 20px; right: 20px;
        top: 50%; transform: translateY(-50%);
        width: auto; height: 0; bottom: auto;
        border-left: none; border-top: 2px dashed var(--ink);
    }

    .convenio-section   { padding: 20px 20px 40px; }
    .ticket-side        { padding: 24px 20px; min-height: unset; }
    .ticket-side.right  { padding-top: 28px; }

    .carnet-input {
        height: 52px; font-size: 16px; box-shadow: 5px 5px 0 var(--ink);
    }
    .carnet-input:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

    .btn-generar { width: 100%; margin-top: 14px; }

    .code-value  { font-size: clamp(18px, 5.5vw, 26px); }
    .code-note   { max-width: 100%; font-size: 11px; }
    .convenio-foot { font-size: 12px; margin-top: 18px; padding: 0 4px; }

    .convenio-section { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
    .conv-logo-bar  { padding: 20px 14px 14px; }
    .ticket-side    { padding: 18px 16px; }
    .carnet-input   { height: 46px; font-size: 15px; }
    .code-value     { font-size: clamp(16px, 5vw, 22px); padding: 8px 10px; }
    #codeValueBox   { padding: 6px 6px 6px 10px; }
    .copy           { --button-diameter: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .code-state.active { animation: none; }
    .stamp             { transition: none; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   CÃƒâ€œDIGO + BOTÃƒâ€œN COPIAR integrado
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#codeValueBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 8px 8px 8px 14px;
}

#codeValueBox #codeValue {
    flex: 1;
    text-align: center;
    line-height: 1;
}

#codeValueBox .copy-divider {
    width: 1.5px;
    height: 26px;
    background: var(--coral);
    opacity: 0.3;
    flex-shrink: 0;
    margin: 0 6px;
}

.copy {
    --button-bg:               transparent;
    --button-hover-bg:         rgba(198, 40, 40, 0.08);
    --button-text-color:       var(--coral);
    --button-hover-text-color: var(--coral);
    --button-border-radius:    8px;
    --button-diameter:         34px;
    --button-outline-width:    1.5px;
    --button-outline-color:    var(--coral);
    --tooltip-bg:              var(--white);
    --tooltip-border-radius:   4px;
    --tooltip-font-family:     Arial, Helvetica, sans-serif;
    --tooltip-font-size:       11px;
    --tooltip-text-color:      var(--coral);
    --tooltip-padding-x:       7px;
    --tooltip-padding-y:       6px;
    --tooltip-offset:          8px;

    box-sizing: border-box;
    width: var(--button-diameter);
    height: var(--button-diameter);
    border-radius: var(--button-border-radius);
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: none;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
    transition: background .2s ease;
}

.copy .tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font: var(--tooltip-font-size) var(--tooltip-font-family);
    color: var(--tooltip-text-color);
    background: var(--tooltip-bg);
    border: 1px solid var(--coral);
    padding: var(--tooltip-padding-y) var(--tooltip-padding-x);
    border-radius: var(--tooltip-border-radius);
    pointer-events: none;
    transition: opacity .18s cubic-bezier(.68,-.55,.265,1.55),
                top     .18s cubic-bezier(.68,-.55,.265,1.55);
}

.copy .tooltip::before { content: attr(data-text-initial); }

.copy .tooltip::after {
    content: "";
    position: absolute;
    bottom: calc(var(--tooltip-padding-y) / 2 * -1);
    width: var(--tooltip-padding-y);
    height: var(--tooltip-padding-y);
    background: var(--tooltip-bg);
    border-right: 1px solid var(--coral);
    border-bottom: 1px solid var(--coral);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
}

.copy svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.copy .checkmark { display: none; }

.copy:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: calc((100% + var(--tooltip-offset)) * -1);
}

.copy:focus:not(:focus-visible) .tooltip {
    opacity: 1;
    visibility: visible;
    top: calc((100% + var(--tooltip-offset)) * -1);
}
.copy:focus:not(:focus-visible) .tooltip::before { content: attr(data-text-end); }
.copy:focus:not(:focus-visible) .clipboard       { display: none; }
.copy:focus:not(:focus-visible) .checkmark        { display: block; }

.copy:hover,
.copy:focus { background-color: var(--button-hover-bg); }
.copy:active { outline: var(--button-outline-width) solid var(--button-outline-color); }

.code-row { display: none; }


/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   TÃƒÂTULO CUPONERA
   Ã¢â€â‚¬Ã¢â€â‚¬ Para cambiar el tamaÃƒÂ±o edita font-size Ã¢â€â‚¬Ã¢â€â‚¬
   clamp(mÃƒÂ­nimo, fluido, mÃƒÂ¡ximo)
   Ejemplo mÃƒÂ¡s grande: clamp(60px, 14vh, 200px)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-logo-bar {
    display: flex;
    align-items: center;
    padding: 4px 20px;
    border-bottom: 1px solid var(--pink);
    background: var(--white);
    overflow: hidden;
}

.conv-logo-bar .texto {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 6vh, 76px); /* mÃƒÂ¡s compacto que antes */
    line-height: 0.88;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.convenio-instruccion {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
    text-align: center;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   SECCIÃƒâ€œN TICKET
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.convenio-section {
    background: var(--white);
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-wrap {
    position: relative;
    max-width: 680px;
    width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
}

.ticket {
    background: var(--white);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    position: relative;
    overflow: hidden;
}

.ticket-side {
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}

.ticket-side.right {
    background: var(--paper-dim);
    align-items: center;
    text-align: center;
    position: relative;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ PerforaciÃƒÂ³n central Ã¢â€â‚¬Ã¢â€â‚¬ */
.perforation {
    position: relative;
    border-left: 2px dashed var(--pink);     /* lÃ­nea punteada gris suave */
}

.perforation::before,
.perforation::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--petrol);
}

.perforation::before { top: -13px; }
.perforation::after  { bottom: -13px; }

.perf-dashes {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed var(--ink);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Formulario lado izquierdo Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Ã¢â€â‚¬Ã¢â€â‚¬ Input carnet Ã¢â‚¬â€ estilo glitch Ã¢â€â‚¬Ã¢â€â‚¬ */
.input-container {
    position: relative;
    width: 100%;
}

.carnet-input {
    width: 100%;
    height: 60px;
    padding: 12px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background-color: var(--white);
    border: 4px solid var(--ink);
    border-radius: 0;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 8px 8px 0 var(--ink);
}

.carnet-input::placeholder { color: var(--ink); }

.carnet-input:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--ink);
}

.carnet-input:focus {
    background-color: var(--ink);
    color: var(--white);
    border-color: var(--pink);
    animation: shake 0.5s ease-in-out;
}

.carnet-input:focus::placeholder { color: var(--white); }

.carnet-input:not(:placeholder-shown) {
    animation: glitch 1s linear infinite;
    font-weight: bold;
    letter-spacing: 1px;
}

/* cursor parpadeante */
.input-container::after {
    content: "|";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
    pointer-events: none;
    animation: blink 0.7s step-end infinite;
}

.carnet-input:focus ~ .input-cursor { color: var(--white); }

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px) rotate(-1deg); }
    50%  { transform: translateX(5px)  rotate(1deg); }
    75%  { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0); }
}

@keyframes glitch {
    0%   { transform: none; opacity: 1; }
    7%   { transform: skew(-0.5deg, -0.9deg); opacity: 0.75; }
    10%  { transform: none; opacity: 1; }
    30%  { transform: skew(0.8deg, -0.1deg); opacity: 0.75; }
    35%  { transform: none; opacity: 1; }
    55%  { transform: skew(-1deg, 0.2deg); opacity: 0.75; }
    60%  { transform: none; opacity: 1; }
    75%  { transform: skew(0.4deg, 1deg); opacity: 0.75; }
    80%  { transform: none; opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes blink { 50% { opacity: 0; } }

.btn-generar {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    background-color: var(--ink);
    outline: 3px var(--ink) solid;
    outline-offset: -3px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 400ms;
}

.btn-generar .text {
    color: white;
    font-weight: 700;
    font-size: 1em;
    transition: 400ms;
}

.btn-generar svg path { transition: 400ms; }

.btn-generar:hover { background-color: transparent; }
.btn-generar:hover .text { color: var(--ink); }
.btn-generar:hover svg path { fill: var(--ink); }

.btn-generar:disabled {
    background-color: var(--ink);
    outline-color: var(--ink);
    cursor: default;
}
.btn-generar:disabled .text { color: var(--pink); }

.helper-text { margin-top: 10px; font-size: 12.5px; color: var(--ink); }
.helper-text.error { color: var(--coral); font-weight: 500; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Lado derecho: estados Ã¢â€â‚¬Ã¢â€â‚¬ */
.placeholder-state {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}

.placeholder-icon {
    font-size: 26px;
    margin-bottom: 10px;
    opacity: .6;
}

.code-state { display: none; width: 100%; }

.code-state.active {
    display: block;
    animation: reveal .5s cubic-bezier(.2,.8,.2,1);
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

.code-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}

.code-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(22px, 4vw, 30px);
    letter-spacing: 0.04em;
    color: var(--coral);
    background: var(--white);
    border: 1.5px dashed var(--coral);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.countdown-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: center;
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: 13px;
}

.countdown-value { font-size: 17px; font-weight: 600; }

.code-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink);
    max-width: 220px;
}

.stamp {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12px;
    color: var(--coral);
    border: 2px solid var(--coral);
    border-radius: 6px;
    padding: 3px 8px;
    transform: rotate(8deg) scale(0);
    opacity: 0;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}

.stamp.active { transform: rotate(8deg) scale(1); opacity: 1; }

.convenio-foot {
    margin-top: 26px;
    font-size: 13px;
    color: var(--ink);
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   RESPONSIVE Ã¢â‚¬â€ mismo patrÃƒÂ³n que contacto.css
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* Ã¢â€â‚¬Ã¢â€â‚¬ Tablet 769Ã¢â‚¬â€œ1024px Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (min-width: 769px) and (max-width: 1024px) {
    .convenio-section {
        padding: 36px 28px 48px;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Mobile Ã¢â€°Â¤ 768px Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {

    /* TÃƒÂ­tulo mÃƒÂ¡s compacto en mÃƒÂ³vil */
    .conv-logo-bar {
        padding: 16px 20px 12px;
    }

    .conv-logo-bar .texto {
        font-size: clamp(22px, 6vw, 36px);
        line-height: 0.9;
    }

    /* Ticket en columna vertical */
    .ticket {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    /* PerforaciÃƒÂ³n horizontal */
    .perforation {
        height: 24px;
        border-top: 2px dashed var(--pink);     /* línea punteada gris suave */
    }
    .perforation::before,
    .perforation::after {
        top:       50%;
        transform: translateY(-50%);
    }
    .perforation::before { left: -13px; }
    .perforation::after  { left: auto; right: -13px; }

    .perf-dashes {
        left:        20px;
        right:       20px;
        top:         50%;
        transform:   translateY(-50%);
        width:       auto;
        height:      0;
        bottom:      auto;
        border-left: none;
        border-top:  2px dashed var(--ink);
    }

    /* SecciÃƒÂ³n y lados */
    .convenio-section {
        padding: 20px 20px 40px;
    }

    .ticket-side {
        padding:    24px 20px;
        min-height: unset;
    }

    .ticket-side.right {
        padding-top: 28px;
    }

    /* Input: reducir sombra lateral que sale del viewport */
    .carnet-input {
        height:     52px;
        font-size:  16px;
        box-shadow: 5px 5px 0 var(--ink);
    }
    .carnet-input:hover {
        transform:  translate(-2px, -2px);
        box-shadow: 7px 7px 0 var(--ink);
    }

    /* BotÃƒÂ³n generar full width */
    .btn-generar {
        width:      100%;
        margin-top: 14px;
    }

    /* CÃƒÂ³digo */
    .code-value {
        font-size: clamp(18px, 5.5vw, 26px);
    }

    .code-note {
        max-width: 100%;
        font-size: 11px;
    }

    .convenio-foot {
        font-size:  12px;
        margin-top: 18px;
        padding:    0 4px;
    }

    /* Espacio para bottom nav (mismo que contacto) */
    .convenio-section {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

.conv-guide + .conv-content { padding-top: 24px; }

@media (max-width: 768px) {
    .conv-guide { width: 100%; }
    .conv-guide + .conv-content { padding-top: 14px; }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Mobile pequeÃƒÂ±o Ã¢â€°Â¤ 380px Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 380px) {
    .conv-logo-bar {
        padding: 20px 14px 14px;
    }

    .ticket-side {
        padding: 18px 16px;
    }

    .carnet-input {
        height:    46px;
        font-size: 15px;
    }

    .code-value {
        font-size: clamp(16px, 5vw, 22px);
        padding:   8px 10px;
    }

    #codeValueBox {
        padding: 6px 6px 6px 10px;
    }

    .copy {
        --button-diameter: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .code-state.active { animation: none; }
    .stamp { transition: none; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   CÃƒâ€œDIGO + BOTÃƒâ€œN COPIAR integrado
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* El rectÃƒÂ¡ngulo dashed ahora es flex para contener cÃƒÂ³digo + botÃƒÂ³n */
#codeValueBox {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             0;
    padding:         8px 8px 8px 14px; /* menos padding derecho para el botÃƒÂ³n */
}

/* El span del cÃƒÂ³digo */
#codeValueBox #codeValue {
    flex:        1;
    text-align:  center;
    line-height: 1;
}

/* Separador vertical entre cÃƒÂ³digo y botÃƒÂ³n */
#codeValueBox .copy-divider {
    width:        1.5px;
    height:       26px;
    background:   var(--coral);
    opacity:      0.3;
    flex-shrink:  0;
    margin:       0 6px;
}

/* BotÃƒÂ³n copy Ã¢â‚¬â€ colores coordinados con --coral */
.copy {
    --button-bg:               transparent;
    --button-hover-bg:         rgba(198, 40, 40, 0.08);
    --button-text-color:       var(--coral);
    --button-hover-text-color: var(--coral);
    --button-border-radius:    8px;
    --button-diameter:         34px;
    --button-outline-width:    1.5px;
    --button-outline-color:    var(--coral);
    --tooltip-bg:              var(--white);
    --tooltip-border-radius:   4px;
    --tooltip-font-family:     Arial, Helvetica, sans-serif;
    --tooltip-font-size:       11px;
    --tooltip-text-color:      var(--coral);
    --tooltip-padding-x:       7px;
    --tooltip-padding-y:       6px;
    --tooltip-offset:          8px;

    box-sizing:       border-box;
    width:            var(--button-diameter);
    height:           var(--button-diameter);
    border-radius:    var(--button-border-radius);
    background-color: var(--button-bg);
    color:            var(--button-text-color);
    border:           none;
    cursor:           pointer;
    position:         relative;
    outline:          none;
    flex-shrink:      0;
    transition:       background .2s ease;
}

/* Tooltip */
.copy .tooltip {
    position:       absolute;
    opacity:        0;
    visibility:     hidden;
    top:            0;
    left:           50%;
    transform:      translateX(-50%);
    white-space:    nowrap;
    font:           var(--tooltip-font-size) var(--tooltip-font-family);
    color:          var(--tooltip-text-color);
    background:     var(--tooltip-bg);
    border:         1px solid var(--coral);
    padding:        var(--tooltip-padding-y) var(--tooltip-padding-x);
    border-radius:  var(--tooltip-border-radius);
    pointer-events: none;
    transition:     opacity .18s cubic-bezier(.68,-.55,.265,1.55),
                    top     .18s cubic-bezier(.68,-.55,.265,1.55);
}

.copy .tooltip::before { content: attr(data-text-initial); }

.copy .tooltip::after {
    content:        "";
    position:       absolute;
    bottom:         calc(var(--tooltip-padding-y) / 2 * -1);
    width:          var(--tooltip-padding-y);
    height:         var(--tooltip-padding-y);
    background:     var(--tooltip-bg);
    border-right:   1px solid var(--coral);
    border-bottom:  1px solid var(--coral);
    left:           50%;
    transform:      translateX(-50%) rotate(45deg);
    pointer-events: none;
}

/* SVGs centrados */
.copy svg {
    position:  absolute;
    top:       50%;
    left:      50%;
    transform: translate(-50%, -50%);
}

.copy .checkmark { display: none; }

/* Hover */
.copy:hover .tooltip {
    opacity:    1;
    visibility: visible;
    top: calc((100% + var(--tooltip-offset)) * -1);
}

/* Click/focus Ã¢â‚¬â€ "Ã‚Â¡Copiado!" + checkmark */
.copy:focus:not(:focus-visible) .tooltip {
    opacity:    1;
    visibility: visible;
    top: calc((100% + var(--tooltip-offset)) * -1);
}
.copy:focus:not(:focus-visible) .tooltip::before { content: attr(data-text-end); }
.copy:focus:not(:focus-visible) .clipboard       { display: none;  }
.copy:focus:not(:focus-visible) .checkmark        { display: block; }

.copy:hover,
.copy:focus { background-color: var(--button-hover-bg); }

.copy:active { outline: var(--button-outline-width) solid var(--button-outline-color); }

/* Quitar .code-row que ya no se usa */
.code-row { display: none; }

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   GUÃƒÂA PARA ESTUDIANTES (vista CONVENIO) Ã¢â‚¬â€ 3 pasos en UN solo cuadro
Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.conv-guide {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 8px auto 4px;
    padding: 4px 28px 0;
    text-align: center;
}

.conv-guide__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--red);
    margin: 0;
    text-shadow: none;
}

.conv-guide__sub {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 700;
    margin: 4px 0 12px;
}

/* Un solo cuadro con los 3 pasos */
.conv-guide__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.16);
}

.conv-guide__step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 22px;
    text-align: left;
    border-bottom: 1px solid var(--pink);
    transition: background 0.2s ease;
}
.conv-guide__step:last-child { border-bottom: none; }
.conv-guide__step:hover { background: var(--pink); }

.conv-guide__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sun);               /* amarillo pastel sólido */
    color: var(--red);                    /* texto rojo */
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 15px;
    border: 2px solid var(--sun);
    box-shadow: 0 2px 6px rgba(227, 6, 19, 0.12);
    margin: 0;
}

.conv-guide__step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conv-guide__step p {
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
    font-weight: 500;
}

.conv-guide__step strong {
    font-size: 14px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 800;
}

/* Mobile: apilado y compacto */
@media (max-width: 640px) {
    .conv-guide { padding: 4px 14px 0; }
    .conv-guide__title { font-size: clamp(18px, 5vw, 26px); }
    .conv-guide__sub { font-size: 12px; margin: 4px 0 10px; }
    .conv-guide__step { padding: 10px 14px; gap: 12px; }
    .conv-guide__num { width: 26px; height: 26px; font-size: 13px; }
    .conv-guide__step strong { font-size: 13px; }
    .conv-guide__step p { font-size: 12.5px; line-height: 1.45; }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   GUÃƒÂA COMPACTA DE LA CUPONERA (toggle no invasivo)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.cupon-guide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--white);
    border: 1.5px solid var(--red);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cupon-guide-toggle:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.cupon-guide-toggle .cupon-guide-caret { transition: transform 0.25s ease; }
.cupon-guide-toggle.open .cupon-guide-caret { transform: rotate(180deg); }

.cupon-guide-box {
    max-width: 720px;
    width: 100%;
    margin: 0 auto 22px;
    background: var(--white);
    border: 1.5px solid var(--pink);
    border-radius: 16px;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
}

.cupon-guide-box.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 18px;
    padding-bottom: 18px;
}

.cupon-guide-box h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 10px;
}

.cupon-guide-box ol {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cupon-guide-box li {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
}

.cupon-guide-box li strong { color: var(--ink); }

.cupon-guide-box .cupon-guide-note {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: var(--ink);
    border-top: 1px dashed var(--pink);
    padding-top: 12px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ GuÃƒÂ­a convenio: responsive mÃƒÂ³vil Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 640px) {
    .conv-guide { padding: 4px 14px 0; }
    .conv-guide__title { font-size: clamp(18px, 5vw, 26px); }
    .conv-guide__sub { font-size: 12px; margin: 4px 0 10px; }
    .conv-guide__steps { flex-direction: column; align-items: center; gap: 10px; }
    .conv-guide__step { max-width: 100%; padding: 10px 14px; gap: 12px; }
    .conv-guide__num { width: 26px; height: 26px; font-size: 13px; margin-bottom: 6px; }
    .conv-guide__step p { font-size: 12.5px; line-height: 1.45; }
    .conv-guide__step strong { font-size: 13px; margin-bottom: 4px; }
    .conv-guide__step:hover { transform: none; box-shadow: 0 10px 24px rgba(198, 40, 40, 0.16); }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   CUPONERA Ã¢â‚¬â€ pantalla mejorada (cuponeragabriel / cuponeraupsa)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* Texto de instrucciÃƒÂ³n Ã¢â‚¬â€ mismo estilo que el tÃƒÂ­tulo de Convenio */
.cuponera-page .convenio-instruccion {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 16px;
    text-shadow: none;
}

/* GuÃƒÂ­a rÃƒÂ¡pida "Ã‚Â¿CÃƒÂ³mo funciona?" Ã¢â‚¬â€ misma caja que la vista de Convenio */
.cuponera-page .conv-guide {
    margin: 0 auto 22px;
    max-width: 680px;
}

.cuponera-page .conv-guide__title {
    margin-bottom: 10px;
}

.cuponera-page .conv-guide__steps {
    text-align: left;
    box-shadow: 0 16px 36px rgba(198, 40, 40, 0.18);
}

/* Input: placeholder mÃƒÂ¡s visible */
.cuponera-page .carnet-input::placeholder {
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Helper: mÃƒÂ¡s llamativo */
.cuponera-page .helper-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.cuponera-page .helper-text.error {
    color: var(--coral);
    font-weight: 700;
}

/* Lado derecho: mensaje "Tu cÃƒÂ³digo aparecerÃƒÂ¡ aquÃƒÂ­" */
.cuponera-page .placeholder-state {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.cuponera-page .placeholder-icon {
    font-size: 34px;
    opacity: 1;
    animation: cupon-bounce 1.6s ease-in-out infinite;
}

@keyframes cupon-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Pie de la cuponera */
.cuponera-page .convenio-foot {
    color: var(--ink);
    font-weight: 500;
}

.cuponera-page .stamp {
    font-family: var(--font-display);
    font-size: 14px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive cuponera */
@media (max-width: 600px) {
    .cuponera-page .convenio-instruccion { font-size: clamp(18px, 5vw, 26px); }
    .cuponera-page .conv-guide { padding: 6px 16px 0; }
}

/* Tarjetas con border duro y sombra dura, sin esquinas redondeadas */
.outlinePage,
.conv-content .card,
.conv-content .outlinePage {
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--red);
    border-radius: 0;
}
.cards:hover .outlinePage {
    box-shadow: 12px 12px 0 var(--red);
}
.conv-content .uni-logo-wrap,
.detailPage {
    border-radius: 0;
    box-shadow: none;
}

/* La nota fija también se aparta del panel fotográfico */
.conv-nota { left: clamp(300px, 34vw, 560px); }

/* En tablet/celular el panel se oculta y el contenido ocupa todo el ancho */
@media (max-width: 900px) {
    .conv-visual { display: none; }
    .conv-header,
    .conv-guide,
    .conv-content,
    .conv-nota,
    .conv-logo-bar,
    .convenio-section { margin-left: 0; }
    .conv-nota { left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CONVENIO — composición final
   Información a la izquierda, foto a la derecha y fondo limpio.
   Este bloque va al final para ganar a las reglas históricas.
   ═══════════════════════════════════════════════════════════════ */
body.convenio-page {
    background-color: var(--white);
    background-image: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.convenio-page .conv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 560px);
    gap: clamp(24px, 4vw, 72px);
    min-height: calc(100vh - var(--solar-nav-h, 72px));
    align-items: start;
}

body.convenio-page .conv-main {
    grid-column: 1;
    min-width: 0;
    padding: 24px clamp(20px, 4vw, 64px) 48px;
}

body.convenio-page .conv-visual {
    position: sticky;
    top: var(--solar-nav-h, 72px);
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 2;
    width: 100%;
    height: calc(100vh - var(--solar-nav-h, 72px));
    margin: 0;
    /* Sin franjas de color: la foto se ve completa sobre el fondo blanco
       de la página, incluso al 100 % de zoom. */
    background: var(--white);
    overflow: hidden;
    z-index: 0;
}

body.convenio-page .conv-visual img {
    width: 100%;
    height: 100%;
    /* La foto vertical se muestra completa para no recortar a las personas
       en monitores grandes; las franjas que sobran usan el fondo oscuro. */
    object-fit: contain;
    object-position: center;
    display: block;
    transition: none;
    transform: none;
}

body.convenio-page .conv-header,
body.convenio-page .conv-guide,
body.convenio-page .conv-content,
body.convenio-page .conv-nota {
    margin-left: 0;
}

body.convenio-page .conv-header {
    padding: 8px 0 16px;
    text-align: left;
    background: transparent;
}

body.convenio-page .conv-header__title {
    font-size: clamp(42px, 6vw, 88px);
}

body.convenio-page .conv-guide {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

body.convenio-page .conv-guide__steps {
    width: 100%;
    margin-top: 12px;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--red);
}

body.convenio-page .conv-guide__step {
    border-bottom: 3px solid var(--ink);
}

body.convenio-page .conv-guide__step:last-child { border-bottom: none; }

body.convenio-page .conv-guide__step p { color: var(--ink); }
body.convenio-page .conv-guide__step strong { color: var(--ink); }
body.convenio-page .conv-guide__num { color: var(--red); }

body.convenio-page .conv-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 300px));
    justify-content: start;
    align-items: stretch;
    gap: 28px;
    margin: 0;
    padding: 28px 0 0;
    overflow: visible;
}

body.convenio-page .cards {
    display: block;
    height: 300px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

body.convenio-page .outlinePage {
    width: 100%;
    border: 3px solid var(--ink);
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--red);
}

body.convenio-page .cards:hover .outlinePage,
body.convenio-page .cards:focus-visible .outlinePage {
    box-shadow: 12px 12px 0 var(--red);
}

body.convenio-page .detailPage {
    width: 100%;
    border: 3px solid var(--ink);
    border-top: none;
    border-radius: 0;
    box-shadow: 8px 8px 0 var(--red);
    background: var(--white);
}

body.convenio-page .gradesBoxNum,
body.convenio-page .userName,
body.convenio-page .ranking_number { color: var(--ink); }

body.convenio-page .conv-nota {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin: 28px 0 0;
    padding: 14px 16px;
    background: var(--white);
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--red);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    z-index: 1;
}

@media (max-width: 900px) {
    body.convenio-page .conv-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.convenio-page .conv-main {
        order: 1;
        width: 100%;
        padding: 18px 16px 24px;
    }

    body.convenio-page .conv-visual {
        display: block;
        position: relative;
        top: auto;
        order: 2;
        width: 100%;
        height: min(62vw, 420px);
    }

    body.convenio-page .conv-content { grid-template-columns: 1fr; }
    body.convenio-page .cards { height: 300px; }
    body.convenio-page .conv-nota { margin-bottom: 24px; }
}

@media (max-width: 480px) {
    body.convenio-page .conv-header__title { font-size: clamp(36px, 11vw, 56px); }
    body.convenio-page .conv-content { gap: 24px; }
    body.convenio-page .conv-guide__step { padding: 10px 14px; }
    body.convenio-page .conv-guide__step p { font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   AJUSTES FINALES — móvil de Convenio y vista Cuponera
   ═══════════════════════════════════════════════════════════════ */

/* En celular la foto vertical estorba: se oculta solo en este modo. */
@media (max-width: 768px) {
    body.convenio-page .conv-visual { display: none !important; }
    body.convenio-page .conv-layout {
        display: block;
        min-height: 0;
    }
    body.convenio-page .conv-main {
        width: 100%;
        padding: 20px 16px 40px;
    }
}

/* La cuponera queda centrada al abrirse desde una institución. */
.cuponera-page .conv-logo-bar {
    justify-content: center;
    text-align: center;
}
.cuponera-page .conv-logo-bar .texto {
    align-items: center;
    text-align: center;
}
.cuponera-page .convenio-instruccion { text-align: center; }
.cuponera-page .conv-guide {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.cuponera-page .conv-guide__steps {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.cuponera-page .ticket-wrap { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════
   UNIFICACIÓN FINAL — misma fuente y tamaño que "NUESTRO MENU"
   ═══════════════════════════════════════════════════════════════ */
body.convenio-page .conv-header__title,
.cuponera-page .conv-logo-bar .texto {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 5.2vh, 66px);
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    font-weight: 400;
}

/* ── Guía "¿Cómo funciona?" limpia, sin sombra roja ni bordes filosos ── */
body.convenio-page .conv-guide__steps,
.cuponera-page .conv-guide__steps {
    background: var(--white);
    border: 1px solid var(--pink);
    border-radius: 18px;
    box-shadow: none;
}
body.convenio-page .conv-guide__step {
    border-bottom: 1px solid var(--pink);
}
body.convenio-page .conv-guide__step:last-child { border-bottom: none; }
body.convenio-page .conv-guide__step:hover {
    background: var(--pink);
    box-shadow: none;
    transform: none;
}

/* ── Instituciones: fondo blanco, texto legible, sin sombras ── */
body.convenio-page .outlinePage {
    background: var(--white);
    border: 1px solid var(--pink);
    border-radius: 18px;
    box-shadow: none;
}
body.convenio-page .cards:hover .outlinePage,
body.convenio-page .cards:focus-visible .outlinePage {
    border-color: var(--red);
    box-shadow: none;
}
body.convenio-page .detailPage {
    border: 1px solid var(--pink);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
}
body.convenio-page .ranking_number,
body.convenio-page .ranking_word { color: var(--red); }
body.convenio-page .userName { color: var(--ink); }
body.convenio-page .conv-nota {
    background: var(--white);
    border: 1px solid var(--pink);
    border-radius: 18px;
    box-shadow: none;
}

/* ── Cuponera: quitar el desplazamiento del panel de Convenio,
      centrar toda la información y bajar un poco el título ── */
.cuponera-page .conv-logo-bar,
.cuponera-page .conv-guide,
.cuponera-page .conv-content,
.cuponera-page .conv-nota,
.cuponera-page .convenio-section {
    margin-left: 0;
}
.cuponera-page .conv-logo-bar {
    justify-content: center;
    padding: 30px 20px 18px;
    border-bottom: none;
}
.cuponera-page .convenio-section {
    align-items: center;
    text-align: center;
}
.cuponera-page .conv-guide,
.cuponera-page .ticket-wrap,
.cuponera-page .convenio-foot {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.cuponera-page .conv-guide__steps { text-align: left; }

/* ═══════════════════════════════════════════════════════════════
   CONVENIO — recuadro único estilo Club Solar
   Toda la información queda dentro del mismo panel blanco, centrado
   en el espacio libre y sin acercarse a la fotografía lateral.
   ═══════════════════════════════════════════════════════════════ */
body.convenio-page .conv-main {
    position: relative;
    width: min(100%, 560px);
    margin-left: auto;
    margin-right: 0;
    padding: clamp(22px, 3vw, 36px);
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 26px;
    box-shadow:
        0 22px 60px rgba(26, 26, 46, 0.12),
        0 4px 18px rgba(227, 6, 19, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
}

body.convenio-page .conv-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--red) 0%, #ff4d2d 35%, var(--sun) 70%, #f3d97a 100%);
    pointer-events: none;
}

body.convenio-page .conv-main > * {
    position: relative;
    z-index: 1;
}

body.convenio-page .conv-header { padding-top: 10px; }

@media (max-width: 768px) {
    body.convenio-page .conv-main {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        padding: 22px 16px 28px;
    }

    body.convenio-page .conv-header,
    body.convenio-page .conv-guide {
        text-align: center;
    }

    body.convenio-page .conv-guide__steps {
        margin-left: auto;
        margin-right: auto;
    }

    body.convenio-page .conv-guide__step {
        justify-content: center;
        text-align: center;
    }

    body.convenio-page .conv-guide__step-content {
        align-items: center;
    }

    body.convenio-page .cards {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONVENIO — una sola plana en escritorio, panel más ancho
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (min-height: 620px) {
    body.convenio-page { overflow: visible; }

    body.convenio-page .conv-layout {
        grid-template-columns: minmax(0, 1fr) clamp(340px, 36vw, 680px);
        gap: clamp(16px, 2vw, 32px);
        padding-left: clamp(16px, 2.5vw, 32px);
        padding-right: 0;
        min-height: calc(100dvh - var(--solar-nav-h, 72px));
    }

    body.convenio-page .conv-main {
        width: min(100%, 1040px);
        margin-left: auto;
        margin-right: auto;
        padding: 18px 26px 20px;
    }

    body.convenio-page .conv-header { padding: 2px 0 8px; }
    body.convenio-page .conv-header__title { font-size: clamp(35px, calc(5.4vh + 1px), 61px); }
    body.convenio-page .conv-guide { margin-top: 0; }
    body.convenio-page .conv-guide__title { font-size: clamp(25px, calc(3.2vh + 1px), 35px); }

    body.convenio-page .conv-guide__steps {
        flex-direction: row;
        margin-top: 8px;
    }

    body.convenio-page .conv-guide__step {
        flex: 1;
        min-width: 0;
        padding: 9px 12px;
        gap: 9px;
        border-bottom: none;
        border-right: 1px solid var(--pink);
    }

    body.convenio-page .conv-guide__step:last-child { border-right: none; }
    body.convenio-page .conv-guide__num { width: 30px; height: 30px; font-size: 16px; }
    body.convenio-page .conv-guide__step strong { font-size: 15px; }
    body.convenio-page .conv-guide__step p { font-size: 14px; line-height: 1.4; }

    body.convenio-page .conv-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 14px;
        gap: clamp(16px, 2vw, 32px);
    }

    body.convenio-page .cards { height: 236px; }
    body.convenio-page .outlinePage { height: 170px; }
    body.convenio-page .detailPage { top: 150px; height: 86px; }
    body.convenio-page .conv-nota { margin-top: 14px; padding: 10px 14px; font-size: 14px; }

    /* Tipografía de las tarjetas también +1px en Convenio */
    body.convenio-page .ranking_number { font-size: 63px; }
    body.convenio-page .ranking_word { font-size: 27px; }
    body.convenio-page .userName { font-size: 13px; }
    body.convenio-page .gradesBoxLabel { font-size: 12px; }
    body.convenio-page .gradesBoxNum { font-size: 18px; }
}

/* Entre 769 y 900 px la composición se apila (contenido + foto), por lo que
   la página debe poder desplazarse. El bloque de escritorio oculta el
   desborde para la plana única; aquí lo devolvemos para no cortar la foto. */
@media (min-width: 769px) and (max-width: 900px) {
    body.convenio-page { overflow: visible; }
}

/* ═══════════════════════════════════════════════════════════════
   CUPONERA — recuadro igual al del resto de vistas
   ═══════════════════════════════════════════════════════════════ */
body.cuponera-page .cuponera-panel {
    position: relative;
    width: min(100%, 820px);
    margin: 8px auto 0;
    padding: clamp(20px, 3vw, 32px) 49px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 26px;
    box-shadow:
        0 22px 60px rgba(26, 26, 46, 0.12),
        0 4px 18px rgba(227, 6, 19, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
}

body.cuponera-page .cuponera-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--red) 0%, #ff4d2d 35%, var(--sun) 70%, #f3d97a 100%);
    pointer-events: none;
}

body.cuponera-page .cuponera-panel > * {
    position: relative;
    z-index: 1;
}

body.cuponera-page .cuponera-panel .conv-guide,
body.cuponera-page .cuponera-panel .ticket-wrap,
body.cuponera-page .cuponera-panel .convenio-foot {
    max-width: 100%;
}

@media (max-width: 768px) {
    body.cuponera-page .cuponera-panel {
        width: 100%;
        max-width: 620px;
        padding: 22px 14px 24px;
    }
}


/* ============================================================
   Franja amarilla compacta del título de Convenio.
   Vive dentro del panel, así que no toca ni cubre la foto lateral.
   ============================================================ */
body.convenio-page .conv-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 18px 10px;
    margin: 0 0 8px;
}
body.convenio-page .conv-header__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 5.2vh, 66px);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: .92;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}
@media (min-width: 769px) and (min-height: 620px) {
    body.convenio-page .conv-header { padding: 6px 18px 8px; margin-bottom: 6px; }
}
@media (max-width: 768px) {
    body.convenio-page .conv-header { padding: 7px 14px 9px; border-radius: 10px; }
    body.convenio-page .conv-header__title { font-size: clamp(24px, 8vw, 44px); }
}
