/* 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; }
