/* Yo compro en Xàtiva — capa de marca sobre Bootstrap 5.3 (guía de marca v3).
   Viene de HTML/assets/css/ycx.css (diseño entregado el 2026-11-24). Lo de después de
   «Añadidos del proyecto» es propio: páginas legales, 404 y pie con enlaces legales. */

@font-face {
  font-family: "Fraunces Soft";
  src: url("../fonts/fraunces-soft-italic-600-nj9Y7PN.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-pFlvDht.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* Paleta oficial */
  --ycx-crema: #F6EFE4;
  --ycx-terracota: #CA6A4A;
  --ycx-navy: #1E3B5F;   /* solo texto, logo y líneas — nunca fondo */
  --ycx-blanco: #FFFFFF;
  /* Variante accesible (AA) para texto pequeño y botones sobre terracota/crema.
     No es color de marca nuevo: es la terracota oscurecida solo por contraste. */
  --ycx-terracota-aa: #A84F35;
  --ycx-terracota-aa-hover: #8F4330;

  /* Ilustraciones — 3 opciones sin navy (cambiar con data-illu en <html>) */
  --illu-a-mancha: #F2C9B5;  --illu-a-linea: #8F4330;  --illu-a-fondo: transparent;   /* A · Melocotón */
  --illu-b-mancha: #E6D5BC;  --illu-b-linea: #CA6A4A;  --illu-b-fondo: transparent;   /* B · Arena */
  --illu-c-mancha: #A84F35;  --illu-c-linea: #F6EFE4;  --illu-c-fondo: #CA6A4A;       /* C · Crema sobre terracota */

  /* Grosor de línea de las ilustraciones (viewBox 200). Original de la guía: 4.5 → ahora 2.8 (~62 %) */
  --illu-grosor: 2.8;

  --ycx-font-display: "Fraunces Soft", Georgia, "Times New Roman", serif;
  --ycx-font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mapeo a variables de Bootstrap */
  --bs-body-font-family: var(--ycx-font-text);
  --bs-body-bg: var(--ycx-crema);
  --bs-body-color: var(--ycx-navy);
  --bs-emphasis-color: var(--ycx-navy);
  --bs-link-color: var(--ycx-terracota-aa);
  --bs-link-color-rgb: 168, 79, 53;
  --bs-link-hover-color: var(--ycx-terracota-aa-hover);
  --bs-link-hover-color-rgb: 143, 67, 48;
  --bs-border-color: rgba(30, 59, 95, .25);
  --bs-focus-ring-color: rgba(202, 106, 74, .45);
}

body { font-family: var(--ycx-font-text); background: var(--ycx-crema); color: var(--ycx-navy); }

.ycx-skip { position: absolute; left: 1rem; top: 1rem; z-index: 10; background: var(--ycx-blanco); padding: .5rem 1rem; border-radius: .5rem; }

/* Logo: respetar tamaño mínimo (200 px) y espacio de protección (lo da el propio SVG + padding) */
.ycx-logo { --logo-w: clamp(220px, 40vw, 340px); width: var(--logo-w); height: auto; display: block; }
/* El SVG del logo trae su espacio de protección dentro (≈30 % de su alto por debajo de la tinta).
   En escritorio lo compensamos para que la portada quede ópticamente centrada entre logo y pie
   (el espacio libre que queda sigue siendo mayor que el mínimo de ½x de la guía). */
.ycx-logo { margin-bottom: calc(var(--logo-w) * -0.1075); }
.ycx-logo-link { display: inline-block; padding: .5rem; border-radius: .5rem; }

/* Tipografía */
.ycx-display {
  font-family: var(--ycx-font-display);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.01em;
}
.ycx-display { font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; color: var(--ycx-terracota); }
.ycx-eyebrow { font-weight: 600; color: var(--ycx-terracota-aa); letter-spacing: .02em; }
.ycx-lead { font-weight: 400; max-width: 34rem; margin-inline: auto; }
@media (min-width: 992px) { .ycx-lead { margin-inline: 0; } }
.ycx-muted { color: rgba(30, 59, 95, .82); }

/* Ilustración de portada */
[data-illu="a"] { --illu-mancha: var(--illu-a-mancha); --illu-linea: var(--illu-a-linea); --illu-fondo: var(--illu-a-fondo); }
[data-illu="b"] { --illu-mancha: var(--illu-b-mancha); --illu-linea: var(--illu-b-linea); --illu-fondo: var(--illu-b-fondo); }
[data-illu="c"] { --illu-mancha: var(--illu-c-mancha); --illu-linea: var(--illu-c-linea); --illu-fondo: var(--illu-c-fondo); }
.illu-mancha { fill: var(--illu-mancha); }
.illu-linea { stroke: var(--illu-linea); stroke-width: var(--illu-grosor); }
.ycx-illu-wrap { display: inline-block; background: var(--illu-fondo); border-radius: 2rem; padding: .75rem; }
.ycx-hero-illu { width: min(170px, 44vw); height: auto; display: block; }
@media (min-width: 992px) { .ycx-hero-illu { width: min(340px, 42vh); } .ycx-illu-wrap { padding: 0; } [data-illu="c"] .ycx-illu-wrap { padding: 1.5rem; } }
@media (max-height: 700px) and (max-width: 991.98px) { .ycx-hero-illu { width: 130px; } }

.ycx-contacto { color: rgba(30, 59, 95, .85); }

/* Botones */
.btn-ycx {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ycx-terracota-aa);
  --bs-btn-border-color: var(--ycx-terracota-aa);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ycx-terracota-aa-hover);
  --bs-btn-hover-border-color: var(--ycx-terracota-aa-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--ycx-terracota-aa-hover);
  --bs-btn-active-border-color: var(--ycx-terracota-aa-hover);
  --bs-btn-focus-shadow-rgb: 202, 106, 74;
  --bs-btn-font-weight: 600;
  border-radius: 999px;
}
.btn-ycx-outline {
  --bs-btn-color: var(--ycx-navy);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--ycx-navy);
  --bs-btn-hover-color: var(--ycx-navy);
  --bs-btn-hover-bg: var(--ycx-blanco);
  --bs-btn-hover-border-color: var(--ycx-navy);
  --bs-btn-active-color: var(--ycx-navy);
  --bs-btn-active-bg: var(--ycx-blanco);
  --bs-btn-active-border-color: var(--ycx-navy);
  --bs-btn-focus-shadow-rgb: 30, 59, 95;
  --bs-btn-font-weight: 600;
  border-width: 2px;
  border-radius: 999px;
}

.ycx-link { color: var(--ycx-terracota-aa); text-underline-offset: .2em; }
.ycx-link:hover { color: var(--ycx-terracota-aa-hover); }

/* Footer en crema con línea terracota */
.ycx-footer { background: var(--ycx-crema); color: var(--ycx-navy); border-top: 3px solid var(--ycx-terracota); }

:focus-visible { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Ajustes para que quepa en una pantalla de móvil */
@media (max-width: 575.98px) {
  .ycx-lead { font-size: 1.05rem; }
  .ycx-display { font-size: 2.9rem; }
  .ycx-hero-illu { width: 120px; }
  .btn-lg { --bs-btn-padding-y: .55rem; --bs-btn-font-size: 1.1rem; }
  .ycx-illu-wrap { padding: .5rem; }
}
@media (min-width: 1200px) { .ycx-hero-illu { width: min(400px, 42vh); } }
/* Ajuste óptico fino: la tinta de la ilustración no ocupa su caja de forma simétrica */
.ycx-main-portada { margin-top: -42px; }
@media (min-width: 992px) { .ycx-main-portada { margin-top: -8px; } }

/* ==========================================================================
   Añadidos del proyecto
   ========================================================================== */

[v-cloak] { visibility: hidden; }

/* Enlaces legales del pie: discretos, debajo del copyright. */
.ycx-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.ycx-footer-legal a { color: rgba(30, 59, 95, .85); text-underline-offset: .2em; }
.ycx-footer-legal a:hover { color: var(--ycx-terracota-aa); }

/* Páginas interiores (legales, 404): título en la tipografía de marca y texto a una medida cómoda. */
.ycx-interior { max-width: 46rem; }
.ycx-titulo {
  font-family: var(--ycx-font-display);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.01em;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.05;
  color: var(--ycx-terracota-aa);
}
.prose { line-height: 1.65; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--ycx-navy); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--ycx-terracota-aa); text-underline-offset: .2em; }
.prose a:hover { color: var(--ycx-terracota-aa-hover); }
.prose code { color: var(--ycx-navy); }

.ycx-error-codigo { font-weight: 700; letter-spacing: .08em; color: var(--ycx-terracota-aa); margin-bottom: .25rem; }

/* --------------------------------------------------------------------------
   Web de herramientas (concepto v1c): cabecera, buscador, portada, catálogo y fichas
   -------------------------------------------------------------------------- */
:root {
  --ycx-superficie: #FFFDF9;               /* tarjetas y paneles sobre la crema */
  --ycx-arena: #E6D5BC;                    /* mancha de las ilustraciones (opción B) */
  --ycx-borde: rgba(30, 59, 95, .14);
  --ycx-sombra: 0 1px 2px rgba(30, 59, 95, .06), 0 8px 24px rgba(30, 59, 95, .07);
  --ycx-radio: 1.25rem;
}

/* Cabecera: logo a la izquierda, menú y lupa a la derecha */
.ycx-header { background: var(--ycx-crema); border-bottom: 1px solid var(--ycx-borde); }
.ycx-header .navbar { padding-block: .35rem; }
.ycx-logo-nav { --logo-w: clamp(200px, 24vw, 240px); }
.ycx-header .navbar-brand { margin-right: auto; padding: .25rem 0; }
.ycx-header .nav-link { font-weight: 600; color: var(--ycx-navy); border-radius: 999px; padding-inline: 1rem !important; }
.ycx-header .nav-link:hover, .ycx-header .nav-link:focus-visible, .ycx-header .nav-link.active { color: var(--ycx-terracota-aa); }
.btn-ycx-icono { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0; border-radius: 999px; color: var(--ycx-navy); font-size: 1.25rem; background: transparent; border: 0; }
.btn-ycx-icono:hover { background: var(--ycx-superficie); color: var(--ycx-terracota-aa); }
.navbar-toggler.btn-ycx-icono { font-size: 1.6rem; }
.navbar-toggler:focus { box-shadow: none; }
.ycx-dropdown { --bs-dropdown-link-active-bg: rgba(202, 106, 74, .12); --bs-dropdown-link-active-color: var(--ycx-terracota-aa); --bs-dropdown-link-color: var(--ycx-navy); --bs-dropdown-link-hover-bg: rgba(202, 106, 74, .08); --bs-dropdown-border-color: var(--ycx-borde); --bs-dropdown-bg: var(--ycx-superficie); border-radius: 1rem; padding: .5rem; min-width: 17rem; box-shadow: var(--ycx-sombra); }
.ycx-dropdown .dropdown-header { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ycx-terracota-aa); display: flex; gap: .4rem; }
.ycx-dropdown .dropdown-item { border-radius: .6rem; font-weight: 500; }
.ycx-proximamente { color: rgba(30, 59, 95, .6); font-style: italic; font-size: .9rem; }
@media (max-width: 767.98px) {
  .ycx-header .navbar-collapse { padding-bottom: .5rem; }
  .ycx-dropdown { box-shadow: none; }
}

/* Buscador (modal de la cabecera y campo de la portada) */
.buscador-modal .modal-dialog { margin-top: clamp(1rem, 8vh, 5rem); }
.buscador-modal .modal-content { border: 1px solid var(--ycx-borde); border-radius: var(--ycx-radio); background: var(--ycx-superficie); box-shadow: var(--ycx-sombra); }
.buscador-modal .modal-header { border-bottom: 1px solid var(--ycx-borde); }
.buscador-lupa { color: var(--ycx-terracota-aa); font-size: 1.15rem; }
.buscador-campo { border: 0; box-shadow: none !important; background: transparent; font-size: 1.1rem; padding-left: 0; color: var(--ycx-navy); }
.buscador-modal .modal-body { padding: .5rem; }
.buscador-modal .modal-footer { justify-content: flex-start; gap: 1rem; font-size: .8rem; color: rgba(30, 59, 95, .75); border-top: 1px solid var(--ycx-borde); }
.buscador-lista { list-style: none; margin: 0; padding: 0; }
.buscador-titulo { padding: .4rem .75rem .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ycx-terracota-aa); }
.buscador-resultado { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .75rem; border-radius: .75rem; color: var(--ycx-navy); text-decoration: none; }
.buscador-resultado i { color: var(--ycx-terracota-aa); font-size: 1.15rem; line-height: 1.4; }
.buscador-resultado span { display: flex; flex-direction: column; min-width: 0; }
.buscador-resultado small { color: rgba(30, 59, 95, .75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.buscador-resultado[aria-selected="true"], .buscador-resultado:hover { background: rgba(202, 106, 74, .1); color: var(--ycx-navy); }
.buscador-vacio { padding: .75rem; color: rgba(30, 59, 95, .75); }
.buscador-vacio a { color: var(--ycx-terracota-aa); }
.ycx-buscador-portada { position: relative; max-width: 34rem; margin: 0 auto 1.25rem; text-align: left; }
.ycx-buscador-portada > .bi-search { position: absolute; left: 1.15rem; top: .95rem; color: var(--ycx-terracota-aa); font-size: 1.1rem; pointer-events: none; z-index: 1; }
.ycx-buscador-portada .form-control { padding: .8rem 1rem .8rem 2.9rem; border-radius: 999px; border: 1px solid var(--ycx-borde); background: var(--ycx-superficie); font-size: 1.05rem; box-shadow: var(--ycx-sombra); }
.buscador-desplegable { position: absolute; z-index: 10; top: calc(100% + .4rem); left: 0; right: 0; max-height: min(60vh, 26rem); overflow-y: auto; padding: .4rem; border: 1px solid var(--ycx-borde); border-radius: 1rem; background: var(--ycx-superficie); box-shadow: var(--ycx-sombra); }
@media (min-width: 992px) { .ycx-buscador-portada { margin-left: 0; } }

/* Portada */
.ycx-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.ycx-hero-titulo {
  font-family: var(--ycx-font-display); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.01em; font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1.02; color: var(--ycx-terracota); text-wrap: balance;
}
.ycx-cifras { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: rgba(30, 59, 95, .85); }
.ycx-cifras b { color: var(--ycx-navy); font-size: 1.1rem; }
@media (min-width: 992px) { .ycx-cifras { justify-content: flex-start; } .ycx-hero .ycx-hero-illu { width: min(360px, 40vh); } }
.ycx-seccion { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.ycx-seccion-titulo {
  font-family: var(--ycx-font-display); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ycx-terracota-aa); margin-bottom: 1.25rem;
}
.ycx-redes { border-top: 1px solid var(--ycx-borde); }
.ycx-destacada { position: relative; height: 100%; padding: 1.5rem; border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); transition: transform .15s ease, box-shadow .15s ease; }
.ycx-destacada:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 59, 95, .08), 0 14px 32px rgba(30, 59, 95, .1); }
.ycx-destacada h3 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .4rem; }
.ycx-destacada h3 a { color: var(--ycx-navy); text-decoration: none; }
.ycx-destacada p { color: rgba(30, 59, 95, .85); margin-bottom: 1rem; }
.ycx-destacada-accion { font-weight: 600; color: var(--ycx-terracota-aa); }

/* Catálogo por categorías */
.ycx-catalogo { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .ycx-catalogo { grid-template-columns: repeat(3, 1fr); } }
.ycx-categoria { padding: 1.25rem; border-radius: var(--ycx-radio); background: rgba(255, 253, 249, .6); border: 1px solid var(--ycx-borde); scroll-margin-top: 1rem; }
.ycx-categoria-cab { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.ycx-categoria-icono, .ycx-ficha-icono { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--ycx-arena); color: var(--ycx-terracota-aa); font-size: 1.25rem; }
.ycx-categoria-titulo { font-size: 1.2rem; font-weight: 700; margin: 0 0 .15rem; color: var(--ycx-navy); }
.ycx-categoria-desc { font-size: .92rem; color: rgba(30, 59, 95, .8); margin: 0; }
.ycx-fichas { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ycx-ficha-tarjeta { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 1rem; background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); color: var(--ycx-navy); text-decoration: none; }
.ycx-ficha-tarjeta:hover { border-color: var(--ycx-terracota); color: var(--ycx-navy); }
.ycx-ficha-tarjeta .ycx-ficha-icono { width: 2.25rem; height: 2.25rem; font-size: 1.05rem; }
.ycx-ficha-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ycx-ficha-texto span { font-size: .88rem; color: rgba(30, 59, 95, .8); }
.ycx-ficha-flecha { color: var(--ycx-terracota-aa); }
.ycx-proximamente-tarjeta { margin: 0; padding: .85rem 1rem; border-radius: 1rem; border: 1.5px dashed rgba(30, 59, 95, .3); color: rgba(30, 59, 95, .75); font-weight: 600; text-align: center; }
.ycx-filtros { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Ficha de herramienta */
.ycx-migas .breadcrumb { --bs-breadcrumb-divider-color: rgba(30, 59, 95, .5); --bs-breadcrumb-item-active-color: rgba(30, 59, 95, .75); font-size: .9rem; }
.ycx-migas a { color: var(--ycx-terracota-aa); text-underline-offset: .2em; }
.ycx-lead-ficha { margin-inline: 0; max-width: 44rem; font-size: 1.15rem; }
.ycx-info { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--ycx-superficie); border-left: 4px solid var(--ycx-terracota); max-width: 52rem; }
.ycx-info-icono { color: var(--ycx-terracota-aa); font-size: 1.3rem; line-height: 1.3; }
.ycx-info-titulo { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.ycx-info ul { padding-left: 1.1rem; }
.ycx-info li + li { margin-top: .2rem; }
.ycx-aviso { padding: 1rem; border-radius: 1rem; background: var(--ycx-superficie); border: 1px solid var(--ycx-terracota); }
.ycx-articulo { max-width: 46rem; }
.ycx-articulo h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .35rem; }

/* Herramienta: tipos, panel del formulario y vista previa */
.ycx-herramienta .form-label { font-weight: 600; font-size: .92rem; }
.ycx-herramienta .form-control, .ycx-herramienta .form-select, .ycx-herramienta .input-group-text { border-color: rgba(30, 59, 95, .25); background-color: #fff; }
.ycx-herramienta .form-control:focus { border-color: var(--ycx-terracota); box-shadow: 0 0 0 .2rem rgba(202, 106, 74, .25); }
.ycx-herramienta .form-check-input:checked { background-color: var(--ycx-terracota-aa); border-color: var(--ycx-terracota-aa); }
.ycx-herramienta .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(202, 106, 74, .25); border-color: var(--ycx-terracota); }
.ycx-herramienta .form-text { color: rgba(30, 59, 95, .78); }
.ycx-tipos { display: flex; flex-wrap: wrap; gap: .5rem; }
.ycx-tipo { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--ycx-borde); background: var(--ycx-superficie); color: var(--ycx-navy); font-weight: 600; }
.ycx-tipo i { color: var(--ycx-terracota-aa); }
.ycx-tipo:hover { border-color: var(--ycx-terracota); }
.ycx-tipo.active { background: var(--ycx-terracota-aa); border-color: var(--ycx-terracota-aa); color: #fff; }
.ycx-tipo.active i { color: #fff; }
.ycx-panel { padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-horario { display: grid; gap: .35rem; }
.ycx-horario-dia { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; padding: .4rem .6rem; border-radius: .75rem; background: rgba(246, 239, 228, .6); }
.ycx-horario-nombre { width: 8.2rem; margin: 0; font-weight: 600; }
.ycx-horario-tramo { display: flex; align-items: center; gap: .3rem; }
.ycx-horario-tramo .form-control { width: 6.6rem; }
.ycx-horario-partido { margin: 0; font-size: .9rem; }
.ycx-horario-cerrado { color: rgba(30, 59, 95, .65); font-style: italic; }
.ycx-logo-elegido { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .375rem .75rem; border: 1px solid rgba(30, 59, 95, .25); border-radius: var(--bs-border-radius); background: #fff; min-height: calc(1.5em + .75rem + 2px); }
.ycx-formato:has(input:focus-visible) { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }
.ycx-formatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.ycx-formato { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .45rem .25rem; border-radius: .9rem; border: 2px solid var(--ycx-borde); background: var(--ycx-superficie); cursor: pointer; line-height: 1.2; }
.ycx-formato small { font-size: .7rem; color: rgba(30, 59, 95, .75); }
.ycx-formato.active { border-color: var(--ycx-terracota-aa); background: #fff; }
.ycx-lienzo { display: grid; place-items: center; padding: 1rem; border-radius: var(--ycx-radio); background: rgba(30, 59, 95, .06); }
.ycx-lienzo canvas { display: block; max-width: 100%; height: auto; max-height: min(72vh, 44rem); width: auto; box-shadow: 0 2px 6px rgba(30, 59, 95, .12), 0 12px 32px rgba(30, 59, 95, .14); border-radius: 2px; }
@media (max-width: 991.98px) { .ycx-lienzo canvas { max-height: 60vh; } }
@media (max-width: 575.98px) { .ycx-formatos { grid-template-columns: repeat(2, 1fr); } }

/* Kit QR del mostrador */
.ycx-formatos-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 575.98px) { .ycx-formatos-3 { grid-template-columns: repeat(3, 1fr); } }
.ycx-suelto { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--ycx-borde); font-weight: 500; }
.ycx-suelto:last-child { border-bottom: 0; }

/* Calculadora de precios y rebajas */
.ycx-segmento .btn { --bs-btn-color: var(--ycx-navy); --bs-btn-border-color: rgba(30, 59, 95, .3); --bs-btn-hover-bg: rgba(202, 106, 74, .08); --bs-btn-hover-color: var(--ycx-navy); --bs-btn-hover-border-color: rgba(30, 59, 95, .3); --bs-btn-active-bg: var(--ycx-terracota-aa); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--ycx-terracota-aa); font-weight: 600; }
.ycx-segmento .btn-check:checked + .btn { background: var(--ycx-terracota-aa); border-color: var(--ycx-terracota-aa); color: #fff; }
.ycx-segmento .btn-check:focus-visible + .btn { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }
.ycx-resultado { height: 100%; padding: 1.25rem; border-radius: 1rem; background: var(--ycx-crema); border: 1px solid rgba(202, 106, 74, .3); }
.ycx-resultado-etiqueta { font-size: .85rem; font-weight: 600; color: rgba(30, 59, 95, .8); margin-bottom: .15rem; }
.ycx-resultado-cifra { font-family: var(--ycx-font-display); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--ycx-terracota-aa); margin-bottom: .75rem; }
.ycx-resultado-lista { margin: 0; }
.ycx-resultado-lista > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-top: 1px solid var(--ycx-borde); }
.ycx-resultado-lista dt { font-weight: 500; }
.ycx-resultado-lista dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ycx-resultado-nota { font-size: .85rem; color: rgba(30, 59, 95, .8); margin: .75rem 0 0; }
.ycx-resultado-vacio { color: rgba(30, 59, 95, .7); margin: 0; display: grid; place-items: center; height: 100%; min-height: 6rem; text-align: center; }
.ycx-insignia { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ycx-terracota-aa); color: #fff; font-size: .75rem; font-weight: 700; }

/* Calendario de Xàtiva */
.ycx-respuestas { display: grid; gap: 1rem; }
@media (min-width: 768px) { .ycx-respuestas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ycx-respuestas { grid-template-columns: repeat(4, 1fr); } }
.ycx-respuesta { padding: 1.25rem; border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-respuesta-pregunta { font-size: .95rem; font-weight: 700; color: var(--ycx-navy); margin-bottom: .35rem; }
.ycx-respuesta-si-no { font-family: var(--ycx-font-display); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.15; color: var(--ycx-terracota-aa); margin-bottom: .4rem; }
.ycx-respuesta-texto { font-size: .92rem; color: rgba(30, 59, 95, .88); margin: 0; }
.ycx-fira { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: 1rem; background: rgba(202, 106, 74, .1); border: 1px solid rgba(202, 106, 74, .3); }
.ycx-fira .bi { color: var(--ycx-terracota-aa); font-size: 1.3rem; }
.ycx-suscribir { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0 0; padding: 1.25rem; border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); }
.ycx-suscribir-titulo { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.ycx-suscribir-titulo .bi { color: var(--ycx-terracota-aa); }
.ycx-suscribir-botones { display: flex; flex-wrap: wrap; gap: .5rem; }
.ycx-anio { margin-top: clamp(2rem, 5vw, 3rem); }
.ycx-anio-subtitulo { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; }
.ycx-tabla { --bs-table-bg: var(--ycx-superficie); --bs-table-color: var(--ycx-navy); border-color: var(--ycx-borde); max-width: 52rem; margin-bottom: .5rem; }
.ycx-tabla th { font-size: .85rem; color: rgba(30, 59, 95, .8); }
.ycx-tabla .ycx-local td { font-weight: 600; }
.ycx-tabla .ycx-pasado td { color: rgba(30, 59, 95, .55); }
.ycx-cartel-enlace { font-size: .88rem; font-weight: 600; color: var(--ycx-terracota-aa); white-space: nowrap; text-underline-offset: .2em; }
.ycx-fuente { font-size: .85rem; color: rgba(30, 59, 95, .8); max-width: 52rem; }
.ycx-fuente a { color: var(--ycx-terracota-aa); }
.ycx-enlace-flecha { font-weight: 600; color: var(--ycx-terracota-aa); text-underline-offset: .2em; }
.ycx-tabla-ambito { color: rgba(30, 59, 95, .75); font-weight: 400; }
@media (min-width: 576px) { .ycx-tabla-fecha { white-space: nowrap; } }
@media (max-width: 575.98px) { .ycx-tabla { font-size: .92rem; } .ycx-tabla-fecha { width: 38%; } }

/* Teléfonos útiles */
.ycx-urgencia { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--ycx-radio); background: var(--ycx-terracota-aa); color: #fff; text-decoration: none; max-width: 52rem; }
.ycx-urgencia:hover, .ycx-urgencia:focus-visible { background: var(--ycx-terracota-aa-hover); color: #fff; }
.ycx-urgencia .bi { font-size: 1.6rem; }
.ycx-telefonos-grupo { margin-top: 2rem; scroll-margin-top: 1rem; }
.ycx-telefonos-titulo { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.ycx-telefonos-titulo .bi { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--ycx-arena); color: var(--ycx-terracota-aa); font-size: 1.05rem; flex: none; }
.ycx-telefonos { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 992px) { .ycx-telefonos { grid-template-columns: repeat(2, 1fr); } }
.ycx-telefono { padding: 1rem 1.15rem; border-radius: 1rem; background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-telefono-nombre { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.ycx-telefono-nota { font-size: .9rem; color: rgba(30, 59, 95, .85); margin-bottom: .6rem; }
.ycx-telefono-numeros { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.ycx-telefono-numeros .btn { font-weight: 700; font-variant-numeric: tabular-nums; }
.ycx-telefono-etiqueta { font-weight: 500; }
.ycx-telefono-datos { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; }
.ycx-telefono-datos li { display: flex; gap: .45rem; align-items: baseline; }
.ycx-telefono-datos li + li { margin-top: .2rem; }
.ycx-telefono-datos .bi { color: var(--ycx-terracota-aa); }
.ycx-telefono-datos a { color: var(--ycx-terracota-aa); text-underline-offset: .2em; }
.ycx-telefono-fuente { font-size: .78rem; color: rgba(30, 59, 95, .72); margin: .6rem 0 0; }
.ycx-telefono-fuente a { color: inherit; }

/* Fuentes, al final de las fichas */
.ycx-fuentes { max-width: 46rem; padding-top: 1.25rem; border-top: 1px solid var(--ycx-borde); font-size: .9rem; color: rgba(30, 59, 95, .85); }
.ycx-fuentes-titulo { font-size: 1.05rem; font-weight: 700; color: var(--ycx-navy); margin-bottom: .5rem; }
.ycx-fuentes ul { padding-left: 1.1rem; margin: 0; }
.ycx-fuentes li + li { margin-top: .3rem; }
.ycx-fuentes a { color: var(--ycx-terracota-aa); text-underline-offset: .2em; overflow-wrap: anywhere; }

/* Editor por pasos (calculadora; carteles y kit QR lo comparten): pasos plegables y columna de resultado fija */
.ycx-columna-titulo { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(30, 59, 95, .75); margin-bottom: .6rem; }
.ycx-pestanas { display: flex; flex-wrap: wrap; gap: .25rem 1rem; border-bottom: 1px solid var(--ycx-borde); }
.ycx-pestana { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .15rem; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; color: rgba(30, 59, 95, .8); font-weight: 600; }
.ycx-pestana .bi { color: var(--ycx-terracota-aa); }
.ycx-pestana:hover { color: var(--ycx-navy); }
.ycx-pestana.active { color: var(--ycx-terracota-aa); border-bottom-color: var(--ycx-terracota-aa); }
.ycx-pestana:focus-visible { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }
.ycx-pasos { display: grid; gap: .75rem; }
.ycx-paso { border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-paso-cab { margin: 0; font-size: 1rem; }
.ycx-paso-boton { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .9rem 1.1rem; border: 0; background: none; color: var(--ycx-navy); text-align: left; border-radius: var(--ycx-radio); }
.ycx-paso-boton:focus-visible { outline: 3px solid var(--ycx-navy); outline-offset: -3px; }
.ycx-paso-num { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 2px solid var(--ycx-terracota-aa); color: var(--ycx-terracota-aa); font-weight: 700; font-size: .9rem; }
.ycx-paso.abierto .ycx-paso-num { background: var(--ycx-terracota-aa); color: #fff; }
.ycx-paso-titulo { font-weight: 700; font-size: 1.05rem; }
.ycx-paso-resumen { flex: 1; min-width: 0; font-size: .88rem; color: rgba(30, 59, 95, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycx-paso-falta { color: #B26A00; margin-left: auto; }
.ycx-paso-resumen + .ycx-paso-falta { margin-left: 0; }
.ycx-paso-flecha { margin-left: auto; color: rgba(30, 59, 95, .6); }
.ycx-paso-falta + .ycx-paso-flecha { margin-left: .25rem; }
.ycx-paso-cuerpo { padding: .25rem 1.1rem 1.1rem; border-top: 1px solid var(--ycx-borde); padding-top: 1rem; }
.ycx-campo-cab { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.ycx-campo-cab .form-label { margin-bottom: .35rem; }
.ycx-campo-rango { font-size: .8rem; color: rgba(30, 59, 95, .7); white-space: nowrap; }
.ycx-campo-estado { min-height: 1.4rem; }
.ycx-entendido { margin: .3rem 0 0; font-size: .85rem; color: #2E7D4F; }
.ycx-error { margin: .3rem 0 0; font-size: .85rem; color: #B3261E; font-weight: 500; }
.ycx-pregunta { margin: .35rem 0 0; font-size: .88rem; color: #8A4B00; }
.ycx-opcion { padding: .1rem .55rem; border-radius: 999px; border: 1.5px solid var(--ycx-terracota-aa); background: #fff; color: var(--ycx-terracota-aa); font-weight: 700; font-size: .85rem; }
.ycx-opcion:hover { background: var(--ycx-terracota-aa); color: #fff; }
.ycx-opciones-tarjeta { display: grid; gap: .5rem; }
@media (min-width: 576px) { .ycx-opciones-tarjeta { grid-template-columns: 1fr 1fr; } }
.ycx-opcion-tarjeta { display: flex; gap: .6rem; padding: .75rem .85rem; border-radius: 1rem; border: 2px solid var(--ycx-borde); background: #fff; cursor: pointer; }
.ycx-opcion-tarjeta.active { border-color: var(--ycx-terracota-aa); }
.ycx-opcion-tarjeta:has(input:focus-visible) { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }
.ycx-opcion-tarjeta small { display: block; font-size: .82rem; color: rgba(30, 59, 95, .8); margin-top: .15rem; }
.ycx-opcion-tarjeta .form-check-input { flex: none; margin-top: .2rem; }
.ycx-opcion-tarjeta .form-check-input:checked { background-color: var(--ycx-terracota-aa); border-color: var(--ycx-terracota-aa); }
.ycx-explica { padding: .85rem 1rem; border-radius: 1rem; background: rgba(30, 59, 95, .045); border: 1px solid var(--ycx-borde); }
.ycx-explica-ley { background: #FFF6E5; border-color: #F0D9A8; border-left: 4px solid #C98A1B; }
.ycx-explica-titulo { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
details.ycx-explica summary { cursor: pointer; margin: 0; }
.ycx-explica-titulo .bi { color: var(--ycx-terracota-aa); }
.ycx-cuenta { margin: 0 0 .5rem; font-variant-numeric: tabular-nums; font-size: .92rem; }
.ycx-cuenta > div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.ycx-cuenta dd { margin: 0; }
.ycx-cuenta-total { border-top: 1px solid var(--ycx-borde); margin-top: .2rem; padding-top: .35rem !important; font-weight: 700; }
.ycx-frase { font-size: .92rem; color: var(--ycx-navy); font-weight: 500; }
.ycx-calc-resultado { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.ycx-calc-resultado-cab { display: flex; justify-content: space-between; align-items: center; }
.ycx-calc-resultado .ycx-resultado { background: var(--ycx-superficie); border-color: var(--ycx-borde); box-shadow: var(--ycx-sombra); margin-top: .6rem; height: auto; }
.ycx-barra-partes { display: flex; overflow: hidden; border-radius: .6rem; margin: .25rem 0 .9rem; font-size: .75rem; font-weight: 700; color: #fff; }
.ycx-barra-partes span { padding: .3rem .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ycx-barra-coste { background: rgba(30, 59, 95, .78); }
.ycx-barra-gana { background: var(--ycx-terracota-aa); }
.ycx-antes-ahora { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.ycx-antes { font-family: var(--ycx-font-text); font-style: normal; font-size: 1.1rem; font-weight: 500; color: rgba(30, 59, 95, .65); }
.ycx-antes-ahora .ycx-insignia { font-family: var(--ycx-font-text); font-style: normal; font-size: .95rem; align-self: center; }
.ycx-dd-nota { display: block; font-size: .78rem; font-weight: 500; color: rgba(30, 59, 95, .75); }
.ycx-dd-ok { color: #2E7D4F; }
.ycx-envases { display: grid; gap: .5rem; }
.ycx-envase { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: .75rem; padding: .75rem; border-radius: 1rem; background: rgba(246, 239, 228, .6); }
.ycx-envase-num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 999px; background: var(--ycx-arena); color: var(--ycx-terracota-aa); font-weight: 700; flex: none; }
.ycx-envase > .ycx-envase-num { margin-top: 1.9rem; }
.ycx-envase-cantidad { display: grid; grid-template-columns: minmax(0, 1fr) 5.2rem; gap: .4rem; align-items: start; }
.ycx-envase-cantidad .form-select { margin-top: 1.9rem; }
.ycx-envases-resultado { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ycx-envases-resultado li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.ycx-barra-resultado { display: none; }
@media (max-width: 575.98px) {
  .ycx-envase { grid-template-columns: auto minmax(0, 1fr); }
  .ycx-envase-cantidad { grid-column: 2; }
}
/* Móvil: el resultado es una hoja que sube desde abajo; la barra fija enseña la cifra principal. */
@media (max-width: 991.98px) {
  .ycx-calculadora { padding-bottom: 4.5rem; }
  .ycx-barra-resultado { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: var(--ycx-superficie); border-top: 1px solid var(--ycx-borde); box-shadow: 0 -6px 20px rgba(30, 59, 95, .12); }
  .ycx-barra-etiqueta { display: block; font-size: .78rem; color: rgba(30, 59, 95, .8); }
  .ycx-barra-cifra { font-family: var(--ycx-font-display); font-style: italic; font-size: 1.5rem; color: var(--ycx-terracota-aa); line-height: 1.1; }
  .ycx-calc-resultado { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1050; max-height: 85vh; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--ycx-crema); border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -10px 30px rgba(30, 59, 95, .25); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
  .ycx-calc-resultado.abierta { transform: none; visibility: visible; }
  .ycx-hoja-fondo { position: fixed; inset: 0; z-index: 1040; background: rgba(30, 59, 95, .35); }
  body.ycx-hoja-abierta { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ycx-calc-resultado { transition: none; } }

/* Editor de carteles y kit QR: salida fija a la derecha (vista previa, formato y descarga); en el móvil, hoja */
.ycx-contador { font-size: .8rem; color: rgba(30, 59, 95, .7); white-space: nowrap; }
.ycx-contador-poco { color: #9A5B00; font-weight: 600; }
.ycx-contador-limite { color: #B3261E; font-weight: 700; }
.ycx-atenuado { opacity: .55; }
.ycx-salida { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.ycx-salida-tarjeta { margin-top: .6rem; padding: 1rem; border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-salida .ycx-lienzo { padding: .75rem; }
.ycx-salida .ycx-lienzo canvas { max-height: clamp(260px, calc(100vh - 430px), 470px); }
.ycx-candado { font-size: .8rem; color: rgba(30, 59, 95, .8); margin: .6rem 0 0; }
.ycx-salida-paso { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ycx-terracota-aa); margin: 1rem 0 .45rem; padding-top: .8rem; border-top: 1px solid var(--ycx-borde); }
.ycx-ver-flotante { display: none; }
.ycx-temas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 576px) { .ycx-temas { grid-template-columns: repeat(4, 1fr); } }
.ycx-tema { display: flex; flex-direction: column; gap: .45rem; padding: .5rem; border-radius: 1rem; border: 2px solid var(--ycx-borde); background: #fff; cursor: pointer; font-weight: 600; font-size: .88rem; text-align: center; }
.ycx-tema.active { border-color: var(--ycx-terracota-aa); background: #FFF8F4; }
.ycx-tema:has(input:focus-visible) { outline: 3px solid var(--ycx-navy); outline-offset: 2px; }
.ycx-tema-muestra { display: flex; height: 1.9rem; border-radius: .55rem; overflow: hidden; border: 1px solid var(--ycx-borde); }
.ycx-tema-muestra span { flex: 1; }
.ycx-colores { list-style: none; padding: 0; margin: 0 0 .75rem; }
.ycx-color { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--ycx-borde); }
.ycx-color label { margin: 0; cursor: pointer; }
.ycx-color small { display: block; font-size: .8rem; color: rgba(30, 59, 95, .78); }
.ycx-color-muestra { width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid var(--ycx-borde); border-radius: 999px; background: none; cursor: pointer; }
.ycx-color-muestra::-webkit-color-swatch-wrapper { padding: 0; }
.ycx-color-muestra::-webkit-color-swatch { border: 0; border-radius: 999px; }
.ycx-color-muestra::-moz-color-swatch { border: 0; border-radius: 999px; }
.ycx-color-hex { width: 6.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.ycx-paletas { display: flex; flex-wrap: wrap; gap: .45rem; }
.ycx-paleta { display: inline-flex; width: 3.2rem; height: 1.6rem; padding: 0; border-radius: 999px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ycx-borde); }
.ycx-paleta span { flex: 1; }
.ycx-paleta:hover, .ycx-paleta:focus-visible { box-shadow: 0 0 0 2px var(--ycx-terracota-aa); outline: none; }
@media (max-width: 991.98px) {
  .ycx-editor { padding-bottom: 4rem; }
  .ycx-ver-flotante { display: inline-flex; align-items: center; position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1030; border-radius: 999px; box-shadow: 0 6px 18px rgba(30, 59, 95, .25); }
  .ycx-salida { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1050; max-height: 92vh; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--ycx-crema); border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -10px 30px rgba(30, 59, 95, .25); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
  .ycx-salida.abierta { transform: none; visibility: visible; }
  .ycx-salida .ycx-lienzo canvas { max-height: 50vh; }
}
@media (prefers-reduced-motion: reduce) { .ycx-salida { transition: none; } }

/* Kit QR: lista de códigos que se ordena */
.ycx-codigos { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ycx-codigo { border-radius: 1rem; border: 1px solid var(--ycx-borde); background: #fff; }
.ycx-codigo.abierto { border-color: rgba(202, 106, 74, .6); box-shadow: 0 0 0 1px rgba(202, 106, 74, .35); }
.ycx-codigo.sortable-ghost { opacity: .4; }
.ycx-codigo-cab { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; }
.ycx-codigo-asa { cursor: grab; color: rgba(30, 59, 95, .5); font-size: 1.2rem; padding: .25rem; touch-action: none; }
.ycx-codigo-num { flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--ycx-navy); color: #fff; font-size: .8rem; font-weight: 700; }
.ycx-codigo-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; border: 0; background: none; padding: .2rem; text-align: left; color: var(--ycx-navy); }
.ycx-codigo-icono { color: var(--ycx-terracota-aa); font-size: 1.1rem; }
.ycx-codigo-texto { display: flex; flex-direction: column; min-width: 0; }
.ycx-codigo-texto small { font-size: .8rem; color: rgba(30, 59, 95, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycx-codigo-falta { color: #9A5B00 !important; font-weight: 600; }
.ycx-icono-boton { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; border: 1px solid var(--ycx-borde); background: #fff; color: var(--ycx-navy); }
.ycx-icono-boton:hover:not(:disabled) { border-color: var(--ycx-terracota); }
.ycx-icono-boton:disabled { opacity: .35; }
.ycx-codigo-flecha { border-color: transparent; }
.ycx-destacado { white-space: nowrap; }
.ycx-codigo-datos { margin: 0; padding: .25rem .9rem 1rem; border-top: 1px solid var(--ycx-borde); }
.ycx-anadir { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; }
.ycx-chip { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; border: 1.5px dashed rgba(168, 79, 53, .6); background: #fff; color: var(--ycx-terracota-aa); font-size: .85rem; font-weight: 600; }
.ycx-chip:hover { border-style: solid; }
.ycx-ejemplos { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ycx-burbuja { display: flex; flex-direction: column; gap: .3rem; padding: .6rem .75rem; border-radius: 1rem; background: #EFEAE2; }
.ycx-burbuja-etiqueta { font-size: .75rem; font-weight: 600; color: rgba(30, 59, 95, .7); }
.ycx-burbuja-caja { align-self: stretch; padding: .45rem .8rem; border-radius: 999px; background: #fff; color: #111; font-size: .9rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.ycx-prefijo { flex: 0 0 auto; max-width: 11rem; }
.ycx-formato.desactivado { opacity: .45; cursor: not-allowed; }
.ycx-sueltos-boton { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .5rem 0; border: 0; border-top: 1px solid var(--ycx-borde); border-bottom: 1px solid var(--ycx-borde); background: none; color: var(--ycx-navy); font-weight: 700; }
@media (max-width: 575.98px) {
  .ycx-codigo-cab { flex-wrap: wrap; }
  .ycx-codigo-abrir { flex-basis: calc(100% - 5rem); }
  .ycx-destacado { order: 5; }
}
/* En una rejilla, los elementos no se encogen por debajo de su contenido salvo con min-width: 0. */
.ycx-paso, .ycx-codigo, .ycx-codigo-datos > * { min-width: 0; }
.ycx-paso-titulo { min-width: 0; }
@media (max-width: 575.98px) {
  .ycx-paso-boton { flex-wrap: wrap; }
  .ycx-paso-resumen { flex-basis: 100%; order: 5; padding-left: 2.65rem; }
}

/* Kit QR: botón «Quitar este código», bien visible */
.ycx-boton-quitar { --bs-btn-color: #B3261E; --bs-btn-border-color: #B3261E; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #B3261E; --bs-btn-hover-border-color: #B3261E; --bs-btn-active-color: #fff; --bs-btn-active-bg: #8C1D17; --bs-btn-active-border-color: #8C1D17; font-weight: 600; }
.ycx-faltan { margin: .75rem 0 0; padding: .6rem .8rem; border-radius: .8rem; background: #FFF6E5; border: 1px solid #F0D9A8; font-size: .85rem; color: #6B4200; }
.ycx-faltan ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/*
 * Móvil: el enlace «Privacidad» de InMobi (#qc-cmp2-persistent-link, fijo abajo a la derecha, 30 px de alto) tiene que
 * verse siempre. Lo nuestro se aparta: «Ver cartel» va por encima; la barra de la calculadora ocupa todo el ancho,
 * así que en esas páginas el enlace sube por encima de la barra; y las hojas dejan sitio abajo.
 */
@media (max-width: 991.98px) {
  .ycx-ver-flotante { bottom: calc(3rem + env(safe-area-inset-bottom)); }
  body:has(.ycx-barra-resultado) #qc-cmp2-persistent-link { bottom: calc(4.6rem + env(safe-area-inset-bottom)) !important; }
  .ycx-salida, .ycx-calc-resultado { padding-bottom: calc(2.75rem + env(safe-area-inset-bottom)); }
  body:has(.ycx-barra-resultado) .ycx-calc-resultado { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}
.ycx-estado-ok { color: #2E7D4F; font-weight: 700; }
.ycx-estado-mal { color: #B3261E; font-weight: 700; }

/* El tiempo en Xàtiva */
.ycx-tiempo { display: grid; gap: 1rem; }
@media (min-width: 992px) { .ycx-tiempo { grid-template-columns: 2fr 1fr; align-items: start; } }
.ycx-tiempo-hoy { padding: 1.25rem; border-radius: var(--ycx-radio); background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); box-shadow: var(--ycx-sombra); }
.ycx-tiempo-titulo { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.ycx-tiempo-principal { display: flex; align-items: center; gap: 1rem; }
.ycx-tiempo-icono { font-size: 4rem; color: var(--ycx-terracota-aa); line-height: 1; }
.ycx-tiempo-cielo { font-weight: 600; margin: 0; }
.ycx-tiempo-temperaturas { margin: 0; font-variant-numeric: tabular-nums; }
.ycx-tiempo-max { font-family: var(--ycx-font-display); font-style: italic; font-weight: 600; font-size: 2.6rem; color: var(--ycx-terracota-aa); }
.ycx-tiempo-min { font-size: 1.4rem; color: rgba(30, 59, 95, .75); }
.ycx-tiempo-datos { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; }
.ycx-tiempo-datos dt { font-size: .8rem; font-weight: 600; color: rgba(30, 59, 95, .75); }
.ycx-tiempo-datos dt .bi { color: var(--ycx-terracota-aa); }
.ycx-tiempo-datos dd { margin: 0; font-weight: 700; }
.ycx-tiempo-franjas { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; }
.ycx-tiempo-franjas li { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem; border-radius: 1rem; background: rgba(246, 239, 228, .7); text-align: center; font-size: .9rem; }
.ycx-tiempo-franjas .bi:first-of-type { font-size: 1.6rem; color: var(--ycx-terracota-aa); }
.ycx-tiempo-franja-hora { font-size: .78rem; font-weight: 600; color: rgba(30, 59, 95, .75); }
.ycx-tiempo-dias { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
.ycx-tiempo-dias li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 6.5rem 4.5rem; align-items: center; gap: .5rem 1rem; padding: .7rem .25rem; border-bottom: 1px solid var(--ycx-borde); }
.ycx-tiempo-dia-nombre { font-weight: 700; }
.ycx-tiempo-dia-cielo .bi { color: var(--ycx-terracota-aa); font-size: 1.2rem; margin-right: .25rem; }
.ycx-tiempo-dia-temp, .ycx-tiempo-dia-lluvia { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
@media (max-width: 575.98px) {
  .ycx-tiempo-dias li { grid-template-columns: 1fr auto; }
  .ycx-tiempo-dia-cielo { grid-column: 1; font-size: .9rem; }
}
.ycx-tiempo-franja { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 1rem; background: var(--ycx-superficie); border: 1px solid var(--ycx-borde); color: var(--ycx-navy); text-decoration: none; }
.ycx-tiempo-franja:hover { border-color: var(--ycx-terracota); color: var(--ycx-navy); }
.ycx-tiempo-franja-icono { font-size: 2rem; color: var(--ycx-terracota-aa); }
.ycx-tiempo-franja-texto { flex: 1; }
.ycx-tiempo-franja-mas { font-weight: 600; color: var(--ycx-terracota-aa); white-space: nowrap; }
@media (max-width: 575.98px) { .ycx-tiempo-franja-mas { display: none; } }
.ycx-tiempo-a-las { font-size: .75rem; color: rgba(30, 59, 95, .7); }
