/* =====================================================
   AFICHE DE DESCUENTO (afiche izquierda + formulario derecha)
   Usa las variables y degradados de style.css
   ===================================================== */
.afiche-dialog { max-width: min(96vw, 1120px); }

.afiche-card {
    position: relative;
    border: 0 !important;
    border-radius: 1.5rem !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.45);
}

.afiche-x {
    position: absolute; top: 0.9rem; right: 0.9rem; z-index: 5;
    width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%;
    background: #fff; color: #0f172a; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer;
}
.afiche-x:hover { background: #f1f5f9; }

.afiche-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .afiche-grid { grid-template-columns: 1.05fr 1fr; } }

/* ---------- AFICHE (izquierda) ---------- */
.afiche-poster {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.5rem 1.5rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(circle at 100% 20%, rgba(249, 115, 22, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 0% 0%, rgba(0, 180, 216, 0.22) 0%, transparent 50%),
        #03060a;
}
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.ap-brand { display: flex; align-items: center; gap: .6rem; }
.ap-logo { height: 46px; width: auto; }
html:root body .afiche-poster .ap-brand-text {
    font-size: 2rem !important; font-weight: 800 !important; line-height: 1 !important;
    background: var(--pomelia-logo-gradient); -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent; background-clip: text;
}
html:root body .afiche-poster .ap-pill {
    font-size: .62rem !important; font-weight: 600 !important; letter-spacing: .22em !important;
    text-transform: uppercase !important; color: var(--cyan-pomelia);
    border: 1px solid var(--cyan-dim); background: rgba(0,180,216,.08);
    border-radius: 999px; padding: .35rem 1rem; max-width: 17rem; line-height: 1.5 !important;
}

html:root body .afiche-poster .ap-headline {
    font-size: clamp(1.7rem, 3.3vw, 2.35rem) !important; font-weight: 800 !important;
    line-height: 1.15 !important; letter-spacing: -0.5px !important;
}
.ap-cyan   { color: var(--cyan-pomelia); }
.ap-sunset { color: var(--sunset-orange); }

.ap-offer { position: relative; display: flex; align-items: center; gap: 1.25rem; min-height: 150px; }
.ap-percent { display: flex; align-items: baseline; line-height: 1; }
html:root body .afiche-poster .ap-num {
    font-size: clamp(5rem, 11vw, 7.5rem) !important; font-weight: 800 !important; line-height: .95 !important;
    letter-spacing: -4px !important;
    background: var(--pomelia-primary-gradient); -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent; background-clip: text;
}
html:root body .afiche-poster .ap-sign {
    font-size: 2.6rem !important; font-weight: 700 !important;
    background: linear-gradient(135deg, #7c3aed, #f472b6); -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent; background-clip: text;
}
html:root body .afiche-poster .ap-off-big { font-size: 1.9rem !important; font-weight: 800 !important; line-height: 1.1 !important; }
html:root body .afiche-poster .ap-off-small { font-size: .95rem !important; color: var(--text-secondary); max-width: 8.5rem; line-height: 1.3 !important; }
.ap-cart { position: absolute; right: 0; top: -6px; width: clamp(110px, 15vw, 160px); height: auto; }

.ap-store {
    border: 1px solid var(--cyan-dim); border-radius: 1rem; padding: .9rem 1.1rem;
    background: linear-gradient(135deg, rgba(0,180,216,.10), rgba(0,0,0,.35));
}
html:root body .afiche-poster .ap-store-kicker {
    font-size: .62rem !important; letter-spacing: .2em !important; text-transform: uppercase !important;
    color: var(--cyan-pomelia); font-weight: 500 !important;
}
html:root body .afiche-poster .ap-store-text { font-size: 1.25rem !important; font-weight: 800 !important; line-height: 1.3 !important; }

.ap-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ap-mini { border-radius: .9rem; padding: .75rem .9rem; border: 1px solid rgba(255,255,255,.08); }
.ap-mini-cyan   { background: linear-gradient(135deg, rgba(0,180,216,.14), rgba(0,0,0,.4));  border-color: var(--cyan-dim); }
.ap-mini-purple { background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(0,0,0,.4)); border-color: var(--purple-dim); }
.ap-mini-sunset { background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(0,0,0,.4)); border-color: var(--sunset-dim); }
html:root body .afiche-poster .ap-mini-title { font-size: .95rem !important; font-weight: 700 !important; line-height: 1.3 !important; margin-bottom: .15rem; }
html:root body .afiche-poster .ap-mini-text  { font-size: .85rem !important; color: var(--text-secondary); line-height: 1.35 !important; }

/* ---------- FORMULARIO (derecha) ---------- */
.afiche-form-panel { background: #fff; color: #0f172a; padding: 2.5rem 2.25rem 2rem; }
html:root body .afiche-form-panel .af-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(2rem, 4vw, 2.9rem) !important; font-weight: 400 !important;
    line-height: 1.1 !important; color: #0f172a; padding-right: 2.5rem; margin-bottom: .75rem;
}
html:root body .afiche-form-panel .af-sub { font-size: 1.05rem !important; color: #475569; line-height: 1.7 !important; margin-bottom: 1.5rem; }
html:root body .afiche-form-panel .af-label { display: block; font-size: 1rem !important; font-weight: 500 !important; color: #0f172a; margin: 1rem 0 .4rem; }
html:root body .afiche-form-panel .af-label-eres { margin: .8rem 0 .3rem .15rem; font-size: .95rem !important; }
html:root body .afiche-form-panel .af-input {
    display: block; width: 100%; height: 3.6rem; padding: .5rem 1rem;
    font-size: 1.05rem !important; color: #0f172a; background: #fff;
    border: 1px solid #cbd5e1; border-radius: .6rem; outline: none;
}
html:root body .afiche-form-panel .af-input::placeholder { color: #94a3b8; }
html:root body .afiche-form-panel .af-input:focus { border-color: var(--cyan-pomelia); box-shadow: 0 0 0 3px rgba(0,180,216,.25); }
#desc-empresa-wrap { margin-top: .75rem; }

.af-radios { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
html:root body .afiche-form-panel .af-radio {
    display: flex; align-items: center; gap: .6rem; margin: 0; cursor: pointer;
    padding: 1rem; border: 1px solid #cbd5e1; border-radius: .6rem; background: #fff;
    font-size: 1.05rem !important; color: #0f172a;
}
.af-radio:has(input:checked) { background: #e1f1ec; border-color: #0f766e; }
.af-radio .form-check-input { margin: 0; float: none; }
.af-radio .form-check-input:checked { background-color: #0f766e; border-color: #0f766e; }

html:root body .afiche-form-panel .af-msg { min-height: 1.3rem; font-size: .9rem !important; margin-top: .6rem; }
.afiche-form-panel .af-msg.ok  { color: #64748b; }
.afiche-form-panel .af-msg.err { color: #b91c1c; }

html:root body .afiche-form-panel .af-submit {
    display: block; width: 100%; margin-top: .4rem; padding: 1rem;
    font-size: 1.05rem !important; font-weight: 600 !important; color: #fff;
    background: #0f172a; border: 0; border-radius: .6rem; cursor: pointer; transition: all .25s ease;
}
html:root body .afiche-form-panel .af-submit:hover { background: #1e293b; box-shadow: 0 8px 20px rgba(124,58,237,.3); transform: translateY(-1px); }
html:root body .afiche-form-panel .af-submit:disabled { opacity: .7; cursor: wait; }
html:root body .afiche-form-panel .af-privacidad { font-size: .8rem !important; color: #64748b; margin-top: .9rem; line-height: 1.4 !important; }
.af-privacidad i { color: #16a34a; }

@media (max-width: 899.98px) {
    .afiche-form-panel { padding: 1.75rem 1.25rem 1.5rem; }
    .afiche-poster { padding: 1.25rem; }
}
@media (max-width: 480px) {
    .ap-cards { grid-template-columns: 1fr; }
    .ap-cart { width: 90px; }
}


/* =====================================================
   AJUSTES: cuadro completo en pantalla + tipografía del index
   (Inter, y los tamaños de tipografia.css: título 700, texto 400)
   ===================================================== */
.afiche-dialog { margin: .75rem auto; }
.afiche-card { max-height: calc(100vh - 1.5rem); }
.afiche-grid { max-height: calc(100vh - 1.5rem); overflow-y: auto; }

/* Afiche subido desde el administrador: se ve entero, sin recortes */
.afiche-poster-img {
    padding: 0; gap: 0; justify-content: center; align-items: center;
    background: #000;
}
.afiche-poster-img .descuento-afiche {
    display: block; width: 100%; height: auto;
    max-height: calc(100vh - 1.5rem); object-fit: contain;
}

/* Formulario: misma fuente y formato que el index */
html:root body .afiche-form-panel,
html:root body .afiche-form-panel .af-sub,
html:root body .afiche-form-panel .af-label,
html:root body .afiche-form-panel .af-input,
html:root body .afiche-form-panel .af-radio,
html:root body .afiche-form-panel .af-submit,
html:root body .afiche-form-panel .af-privacidad,
html:root body .afiche-form-panel .af-msg {
    font-family: var(--font-family-pomelia) !important;
    letter-spacing: normal !important;
}
html:root body .afiche-form-panel .af-title {
    font-family: var(--font-family-pomelia) !important;
    font-size: var(--tipo-titulo) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}
html:root body .afiche-form-panel .af-sub,
html:root body .afiche-form-panel .af-label,
html:root body .afiche-form-panel .af-input,
html:root body .afiche-form-panel .af-radio {
    font-size: var(--tipo-texto) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}
html:root body .afiche-form-panel .af-label { font-weight: 500 !important; }
html:root body .afiche-form-panel .af-submit { font-size: var(--tipo-texto) !important; font-weight: 600 !important; }
html:root body .afiche-form-panel .af-privacidad,
html:root body .afiche-form-panel .af-msg { font-size: .875rem !important; }

/* Textos del afiche de respaldo (cuando no hay imagen): Inter, como el index */
html:root body .afiche-poster,
html:root body .afiche-poster .ap-headline,
html:root body .afiche-poster .ap-store-text,
html:root body .afiche-poster .ap-mini-title,
html:root body .afiche-poster .ap-mini-text {
    font-family: var(--font-family-pomelia) !important;
}

@media (min-width: 900px) {
    .afiche-form-panel { display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 899.98px) {
    .afiche-poster-img .descuento-afiche { max-height: 45vh; }
}


/* =====================================================
   VERSIÓN COMPACTA + FORMATO EXACTO DEL INDEX
   Solo 3 niveles (tipografia.css): título 700 · subtítulo 700 · texto 400
   ===================================================== */
.afiche-dialog { max-width: min(94vw, 860px); }
.afiche-card, .afiche-grid { max-height: calc(100vh - 1.5rem); }
@media (min-width: 900px) { .afiche-grid { grid-template-columns: 1fr 1fr; } }

.afiche-x { top: .6rem; right: .6rem; width: 2.1rem; height: 2.1rem; font-size: .8rem; }

/* Panel del formulario: más pequeño */
.afiche-form-panel { padding: 1.5rem 1.4rem 1.25rem; }
html:root body .afiche-form-panel .af-title { padding-right: 2rem; margin-bottom: .5rem; }
html:root body .afiche-form-panel .af-sub { margin-bottom: .75rem; }
html:root body .afiche-form-panel .af-label { margin: .6rem 0 .25rem; }
html:root body .afiche-form-panel .af-label-eres { margin: .5rem 0 .25rem; font-size: var(--tipo-texto) !important; }
html:root body .afiche-form-panel .af-input { height: 2.7rem; padding: .35rem .8rem; }
html:root body .afiche-form-panel .af-radio { padding: .55rem .8rem; }
html:root body .afiche-form-panel .af-submit { padding: .65rem; margin-top: .25rem; }
html:root body .afiche-form-panel .af-msg { min-height: 1rem; margin-top: .3rem; }
html:root body .afiche-form-panel .af-privacidad { margin-top: .6rem; }

/* Mismo formato que el index: texto 1rem / 400, botón igual que los .btn del index */
html:root body .afiche-form-panel .af-label,
html:root body .afiche-form-panel .af-radio,
html:root body .afiche-form-panel .af-submit,
html:root body .afiche-form-panel .af-sub,
html:root body .afiche-form-panel .af-input {
    font-size: var(--tipo-texto) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}
html:root body .afiche-form-panel .af-privacidad,
html:root body .afiche-form-panel .af-msg { font-size: var(--tipo-texto) !important; font-weight: 400 !important; }
html:root body .afiche-form-panel .af-privacidad { font-size: .875rem !important; }

/* Afiche de respaldo (sin imagen): mismos 3 niveles del index */
.afiche-poster { padding: 1.1rem; gap: .7rem; }
.ap-logo { height: 36px; }
html:root body .afiche-poster .ap-brand-text { font-size: var(--tipo-subtitulo) !important; font-weight: 700 !important; }
html:root body .afiche-poster .ap-pill { font-size: .6rem !important; }
html:root body .afiche-poster .ap-headline { font-size: var(--tipo-subtitulo) !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: normal !important; }
html:root body .afiche-poster .ap-num { font-size: 4.5rem !important; }
html:root body .afiche-poster .ap-sign { font-size: 1.8rem !important; }
html:root body .afiche-poster .ap-off-big { font-size: var(--tipo-subtitulo) !important; font-weight: 700 !important; }
html:root body .afiche-poster .ap-off-small,
html:root body .afiche-poster .ap-mini-text { font-size: var(--tipo-texto) !important; font-weight: 400 !important; line-height: 1.6 !important; }
html:root body .afiche-poster .ap-store-text,
html:root body .afiche-poster .ap-mini-title { font-size: var(--tipo-texto) !important; font-weight: 700 !important; line-height: 1.4 !important; }
.ap-offer { min-height: 100px; }
.ap-cart { width: 90px; top: 0; }
.ap-mini { padding: .55rem .7rem; }
.ap-store { padding: .6rem .8rem; }

@media (max-width: 899.98px) {
    .afiche-poster-img .descuento-afiche { max-height: 35vh; }
}


/* =====================================================
   COLORES DE LETRA = los de "Servicios de Diseño & Desarrollo"
   Títulos: blanco (#fff) · Textos: gris claro (--text-secondary #cbd5e1)
   Fondo oscuro como las tarjetas de esa sección
   ===================================================== */
.afiche-card { background: #050508 !important; }
.afiche-form-panel { background: #050508; color: #ffffff; border-left: 1px solid rgba(255,255,255,.08); }

html:root body .afiche-form-panel .af-title { color: var(--text-primary) !important; }
html:root body .afiche-form-panel .af-sub,
html:root body .afiche-form-panel .af-privacidad { color: var(--text-secondary) !important; }
html:root body .afiche-form-panel .af-label,
html:root body .afiche-form-panel .af-radio { color: var(--text-primary) !important; }

html:root body .afiche-form-panel .af-input {
    background: var(--card-pomelia-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(0, 180, 216, 0.25) !important;
}
html:root body .afiche-form-panel .af-input::placeholder { color: #94a3b8 !important; }
html:root body .afiche-form-panel .af-input:focus {
    border-color: var(--cyan-pomelia) !important;
    box-shadow: 0 0 0 3px var(--cyan-dim) !important;
}
html:root body .afiche-form-panel .af-radio { background: var(--card-pomelia-bg); border: 1px solid rgba(0,180,216,.25); }
html:root body .afiche-form-panel .af-radio:has(input:checked) { background: var(--cyan-dim); border-color: var(--cyan-pomelia); }
.af-radio .form-check-input { background-color: transparent; border-color: #94a3b8; }
.af-radio .form-check-input:checked { background-color: var(--cyan-pomelia) !important; border-color: var(--cyan-pomelia) !important; }

html:root body .afiche-form-panel .af-submit { background: var(--pomelia-primary-gradient) !important; color: #fff !important; }
html:root body .afiche-form-panel .af-submit:hover { box-shadow: 0 8px 20px rgba(0,180,216,.3); }
.afiche-form-panel .af-msg.ok  { color: var(--text-secondary); }
.afiche-form-panel .af-msg.err { color: #f87171; }
.af-privacidad i { color: #4ade80; }

.afiche-x { background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.afiche-x:hover { background: rgba(0,0,0,.85); }

/* Afiche de respaldo: títulos blancos, textos gris claro */
html:root body .afiche-poster .ap-headline,
html:root body .afiche-poster .ap-store-text,
html:root body .afiche-poster .ap-mini-title,
html:root body .afiche-poster .ap-off-big { color: var(--text-primary); }
html:root body .afiche-poster .ap-off-small,
html:root body .afiche-poster .ap-mini-text { color: var(--text-secondary); }

/* Flor (logo) y nombre "Pomelia" un poco más pequeños */
.ap-logo { height: 28px; }
.ap-brand { gap: .45rem; }
html:root body .afiche-poster .ap-brand-text { font-size: 1.05rem !important; }


/* =====================================================
   Título del afiche con el MISMO color que la palabra "pomelia"
   (mismo degradado de .brand-text-gradient)
   ===================================================== */
html:root body .afiche-form-panel .af-title {
    background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #fb923c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    padding-bottom: .1em;
}

/* =====================================================
   Barra superior: flor y "pomelia" más pequeñas
   (solo en la barra de navegación; el pie de página no cambia)
   ===================================================== */
html:root body .navbar-pomelia .logo-brand-img {
    height: 32px !important;
    max-width: 32px !important;
}
html:root body .navbar-pomelia .navbar-brand .brand-text-gradient {
    font-size: 1.4rem !important;
}
@media (max-width: 575.98px) {
    html:root body .navbar-pomelia .logo-brand-img { height: 28px !important; max-width: 28px !important; }
    html:root body .navbar-pomelia .navbar-brand .brand-text-gradient { font-size: 1.2rem !important; }
}

/* Flor y nombre dentro del afiche: un poco más pequeños también */
.ap-logo { height: 24px; }
html:root body .afiche-poster .ap-brand-text { font-size: .95rem !important; }


/* Barra superior: flor y "pomelia" — tamaño intermedio (un poco más grandes) */
html:root body .navbar-pomelia .logo-brand-img { height: 38px !important; max-width: 38px !important; }
html:root body .navbar-pomelia .navbar-brand .brand-text-gradient { font-size: 1.65rem !important; }
@media (max-width: 575.98px) {
    html:root body .navbar-pomelia .logo-brand-img { height: 33px !important; max-width: 33px !important; }
    html:root body .navbar-pomelia .navbar-brand .brand-text-gradient { font-size: 1.4rem !important; }
}


/* Título: mismo degradado que la palabra "pomelia", completo en cada línea */
html:root body .afiche-form-panel .af-title {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #ffffff !important;
}
html:root body .afiche-form-panel .af-title .af-title-grad {
    display: inline;
    background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #fb923c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: .12em;
}

/* =====================================================
   CUADRO COMPACTO (tamaño del afiche) + TÍTULO COMO
   "Servicios de Diseño & Desarrollo": blanco + degradado
   ===================================================== */
.afiche-dialog { max-width: min(94vw, 800px); }
@media (min-width: 900px) { .afiche-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* Título: primera parte blanca, últimas palabras con el degradado del logo (igual que el index) */
html:root body .afiche-form-panel .af-title {
    font-size: 1.45rem !important; line-height: 1.25 !important;
    padding-right: 1.8rem; margin-bottom: .35rem;
    background: none !important; -webkit-text-fill-color: initial !important; color: #ffffff !important;
}
html:root body .afiche-form-panel .af-title .text-white { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html:root body .afiche-form-panel .af-title .af-title-grad {
    background: var(--pomelia-logo-gradient) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
}

/* Formulario más pequeño: sin etiquetas visibles (los campos tienen placeholder) */
.afiche-form-panel { padding: 1.1rem 1.2rem 1rem; justify-content: center; }
html:root body .afiche-form-panel .af-sub { font-size: .875rem !important; line-height: 1.45 !important; margin-bottom: .5rem; }
html:root body .afiche-form-panel .af-label-oculta {
    position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html:root body .afiche-form-panel .af-label-eres { display: none; }
html:root body .afiche-form-panel .af-input { height: 2.3rem; margin-bottom: .45rem; font-size: .9rem !important; }
html:root body .afiche-form-panel .af-radio { padding: .35rem .6rem; font-size: .875rem !important; }
.af-radios { gap: .5rem; margin-bottom: .45rem; }
#desc-empresa-wrap { margin-top: 0; }
html:root body .afiche-form-panel .af-msg { min-height: .6rem; margin-top: 0; font-size: .8rem !important; }
html:root body .afiche-form-panel .af-submit { padding: .5rem; font-size: .95rem !important; margin-top: .2rem; }
html:root body .afiche-form-panel .af-privacidad { font-size: .75rem !important; margin-top: .45rem; line-height: 1.35 !important; }

/* El afiche llena su columna sin recortarse */
@media (min-width: 900px) {
    .afiche-poster-img .descuento-afiche { height: 100%; max-height: none; object-fit: contain; }
}


/* =====================================================
   AJUSTES SOLO TELÉFONO (≤ 575.98px)
   1) Insignias del hero un poquito más juntas
   2) Botón del regalo un poco más abajo
   3) Modal del afiche: mismo tamaño de afiche y textos, cuadro más pequeño
   ===================================================== */
@media (max-width: 575.98px) {

    /* 1) Insignias: menos separación (antes .75rem) */
    .hero-insignias { gap: 0.45rem; }

    /* 2) Botón flotante del regalo: aún más abajo (antes bottom 0.5rem) */
    .btn-descuento-flotante { bottom: 0.1rem; left: 1rem; }

    /* 3) Cuadro del modal más pequeño; el afiche y el contenido no cambian de tamaño */
    .afiche-dialog { max-width: 86vw; margin: .5rem auto; }
    .afiche-card, .afiche-grid { max-height: calc(100vh - 1rem); }
    .afiche-form-panel { padding: .8rem .9rem .75rem; }
    html:root body .afiche-form-panel .af-sub { margin-bottom: .35rem; }
    .af-radios, html:root body .afiche-form-panel .af-input { margin-bottom: .35rem; }
    html:root body .afiche-form-panel .af-privacidad { margin-top: .3rem; }
}

/* Mensaje de exito: mismo color que el texto .af-sub */
html:root body .afiche-form-panel .af-msg.ok { color: var(--text-secondary) !important; }

/* ---------- Cloudflare Turnstile en tamaño reducido (75%) ---------- */
/* El widget mide 300x65 px; lo escalamos y reservamos solo el espacio real */
/* Afiche: ocupa todo el ancho del panel pero baja (70% de la altura normal) */
.cf-wide-wrap { width: 100%; height: 46px; overflow: hidden; }
.cf-turnstile.cf-wide { width: 142.857%; height: 65px; } /* 100% / 0.7 */
.cf-turnstile.cf-wide iframe { transform: scale(0.7); transform-origin: 0 0; }

/* Mensajes: widget oculto (solo se muestra si Cloudflare pide una verificación manual) */
.cf-turnstile.cf-oculto { margin: 0; min-height: 0; }

/* =====================================================
   HERO DEL INICIO EN TELÉFONO (≤ 767.98px)
   Antes ocupaba toda la pantalla y centraba el contenido, dejándolo muy
   lejos de la barra de arriba y con mucho aire abajo. Ahora el contenido
   empieza justo debajo de la barra y la sección termina donde acaba el texto.
   ===================================================== */
@media (max-width: 767.98px) {
    html:root body .hero-full-layout {
        min-height: 0 !important;
        align-items: flex-start !important;
    }
    html:root body .hero-full-layout .hero-content-overlay {
        padding-top: 5.25rem !important;     /* alto de la barra + un respiro */
        padding-bottom: 1.75rem !important;
    }
    html:root body .hero-full-layout .hero-insignias.mb-3 { margin-bottom: 0.75rem !important; }
    html:root body .hero-full-layout h1.hero-heading { margin-bottom: 0.9rem !important; }
    html:root body .hero-full-layout p.mb-4 { margin-bottom: 1rem !important; }
}

/* Teléfono (≤ 575.98px): contenido del hero al 90 % */
@media (max-width: 575.98px) {
    html:root body .hero-full-layout .hero-content-overlay > .row {
        zoom: 0.9;
    }
}
