/* El Diario Queenlab — paleta de Queenlab Studio (crema y verdes de la tienda) */
:root {
  --bg: #f5f1e8; --paper: #fbf9f4; --ink: #2c3d31; --green: #4e6656; --forest: #3f5c47;
  --sage: #809a7d; --mint: #e4ebd9; --coral: #c96f58; --mute: #6f7f72; --line: #d8d0bf; --cream: #f5f1e8;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--green); text-wrap: balance; line-height: 1.08; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 8px 14px; background: var(--forest); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Cabecera */
.topbar { background: var(--sage); color: var(--cream); font-size: .86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 7px; }
.masthead { text-align: center; padding-block: 34px 0; }
.logo { display: block; width: auto; height: clamp(96px, 14vw, 132px); margin: 0 auto 14px; }
.brand { font-weight: 700; font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: .92; }
.issue { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--mute); }
.issue span:empty { display: none; }
/* Redes sociales: solo el logo; al pasar el ratón el botón se alarga y aparece el texto */
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.red { display: inline-flex; align-items: center; height: 48px; padding-inline: 14px; border-radius: 999px;
  background: var(--forest); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden;
  transition: background .3s, transform .3s, box-shadow .3s; }
.red svg { width: 20px; height: 20px; flex: none; }
.red span { max-width: 0; opacity: 0; margin-left: 0; overflow: hidden;
  transition: max-width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, margin-left .45s cubic-bezier(.2, .8, .2, 1); }
.red:hover span, .red:focus-visible span { max-width: 220px; opacity: 1; margin-left: 10px; }
.red:hover, .red:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(44, 61, 49, .18); }
.red--shop { background: var(--coral); }
.red:hover { background: var(--green); }
.red--shop:hover { background: #b45f4a; }
.redes--pie { margin-top: 6px; }
.redes--pie .red { background: var(--cream); color: var(--green); }
.redes--pie .red--shop { background: var(--coral); color: #fff; }
.redes--pie .red:hover { background: #fff; }
.redes--pie .red--shop:hover { background: #b45f4a; }
.footer .redes a { border-bottom: 0; }
@media (hover: none) {
  .red:hover { transform: none; box-shadow: none; }
  .red:hover span { max-width: 0; opacity: 0; margin-left: 0; }
}
.mainnav { margin-top: 24px; border-block: 1px solid var(--green); outline: 1px solid var(--line); outline-offset: 3px; }
.mainnav ul { list-style: none; margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.nav-link { position: relative; font-weight: 600; font-size: .95rem; color: var(--green); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .45s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.buscar { max-width: 460px; margin: 22px auto 0; display: grid; gap: 4px; text-align: left; }
.buscar label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.buscar input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.buscar input::placeholder { color: #9aa59c; }

.aviso { margin-top: 24px; padding: 12px 16px; background: var(--paper); border-left: 3px solid var(--coral); font-size: .95rem; }

/* Elementos comunes */
.kicker { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.kicker .place { color: var(--mute); font-weight: 600; letter-spacing: .06em; }
.dept-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-top: 1px solid var(--green); padding-top: 12px; margin-bottom: 22px; }
.dept-head h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.dept-head p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--mute); }
.vacio { color: var(--mute); font-style: italic; }

/* La opinión de Trini */
.opinion { padding-top: 44px; }
.opinion-main { display: grid; gap: 18px; background: var(--paper); border-top: 3px solid var(--coral); padding: 26px 24px; }
.opinion-main time, .opinion-prev time { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.opinion-main .texto { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.35; color: var(--ink); white-space: pre-line; max-width: 60ch; }
.opinion-main .firma { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green); }
.opinion-media img, .opinion-media video { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #1f2a23; border-radius: 4px; }
.opinion-anteriores { display: grid; gap: 0; margin-top: 8px; }
.opinion-prev { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.opinion-prev p { white-space: pre-line; }
.opinion-prev .opinion-media img, .opinion-prev .opinion-media video { max-height: 360px; }
@media (min-width: 960px) {
  .opinion-main.con-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 40px; }
}

/* Portada: leyes */
.cover { padding-top: 44px; }
.cover-grid { display: grid; gap: 30px; }
.cover-main { display: grid; gap: 12px; align-content: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cover-main h3 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.02; }
.cover-main h3 a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.cover-main h3 a:hover { border-color: currentColor; }
.cover-main .resumen { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--mute); max-width: 52ch; }
.cover-main .leer { justify-self: start; font-weight: 700; color: var(--forest); border-bottom: 1px solid var(--forest); }

.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.list li:first-child { padding-top: 0; }
.list h3 { font-size: 1.3rem; line-height: 1.15; }

/* Secciones */
.dept { padding-top: 50px; }
.stories { display: grid; gap: 28px; }
.story { display: grid; gap: 6px; align-content: start; min-width: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.story h3 { font-size: clamp(1.35rem, 2.3vw, 1.6rem); line-height: 1.12; }
.story p.resumen { font-size: .98rem; }
.story h3 a, .list h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s ease; }
.story h3 a:hover, .list h3 a:hover { background-size: 100% 1px; }
.mas { justify-self: start; margin-top: 18px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--forest); background: none; border: 1px solid var(--forest); border-radius: 6px; padding: 8px 16px; cursor: pointer; }
.mas:hover { background: var(--forest); color: #fff; }

/* Recomendación de FrostyQ */
.reco { margin-top: 34px; background: var(--mint); border-top: 3px solid var(--forest); padding: 26px 24px; display: grid; gap: 22px; }
.reco h3 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.reco-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--mute); margin-top: 4px; }
.reco-why { display: grid; gap: 10px; align-content: start; }
.reco-why h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); }
.reco-qompromiso { font-size: .95rem; padding: 10px 14px; background: var(--paper); border-left: 2px solid var(--coral); }
.reco-link { justify-self: start; font-weight: 700; color: var(--forest); border-bottom: 1px solid var(--forest); }
.reco-link:hover { color: var(--coral); border-color: var(--coral); }
.reco-facts { margin: 0; display: grid; gap: 12px; }
.reco-facts dt { font-weight: 700; font-size: .92rem; color: var(--forest); }
.reco-facts dd { margin: 0; font-size: .95rem; }
.reco-note { font-size: .84rem; color: var(--mute); border-top: 1px solid rgba(63, 92, 71, .2); padding-top: 12px; }

/* Pie */
.footer { margin-top: 64px; background: var(--green); color: var(--cream); text-align: center; }
.footer .wrap { padding-block: 38px; display: grid; gap: 10px; justify-items: center; }
.footer .motto { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.footer p { max-width: 64ch; font-size: .92rem; }
.footer a { border-bottom: 1px solid rgba(245, 241, 232, .45); }

[hidden] { display: none !important; }

@media (min-width: 720px) {
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
}
@media (min-width: 960px) {
  .cover-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
  .cover-main { border-bottom: 0; padding-bottom: 0; }
  .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reco { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 48px; padding: 32px 36px; }
  .reco-head, .reco-note { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
