/* ============================================================
   Coloquio de los Perros — design system (vanilla CSS)
   Ported from the locked "Raíces y Misterios" SuperDesign variant.
   Fonts swapped to self-hosted Piazzolla (display) + Onest (body).
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/piazzolla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/piazzolla-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/piazzolla-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/piazzolla-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/onest-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/onest-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/onest-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ivory: #faf9f6;
  --parchment: #f2efe9;
  --ink: #0c0c0c;
  --aubergine: #211426;     /* primary surface */
  --deep-violet: #291b30;
  --violet-light: #3d2547;  /* lifted violet for cards/sections */
  --marigold: #eab308;
  --marigold-soft: rgba(234, 179, 8, 0.2);
  --serif: "Piazzolla", Georgia, serif;
  --sans: "Onest", system-ui, sans-serif;
  --maxw: 1200px;
  --gap: 2rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  background: var(--aubergine);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Reusable type / ornaments ---------- */
.serif { font-family: var(--serif); }
.italic { font-style: italic; font-weight: 300; }
.gold { color: var(--marigold); }
.caption-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--marigold); border-bottom: 1px solid var(--marigold);
  display: inline-block; padding-bottom: 2px; margin-bottom: 0.75rem;
}
.section-number {
  font-family: var(--serif); font-style: italic; font-size: 5rem; line-height: 1;
  color: var(--marigold); opacity: 0.18; display: block; margin-bottom: -1.5rem;
}
.engraving-line { height: 2px; background: linear-gradient(90deg, transparent, var(--marigold), transparent); opacity: 0.3; margin: 2rem 0; border: 0; }
.baroque-flourish {
  height: 20px; width: 110px; margin-bottom: 1.5rem;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg width='110' height='20' viewBox='0 0 110 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q27 0 55 10 Q83 20 110 10' stroke='%23EAB308' stroke-width='0.6' fill='none' opacity='0.5'/%3E%3Ccircle cx='55' cy='10' r='2' fill='%23EAB308' opacity='0.6'/%3E%3C/svg%3E");
}
.talavera-accent {
  background-image: radial-gradient(var(--marigold) 0.5px, transparent 0.5px);
  background-size: 14px 14px; opacity: 0.08;
}
.museum-border { border: 1px solid var(--marigold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 1rem 2rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3em; cursor: pointer; transition: all .25s;
  background: transparent; border: 0; font-family: var(--sans); color: var(--ivory);
}
.btn--solid { background: var(--marigold); color: var(--aubergine); box-shadow: 4px 4px 0 rgba(255,255,255,.08); }
.btn--solid:hover { background: #f5c531; }
.btn--ghost { color: var(--marigold); border-bottom: 1px solid var(--marigold-soft); padding: 0 0 .3rem; letter-spacing: .3em; }
.btn--ghost:hover { color: var(--ivory); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--aubergine);
  border-bottom: 1px solid var(--marigold-soft); padding: 1.25rem 0;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand__logo { width: 3.25rem; height: 3.25rem; flex: none; color: var(--marigold); }
.brand__logo svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; display: block; }
.brand__tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.35em; color: rgba(234,179,8,.6); }
.main-nav { display: flex; gap: 2.25rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; }
.main-nav a { transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--marigold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--marigold); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; padding-block: 4rem; }
.hero__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: 0; }
.hero__bg { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(27,16,35,.95) 0%, rgba(27,16,35,.78) 42%, rgba(27,16,35,.36) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, #000 84%, transparent);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero__title { font-size: clamp(3.5rem, 9vw, 8rem); color: var(--ivory); margin-bottom: 2rem; }
.hero__lede { max-width: 38rem; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; color: var(--parchment); opacity: .85; margin-bottom: 3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.hero__feature {
  padding: 2.5rem; background: rgba(61,37,71,.8); border: 1px solid rgba(234,179,8,.3);
  backdrop-filter: blur(6px);
}
.hero__feature h3 { font-size: 2rem; font-style: italic; font-weight: 300; margin-bottom: 1rem; }
.hero__feature p { font-size: .9rem; font-weight: 300; color: rgba(242,239,233,.7); margin-bottom: 1.5rem; }
.feature-foot { display: flex; justify-content: space-between; align-items: center; }
.feature-foot__meta { font-size: .6rem; text-transform: uppercase; letter-spacing: .2em; opacity: .4; }
.round-link { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid rgba(234,179,8,.5); border-radius: 50%; transition: all .25s; }
.round-link:hover { background: var(--marigold); color: var(--aubergine); }

/* ---------- Layout helpers ---------- */
.editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; }
.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section--parchment { background: var(--parchment); color: var(--ink); }
.section--violet { background: var(--deep-violet); }
.section--ink { background: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 4rem; }
.section-head__intro { max-width: 24rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; opacity: .6; }

/* ---------- Tools grid ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(0,0,0,.1); }
.tool { padding: 3rem 2.25rem; border-right: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); transition: background .25s; }
.tool:hover { background: #fff; }
.tool__icon { width: 2rem; height: 2rem; color: #b07d0a; margin-bottom: 1.5rem; }
.tool h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.tool:hover h3 { color: #b07d0a; }
.tool p { font-size: .78rem; font-weight: 300; font-style: italic; opacity: .6; margin: 0; }

/* ---------- Featured gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 3rem; }
.exhibit__frame { aspect-ratio: 3/4; overflow: hidden; border: 1px solid rgba(234,179,8,.1); margin-bottom: 2rem; position: relative; background: var(--violet-light); }
.exhibit__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .7s, transform 1s; }
.exhibit:hover .exhibit__frame img { filter: grayscale(0); transform: scale(1.03); }
.exhibit h3 { font-size: 1.7rem; font-style: italic; margin-bottom: .8rem; }
.exhibit p { font-size: .85rem; font-weight: 300; opacity: .6; margin-bottom: 1.2rem; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__rule { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.manifesto__rule span:not(.label) { height: 1px; width: 3rem; background: rgba(234,179,8,.4); }
.manifesto__rule .label { color: var(--marigold); font-size: .6rem; letter-spacing: .6em; text-transform: uppercase; }
.manifesto h2 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 300; font-style: italic; line-height: 1.15; margin-bottom: 3rem; }
.manifesto__sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; font-weight: 300; opacity: .55; max-width: 40rem; margin-inline: auto; line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); border-top: 1px solid rgba(234,179,8,.1); padding-block: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; }
.footer-col h4 { font-family: var(--sans); }
.footer-col ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.footer-col a { font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; opacity: .45; transition: all .2s; }
.footer-col a:hover { opacity: 1; color: var(--marigold); }
.footer-about p { font-size: .75rem; font-weight: 300; opacity: .4; max-width: 22rem; }
.footer-bottom { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid rgba(234,179,8,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; opacity: .4; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { letter-spacing: .25em; transition: color .2s, opacity .2s; }
.footer-legal a:hover { opacity: 1; color: var(--marigold); }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .col-8, .col-4 { grid-column: span 12; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses to a toggle below 980px (7 items need room) */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--deep-violet);
    border-bottom: 1px solid var(--marigold-soft); padding: .5rem 0;
  }
  .site-header { position: sticky; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .9rem clamp(1.25rem, 4vw, 2.5rem); border-top: 1px solid rgba(234,179,8,.08); }
}
@media (max-width: 720px) {
  .tools { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   Content / page styles
   ============================================================ */
.section--narrow { max-width: 64rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.breadcrumb { max-width: 64rem; margin: 1.5rem auto 0; padding-inline: clamp(1.25rem, 4vw, 2.5rem); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; opacity: .55; }
.breadcrumb a:hover { color: var(--marigold); }
.breadcrumb [aria-current] { color: var(--marigold); }

.hub-head { margin-bottom: 3rem; }
.hub-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-block: .5rem; }
.hub-head__lede { font-size: 1.1rem; font-weight: 300; opacity: .8; max-width: 42rem; }
.hub-head__lede a, .prose a, .entry__lede a, .entry__date a { color: var(--marigold); text-decoration: underline; text-underline-offset: 3px; }

/* Entry / article */
.entry__head { margin-bottom: 2.5rem; }
.entry__title { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-block: .75rem; }
.entry__lede { font-size: 1.25rem; font-weight: 300; opacity: .85; max-width: 44rem; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; border-top: 1px solid var(--marigold-soft); padding-top: 1.5rem; }
.entry__meta dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--marigold); margin-bottom: .35rem; }
.entry__meta dd { margin: 0; font-size: .9rem; }
.entry__meta dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-right: .5rem; }
.prose { font-size: 1.05rem; font-weight: 300; line-height: 1.85; max-width: 42rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--marigold); }
.prose strong { font-weight: 500; color: var(--ivory); }
.toc { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 2rem 0 3rem; padding: 1rem 0; border-block: 1px solid var(--marigold-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.toc a { opacity: .6; } .toc a:hover { opacity: 1; color: var(--marigold); }

.related { margin-top: 4rem; }
.related__grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related__grid a { display: block; padding: 1.5rem; background: var(--aubergine); height: 100%; }
.related__grid a:hover { background: var(--violet-light); }
.related__grid strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.related__grid span { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; opacity: .5; }
.entry__fuentes { margin-top: 3.5rem; border-top: 1px solid var(--marigold-soft); padding-top: 1.5rem; }
.entry__fuentes ul { padding-left: 1.1rem; font-size: .85rem; font-weight: 300; opacity: .8; }
.entry__fuentes li { margin-bottom: .5rem; }
.entry__date { font-size: .8rem; opacity: .55; margin-top: 1rem; }

/* Author byline (light EEAT) */
.byline { display: flex; gap: 1.25rem; align-items: flex-start; margin: 3rem 0 0; padding: 1.5rem; border: 1px solid var(--marigold-soft); background: var(--deep-violet); }
.byline__foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--marigold-soft); flex: none; }
.byline__by { font-size: .6rem; text-transform: uppercase; letter-spacing: .2em; color: var(--marigold); display: block; }
.byline__name { display: block; font-size: 1.2rem; line-height: 1.2; }
.byline__rol { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin-bottom: .5rem; }
.byline__bio { font-size: .85rem; font-weight: 300; opacity: .82; margin: 0; }

/* Finder + grids */
.finder { margin-bottom: 2.5rem; }
.finder__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.finder label { display: flex; flex-direction: column; font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--marigold); gap: .4rem; }
.finder select, .finder input { font-family: var(--sans); font-size: .95rem; padding: .7rem .8rem; background: var(--deep-violet); color: var(--ivory); border: 1px solid var(--marigold-soft); }
.finder__count { font-size: .75rem; opacity: .6; margin-top: .8rem; }
.leyenda-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.leyenda-card a, .leyenda-list__item a, .related__grid a, .motivo-list__item a { border: 1px solid var(--marigold-soft); }
.leyenda-card a { display: block; padding: 1.75rem; background: var(--aubergine); height: 100%; }
.leyenda-card a:hover { background: var(--violet-light); }
.leyenda-card h2 { font-size: 1.4rem; margin: .3rem 0 .5rem; }
.leyenda-card p { font-size: .85rem; font-weight: 300; opacity: .7; margin: 0; }
.leyenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.leyenda-list__item a { display: block; padding: 1.75rem; background: var(--aubergine); }
.leyenda-list__item a:hover { background: var(--violet-light); }
.leyenda-list__item h2 { font-size: 1.6rem; margin: .3rem 0 .5rem; }
.leyenda-list__item p { font-size: .9rem; font-weight: 300; opacity: .7; margin: 0; }

/* Motif index */
.motivo-list { list-style: none; padding: 0; margin: 0; counter-reset: none; display: grid; gap: 1rem; }
.motivo-list__item a { display: flex; gap: 1.5rem; padding: 2rem; background: var(--aubergine); align-items: flex-start; }
.motivo-list__item a:hover { background: var(--violet-light); }
.motivo-list__num { font-size: 2.5rem; font-style: italic; color: var(--marigold); opacity: .4; line-height: 1; }
.motivo-list__item h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.motivo-list__item p { font-size: .9rem; font-weight: 300; opacity: .7; margin: 0 0 .5rem; }
.motivo-list__count { font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--marigold); }
.motivo-list__examples { display: block; font-size: .75rem; font-style: italic; opacity: .6; margin-top: .4rem; }
.motivos-note { font-size: .82rem; font-weight: 300; opacity: .55; margin-top: .9rem; max-width: 42rem; }
.motivo-rasgos, .motivo-variantes { margin-top: 2.5rem; }
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: .8rem 0 0; }
.tag-row li { font-size: .75rem; padding: .35rem .8rem; border: 1px solid var(--marigold-soft); border-radius: 2px; }
.tag-row li a:hover { color: var(--marigold); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; }
.compare-table th, .compare-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--marigold-soft); }
.compare-table th { font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--marigold); }
.compare-table a { text-decoration: underline; text-underline-offset: 3px; }

/* Cortes */
.potencias { margin: 2rem 0 3rem; }
.potencias__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.potencia { padding: 1.5rem; }
.potencia h2 { font-size: 1.5rem; color: var(--marigold); }
.potencia p { font-size: .85rem; font-weight: 300; opacity: .75; margin: .5rem 0 0; }
.cortes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.corte { padding: 1.75rem; }
.corte h3 { font-size: 1.5rem; margin: .3rem 0; }
.corte__meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold); opacity: .8; }
.corte p { font-size: .9rem; font-weight: 300; opacity: .8; }
.note-verify { font-size: .72rem; font-style: italic; opacity: .55; }

/* Bibliography */
.biblio__group-title { font-size: 1.5rem; color: var(--marigold); max-width: 42rem; margin: 3rem 0 1.5rem; }
.biblio__group-title:first-of-type { margin-top: 2.5rem; }
.biblio { padding-left: 1.4rem; display: grid; gap: 1.5rem; max-width: 42rem; }
.biblio__cite { font-size: 1rem; margin: 0; }
.biblio__cite em { color: var(--marigold); font-style: italic; }
.biblio__note { font-size: .85rem; font-weight: 300; opacity: .7; margin: .4rem 0 0; }
.biblio__link a { color: var(--marigold); text-decoration: underline; font-size: .8rem; }

/* Daily / map / compare mounts */
.daily__streak { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--marigold); margin-bottom: 1.5rem; }
.daily__rotation { display: grid; grid-template-columns: 1fr 2.3fr 1fr; gap: 1.25rem; align-items: center; }
.daily { padding: 2.25rem; }
.daily__figure { margin: 0 0 1.25rem; }
.daily__figure img { display: block; width: 100%; height: auto; border: 1px solid var(--marigold-soft); }
.daily h2 { font-size: 2rem; color: var(--marigold); margin: .35rem 0 .7rem; }
.daily__resumen { font-size: 1rem; font-weight: 300; opacity: .85; }
.daily__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.daily__motif { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--marigold); border-bottom: 1px solid var(--marigold-soft); padding-bottom: .2rem; }
.daily__motif:hover { color: var(--ivory); }
.daily-mini { display: block; padding: 1rem; border: 1px solid var(--marigold-soft); background: var(--deep-violet); transition: background .2s; }
.daily-mini:hover { background: var(--violet-light); }
.daily-mini__label { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .2em; color: var(--marigold); margin-bottom: .4rem; }
.daily-mini__name { display: block; font-size: 1.05rem; line-height: 1.2; }
.daily-mini__pais { display: block; font-size: .72rem; opacity: .55; margin-top: .25rem; }
@media (max-width: 720px) { .daily__rotation { grid-template-columns: 1fr; } .daily { order: -1; } }
.mapa-mount:empty, .comparador:empty { display: none; }
.mapa-pais { margin-bottom: 1.5rem; }
.mapa-pais h2 { font-size: 1.3rem; color: var(--marigold); }

@media (max-width: 1024px) {
  .leyenda-grid { grid-template-columns: repeat(2, 1fr); }
  .cortes-grid, .potencias__row, .related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .finder__row { grid-template-columns: 1fr; }
  .leyenda-grid, .cortes-grid, .potencias__row, .related__grid { grid-template-columns: 1fr; }
  .entry__meta { gap: 1.25rem; }
}

/* ============================================================
   Interactive widgets (#6)
   ============================================================ */
/* Embed snippet */
.embed { margin: 2.5rem 0; border: 1px solid var(--marigold-soft); padding: 1rem 1.25rem; }
.embed summary { cursor: pointer; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--marigold); }
.embed__hint { font-size: .8rem; font-weight: 300; opacity: .7; margin: .8rem 0 .5rem; }
.embed__code { width: 100%; font-family: ui-monospace, monospace; font-size: .75rem; background: var(--ink); color: var(--parchment); border: 1px solid var(--marigold-soft); padding: .6rem; resize: vertical; }

/* Compare tool */
.cmp__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.cmp__controls label { display: flex; flex-direction: column; gap: .4rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--marigold); }
.cmp__controls select { font-family: var(--sans); font-size: .95rem; padding: .7rem .8rem; background: var(--deep-violet); color: var(--ivory); border: 1px solid var(--marigold-soft); }
.cmp__verdict { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--marigold-soft); margin-bottom: 1.25rem; }
.cmp__verdict strong { font-style: normal; color: var(--marigold); }
.cmp__table th:first-child { color: var(--marigold); font-size: .62rem; text-transform: uppercase; width: 7rem; }
.cmp-same td { color: var(--marigold); }
.cmp-tag { display: inline-block; font-size: .72rem; padding: .2rem .55rem; border: 1px solid var(--marigold-soft); border-radius: 2px; margin: .15rem .15rem 0 0; }
.cmp-tag--shared { background: var(--marigold); color: var(--aubergine); border-color: var(--marigold); }
.cmp-suggest { margin: 1.5rem 0; }
.cmp-suggest__row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.cmp-suggest__row button { font-family: var(--sans); font-size: .72rem; letter-spacing: .03em; padding: .5rem .9rem; background: transparent; color: var(--ivory); border: 1px solid var(--marigold-soft); cursor: pointer; transition: all .2s; }
.cmp-suggest__row button:hover { background: var(--marigold); color: var(--aubergine); border-color: var(--marigold); }
.cmp__links { margin-top: 1rem; font-size: .85rem; }
.cmp__links a { color: var(--marigold); text-decoration: underline; }

/* Map */
.mapa { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; margin-bottom: 1rem; }
.mapa__svg { width: 100%; height: auto; border: 1px solid var(--marigold-soft); background: var(--aubergine); }
.mapa__country { fill: #4a3357; stroke: #1b1023; stroke-width: 0.6; cursor: pointer; transition: fill .18s; outline: none; }
.mapa__country:hover, .mapa__country:focus { fill: #6b4a7a; }
.mapa__country.is-active { fill: var(--marigold); stroke: var(--marigold); }
.mapa__label { fill: #efe7f4; font-family: var(--sans); font-size: 8.5px; text-anchor: middle; pointer-events: none; letter-spacing: .02em; paint-order: stroke; stroke: #1b1023; stroke-width: 2.2px; stroke-linejoin: round; }
.mapa__label--region { fill: var(--marigold); font-style: italic; font-size: 8px; }
.mapa__region { cursor: pointer; outline: none; }
.mapa__region circle { fill: var(--marigold); fill-opacity: .65; transition: fill-opacity .18s; }
.mapa__region:hover circle, .mapa__region:focus circle, .mapa__region.is-active circle { fill-opacity: 1; }
.mapa__panel { border: 1px solid var(--marigold-soft); padding: 1.5rem; min-height: 14rem; }
.mapa__hint { font-style: italic; opacity: .55; font-weight: 300; }
.mapa__list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .8rem; }
.mapa__list a strong { display: block; font-family: var(--serif); }
.mapa__list a span { font-size: .8rem; font-weight: 300; opacity: .6; }
.mapa__list a:hover strong { color: var(--marigold); }
.mapa-fallback { margin-top: 2.5rem; opacity: .85; }

/* Cortes filter */
.cortes-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.cortes-filter button { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; padding: .45rem .9rem; background: transparent; color: var(--ivory); border: 1px solid var(--marigold-soft); cursor: pointer; transition: all .2s; }
.cortes-filter button.is-active, .cortes-filter button:hover { background: var(--marigold); color: var(--aubergine); }

/* Quiz */
.juego { border: 1px solid var(--marigold-soft); padding: 2rem; }
.juego__scores { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--marigold); margin-bottom: 1.5rem; }
.juego__type { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--marigold); margin-bottom: .6rem; }
.juego__clue { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.4; margin-bottom: 1.5rem; }
.juego__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.juego__opt { text-align: left; font-family: var(--sans); font-size: .95rem; color: var(--ivory); background: transparent; border: 1px solid var(--marigold-soft); border-radius: 0; padding: .9rem 1rem; letter-spacing: .03em; cursor: pointer; transition: border-color .15s, background .15s; }
.juego__opt:hover:not(:disabled) { border-color: var(--marigold); background: rgba(234,179,8,.06); }
.juego__opt:disabled { cursor: default; opacity: .5; background: transparent; color: var(--ivory); }
.juego__opt.is-correct { background: var(--marigold); color: var(--aubergine); border-color: var(--marigold); opacity: 1; }
.juego__opt.is-wrong { background: rgba(192,86,63,.18); border-color: #c0563f; color: #e89a86; opacity: 1; }
.juego__status { margin-top: 1.25rem; font-size: .95rem; min-height: 1.5rem; }
.juego__next { margin-left: .75rem; }

@media (max-width: 720px) {
  .mapa, .cmp__controls, .juego__opts { grid-template-columns: 1fr; }
}

/* Motivo band on the folclore hub */
.motivo-band { margin: 2.5rem 0 3rem; padding: 2rem; border: 1px solid var(--marigold-soft); background: var(--deep-violet); }
.motivo-band__head p { font-size: .92rem; font-weight: 300; opacity: .8; max-width: 44rem; margin: .4rem 0 1.5rem; }
.motivo-band__head a { color: var(--marigold); text-decoration: underline; text-underline-offset: 3px; }
.motivo-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.motivo-chips a { display: block; padding: .9rem 1rem; border: 1px solid var(--marigold-soft); background: var(--aubergine); height: 100%; transition: all .2s; }
.motivo-chips a:hover { background: var(--violet-light); border-color: var(--marigold); }
.motivo-chips__name { display: block; font-size: 1.02rem; line-height: 1.2; margin-bottom: .35rem; }
.motivo-chips__count { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold); opacity: .85; }
@media (max-width: 1024px) { .motivo-chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .motivo-chips { grid-template-columns: 1fr; } }

/* Timeline */
.crono-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.crono-filter button { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .45rem .9rem; background: transparent; color: var(--ivory); border: 1px solid var(--marigold-soft); cursor: pointer; transition: all .2s; }
.crono-filter button.is-active, .crono-filter button:hover { background: var(--marigold); color: var(--aubergine); }
.timeline { list-style: none; padding: 0; margin: 0; }
.tl-item { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; }
.tl-item[hidden] { display: none; }
.tl-year { text-align: right; color: var(--marigold); font-size: 1.05rem; font-weight: 600; padding-top: .15rem; }
.tl-body { border-left: 1px solid var(--marigold-soft); padding: 0 0 2.25rem 1.75rem; position: relative; }
.tl-item:last-child .tl-body { padding-bottom: .5rem; }
.tl-body::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px var(--aubergine); }
.tl-cat { display: inline-block; font-size: .6rem; text-transform: uppercase; letter-spacing: .18em; color: var(--marigold); margin-bottom: .35rem; }
.tl-body h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.tl-body p { font-size: .92rem; font-weight: 300; opacity: .82; margin: 0; }
.tl-source { margin-top: .5rem !important; }
.tl-source a { color: var(--marigold); text-decoration: underline; font-size: .8rem; }
@media (max-width: 560px) {
  .tl-item { grid-template-columns: 1fr; gap: .35rem; }
  .tl-year { text-align: left; }
  .tl-body { border-left: 0; padding-left: 0; }
  .tl-body::before { display: none; }
}

/* FAQ accordion */
.faq { margin-top: 3rem; max-width: 42rem; }
.faq > h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--marigold); }
.faq__item { border-bottom: 1px solid var(--marigold-soft); }
.faq__item summary { cursor: pointer; padding: 1rem 0; font-family: var(--serif); font-size: 1.12rem; list-style: none; position: relative; padding-right: 2rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; color: var(--marigold); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__a { padding: 0 0 1rem; font-weight: 300; opacity: .85; }
.faq__a p { margin: 0; }

/* Legend illustration placeholder (real art arrives in the image phase) */
.entry__hero { margin: 0 0 2.5rem; max-width: 42rem; }
.entry__hero img { display: block; width: 100%; height: auto; border: 1px solid var(--marigold-soft); }
.entry__figcaption { margin-top: .7rem; max-width: 42rem; font-size: .8rem; font-weight: 300; font-style: italic; opacity: .6; }
.entry__figure { margin: 2rem 0 2.5rem; max-width: 42rem; }
.entry__figure img, .entry__figure .legend-art { display: block; width: 100%; height: auto; border: 1px solid var(--marigold-soft); }
.legend-art { aspect-ratio: 16/9; }
.legend-art .la-bg { fill: #291b30; }
.legend-art .la-frame { fill: none; stroke: var(--marigold-soft); stroke-width: 1; }
.legend-art .la-flourish { fill: none; stroke: var(--marigold); stroke-width: 1; opacity: .4; }
.legend-art .glyph { fill: none; stroke: var(--marigold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.legend-art .la-pais { fill: var(--marigold); font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
