/* ============================================================
   Icenico Tech News — Portada de producción
   Diseño «periódico clásico» (Opción A), 2026-10-20
   ============================================================ */

:root{
  --paper: #f2ead7;
  --paper-deep: #e9dfc7;
  --ink: #1a1a1a;
  --ink-soft: #3b352c;
  --muted: #6d6457;
  --hair: rgba(26,26,26,.26);
  --accent: #8d2a20;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'PT Serif', Georgia, serif;
  --mast: 'Cinzel', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --measure: 68ch;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  padding: 26px 24px 40px;
  color: var(--ink);
  background-color: #d8d0bd;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(0,0,0,.06), transparent 55%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a{ color: inherit; }

img{ max-width: 100%; }

.demo-bar{
  max-width: 1260px;
  margin: 0 auto 10px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: #6f675a;
}

.paper{
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 42px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  border: 1px solid rgba(26,26,26,.16);
  box-shadow: 0 16px 50px rgba(40,32,20,.12);
}

/* ===================== CABECERA ===================== */

.masthead{ padding-top: 14px; }

.dateline{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #332e26;
}
.dateline span:nth-child(2){ text-align: center; }
.dateline span:nth-child(3){ text-align: right; }

.brand{
  text-align: center;
  padding: 20px 0 14px;
  border-bottom: 4px double var(--ink);
}
.brand h1{
  margin: 0;
  font-family: var(--mast);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.7rem);
  line-height: .96;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.brand h1 a{ text-decoration: none; color: inherit; }
.brand h1 span{ white-space: nowrap; }
.brand h1 .wm-icenico{ color: var(--ink); }
.brand h1 .wm-tech{ color: var(--accent); }
.tagline{
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.sections{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sections a{
  position: relative;
  padding-bottom: 2px;
  text-decoration: none;
  color: #2c2821;
}
.sections a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: transparent;
}
.sections a:hover::after,
.sections a.active::after{ background: var(--accent); }
.sections .search{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  letter-spacing: .1em;
}
.sections .search svg{ width: 11px; height: 11px; }
.sections .search:hover{ color: var(--ink); }

/* ===================== PORTADA ===================== */

.front{
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  margin-top: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.lead{ padding-right: 30px; }

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker::before{
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.kicker.small{ font-size: 9px; letter-spacing: .15em; }
.kicker.small::before{ width: 12px; }

.lead h2{
  margin: 9px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.lead h2 a{ text-decoration: none; }
.lead h2 a:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.standfirst{
  margin: 0 0 14px;
  max-width: 58ch;
  font-size: 1.13rem;
  line-height: 1.48;
  color: var(--ink-soft);
  hyphens: none;
}

.byline{
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-figure{ margin: 16px 0 18px; }
.lead-figure a{ display: block; }
.lead-figure img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}
.lead-figure figcaption{
  padding: 7px 0 8px;
  border-bottom: 1px solid var(--hair);
  font-size: 11px;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}
.lead-figure figcaption span{
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b8274;
  white-space: nowrap;
}

.lead p{
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
  color: #24211b;
}
.lead-body{
  columns: 2;
  column-gap: 26px;
  column-rule: 1px solid var(--hair);
  column-fill: balance;
}
.lead-body p:last-child{ margin-bottom: 0; }
.lead p.dropcap::first-letter{
  float: left;
  margin: 7px 9px 0 0;
  font-family: var(--display);
  font-size: 4.1rem;
  line-height: .74;
  font-weight: 700;
  color: var(--ink);
}

.continue{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.continue span{ font-size: 12px; line-height: 1; }
.continue:hover{ color: var(--accent); border-color: var(--accent); }

/* -------- Columna derecha -------- */

.rail{
  padding-left: 26px;
  border-left: 1px solid var(--hair);
}

.rail-head{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--ink);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rail-head::before{
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.rail-item{
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--hair);
}
.rail-item h3{
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.rail-item h3 a{ text-decoration: none; }
.rail-item h3 a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.rail-dek{
  margin: 0 0 7px;
  font-size: .9rem;
  line-height: 1.45;
  color: #4b453b;
}
.meta{
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.most-read-head{ margin-top: 24px; }

.most-read{
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}
.most-read li{
  counter-increment: rank;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.most-read li::before{
  content: counter(rank);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: .9;
  color: var(--accent);
  opacity: .9;
}
.most-read a{
  font-family: var(--display);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.most-read a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.rail-box{
  margin-top: 22px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}
.box-label{
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.rail-box blockquote{
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.36;
  letter-spacing: -.005em;
}
.rail-box cite{
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-box cite a,
.rail-box blockquote a{ color: inherit; text-decoration: none; }
.rail-box cite a:hover,
.rail-box blockquote a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.agenda{
  margin: 0;
  padding: 0;
  list-style: none;
}
.agenda li{
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
}
.agenda li:last-child{ border-bottom: 0; padding-bottom: 0; }
.agenda time{
  padding-top: 2px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.agenda span{
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
}
.agenda em{
  font-family: var(--body);
  font-size: .78rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.reco{
  margin: 0;
  padding: 0;
  list-style: none;
}
.reco li{
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
}
.reco li:last-child{ border-bottom: 0; padding-bottom: 0; }
.reco a{
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.reco a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.reco .meta{ margin-top: 4px; }

/* ===================== SECCIONES ===================== */

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0 7px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.section-head h2{
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
}
.section-link{
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.section-link:hover{ color: var(--accent); border-color: var(--accent); }

.latest{ margin-top: 32px; }

.latest-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border-bottom: 1px solid var(--ink);
}

.story{
  background: var(--paper);
  padding: 18px 20px 20px;
}
.story > a:first-child{
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
}
.story img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-deep);
  transition: transform .5s ease;
}
.story:hover img{ transform: scale(1.03); }
.story h3{
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.008em;
  text-wrap: balance;
}
.story h3 a,
.more-grid h3 a,
.brief h3 a{ text-decoration: none; }
.story h3 a:hover,
.more-grid h3 a:hover,
.brief h3 a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.story p{
  margin: 0;
  font-size: .9rem;
  line-height: 1.52;
  text-align: left;
  color: #48423a;
}
.story .meta{ margin-top: 11px; }

/* -------- Más noticias -------- */

.more{ margin-top: 26px; }
.section-head.slim{
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 7px 0 6px;
}
.section-head.slim h2{
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.more-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
}
.more-grid article{
  background: var(--paper);
  padding: 13px 18px 15px;
}
.more-grid h3{
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

/* -------- Departamentos -------- */

.departments{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  margin-top: 30px;
  border-top: 3px solid var(--ink);
}
.department{
  background: var(--paper);
  padding: 12px 20px 14px;
}
.dept-head{
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brief{
  padding: 9px 0;
  border-bottom: 1px dotted rgba(26,26,26,.3);
}
.brief:last-child{ border-bottom: 0; padding-bottom: 2px; }
.brief h3{
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.26;
}

/* ===================== COLOFÓN ===================== */

.colophon{
  margin-top: 34px;
  padding: 16px 0 18px;
  border-top: 4px double var(--ink);
}
.colophon-top{
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 34px;
}
.colophon-logo{
  font-family: var(--mast);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}
.colophon-logo .wm-tech{ color: var(--accent); }
.colophon-brand p{
  margin: 9px 0 0;
  max-width: 46ch;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
}
.colophon-col h3{
  margin: 2px 0 7px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.colophon-col a{
  display: block;
  padding: 2px 0;
  font-size: .86rem;
  text-decoration: none;
  color: #3d382f;
}
.colophon-col a:hover{ text-decoration: underline; }
.colophon-bottom{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 980px){
  .paper{ padding: 0 28px; }
  .front{ grid-template-columns: minmax(0,1fr); }
  .lead{ padding-right: 0; }
  .rail{
    margin-top: 24px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 4px double var(--ink);
  }
}

@media (max-width: 860px){
  .latest-grid,
  .more-grid,
  .departments,
  .colophon-top{ grid-template-columns: minmax(0,1fr); }
  .story{ padding: 16px 0 18px; }
  .story img{ aspect-ratio: 16 / 9; }
  .department{ padding: 14px 0 16px; }
  .more-grid article{ padding: 12px 0 14px; }
  .colophon-top{ gap: 20px; }
}

@media (max-width: 760px){
  body{ padding: 0; background: var(--paper); }
  .demo-bar{ padding: 9px 10px; margin: 0; font-size: 8px; background: #e9dfc7; }
  .paper{
    padding: 0 16px;
    border: 0;
    box-shadow: none;
  }
  .dateline{
    grid-template-columns: 1fr auto;
    font-size: 8px;
    letter-spacing: .08em;
    padding: 7px 0;
  }
  .dateline span:nth-child(2){ text-align: left; }
  .dateline span:nth-child(3){ display: none; }
  .brand{ padding: 14px 0 10px; }
  .brand h1{ font-size: clamp(1.9rem, 8.5vw, 2.9rem); line-height: 1; }
  .tagline{ font-size: 7px; letter-spacing: .22em; }
  .sections{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 12px;
    overflow: visible;
    padding: 9px 0 10px;
    font-size: 8px;
    letter-spacing: .08em;
  }
  .sections a{ white-space: nowrap; }
  .sections .search{ margin-left: 0; gap: 0; font-size: 0; }
  .sections .search svg{ width: 14px; height: 14px; }
  .front{ margin-top: 18px; padding-bottom: 20px; border-bottom: 0; }
  .lead h2{ font-size: clamp(1.85rem, 7.4vw, 2.4rem); }
  .standfirst{ font-size: 1.02rem; }
  .lead-body{ columns: 1; column-rule: 0; }
  .lead p{ font-size: 16.5px; line-height: 1.68; text-align: left; hyphens: none; }
  .lead p.dropcap::first-letter{ font-size: 3.4rem; margin-top: 6px; }
  .rail{ margin-top: 20px; }
  .rail-item h3{ font-size: 1.06rem; }
  .most-read a{ font-size: .94rem; }
  .latest{ margin-top: 24px; }
  .section-head h2{ font-size: 1.35rem; }
  .story h3{ font-size: 1.16rem; }
  .story{ padding: 14px 0 16px; }
  .story:first-child{ padding-top: 16px; }
  .story:not(:first-child){
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  .story:not(:first-child) > a:first-child{
    grid-row: 1 / span 3;
    margin: 0;
    height: 100%;
  }
  .story:not(:first-child) img{ aspect-ratio: auto; height: 100%; }
  .story:not(:first-child) p{ display: none; }
  .story:not(:first-child) h3{ font-size: 1.02rem; margin: 4px 0 6px; }
  .story:not(:first-child) .meta{ margin-top: 4px; }
  .departments{ margin-top: 22px; }
  .department + .department{ padding-top: 16px; }
  .department + .department .dept-head{
    border-top: 3px solid var(--ink);
    padding-top: 9px;
  }
  .colophon{ margin-top: 26px; }
  .colophon-top{ grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .colophon-brand{ grid-column: 1 / -1; }
  .colophon-bottom{ flex-direction: column; gap: 4px; }
}

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

/* Detalles de interacción */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection{
  background: var(--accent);
  color: var(--paper);
}
