/* =========================================================
   ZareTutos — hoja de estilos principal
   Sistema de diseño: tokens, tipografía, layout, componentes
   ========================================================= */

:root{
  /* Color base */
  --bg:            #F1F3F4;
  --bg-raised:     #FFFFFF;
  --bg-soft:       #E5E8EA;
  --ink:           #191B1E;
  --ink-soft:      #565C63;
  --ink-faint:     #8A9096;
  --line:          #DFDDD6;
  --line-strong:   #C7C4BB;

  /* Acento de marca */
  --brand:         #0E6E76;
  --brand-dark:    #0A4F55;
  --brand-tint:    #E5F1F1;

  /* Acentos por categoría */
  --cat-whatsapp:  #0E6E76;
  --cat-android:   #3D8F52;
  --cat-apps:      #B9791F;
  --cat-social:    #7A5590;
  --cat-trucos:    #B54A2A;

  /* Tipografía */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.5rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.4vw, 3.4rem);

  --radius-sm: 3px;
  --radius-md: 5px;
  --container: 1140px;
  --shadow-card: 0 1px 2px rgba(20,20,18,0.06);
}

/* Reset ligero */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
p{ margin: 0 0 1em; }
button{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.logo span{ color: var(--brand); }

.nav-desktop{
  display: none;
}
.nav-desktop ul{
  display: flex;
  gap: 28px;
}
.nav-desktop a{
  font-size: var(--step--1);
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"]{
  color: var(--ink);
  border-color: var(--brand);
}

.menu-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span{
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display: none;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.nav-mobile.is-open{ max-height: 480px; }
.nav-mobile ul{ padding: 8px 24px 20px; }
.nav-mobile a{
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-0);
  color: var(--ink-soft);
}
.nav-mobile li:last-child a{ border-bottom: none; }

@media (min-width: 860px){
  .nav-desktop{ display: block; }
  .menu-toggle{ display: none; }
  .nav-mobile{ display: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero .container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero-copy{ max-width: 640px; }
.hero-copy h1{
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.hero-copy p{
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-art{
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
@media (min-width: 900px){
  .hero .container{ grid-template-columns: 1.3fr 0.9fr; }
  .hero-art{ justify-self: end; }
}

.btn{
  display: inline-block;
  padding: 13px 26px;
  background: var(--brand);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover{ background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active{ transform: translateY(1px); }
.btn-outline{
  background: transparent;
  color: var(--brand);
}
.btn-outline:hover{ background: var(--brand-tint); }

/* =========================================================
   BUSCADOR
   ========================================================= */
.search-section{
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.search-box{
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 16px;
}
.search-box svg{ flex-shrink: 0; color: var(--ink-faint); }
.search-box input{
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font-size: var(--step-0);
  color: var(--ink);
  font-family: inherit;
}
.search-box input:focus{ outline: none; }
.search-meta{
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* =========================================================
   CATEGORIAS
   ========================================================= */
.categorias{
  padding: 40px 0 8px;
}
.categorias h2{ font-size: var(--step-2); margin-bottom: 20px; }
.cat-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-item{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cat, var(--brand));
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color .15s ease, background .15s ease;
}
.cat-item:hover{ background: var(--bg-soft); }
.cat-item strong{ display: block; font-family: var(--font-display); font-size: var(--step-0); margin-bottom: 2px; }
.cat-item span{ font-size: var(--step--1); color: var(--ink-soft); }
@media (min-width: 700px){
  .cat-grid{ grid-template-columns: repeat(5, 1fr); }
}

/* =========================================================
   LISTADO DE ARTICULOS
   ========================================================= */
.articulos{
  padding: 48px 0 16px;
}
.articulos-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.articulos-head h2{ font-size: var(--step-3); margin-bottom: 0; }
.articulos-head p{ margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

.card-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .card-grid{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cat, var(--brand));
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .12s ease;
}
.card:hover{ transform: translateY(-2px); border-color: var(--line-strong); }
.card-img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-soft);
}
.card-body{
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-cat{
  font-size: var(--step--1);
  color: var(--cat, var(--brand));
  font-weight: 600;
  margin-bottom: 6px;
}
.card h3{
  font-size: var(--step-1);
  margin-bottom: 8px;
}
.card h3 a{ color: var(--ink); }
.card h3 a:hover{ text-decoration: underline; text-decoration-color: var(--cat, var(--brand)); }
.card p{
  color: var(--ink-soft);
  font-size: var(--step--1);
  flex: 1;
  margin-bottom: 14px;
}
.card-link{
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cat, var(--brand));
  align-self: flex-start;
  border-bottom: 1px solid transparent;
}
.card-link:hover{ border-color: var(--cat, var(--brand)); }

.card[hidden]{ display: none; }

.no-results{
  padding: 40px 0;
  color: var(--ink-soft);
  text-align: center;
  display: none;
}
.no-results.is-visible{ display: block; }

/* =========================================================
   PAGINACION
   ========================================================= */
.paginacion{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 64px;
}
.paginacion a{
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.paginacion a:hover{ border-color: var(--brand); color: var(--brand); }
.paginacion a.is-current{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   SECCION SOBRE ZARETUTOS (home)
   ========================================================= */
.about-strip{
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.about-strip .container{
  max-width: 760px;
}
.about-strip h2{ font-size: var(--step-2); }
.about-strip p{ color: var(--ink-soft); font-size: var(--step-0); }
.about-strip a{
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid var(--brand);
}

/* =========================================================
   PAGINAS DE CONTENIDO GENERICAS (sobre nosotros, legales)
   ========================================================= */
.page-header{
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-header h1{ font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 6px; }
.page-header p{ color: var(--ink-soft); font-size: var(--step-1); margin: 0; }

.breadcrumb{
  padding: 16px 0 0;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ text-decoration: underline; }

.content-block{
  padding: 40px 0 72px;
  max-width: 760px;
}
.content-block h2{ font-size: var(--step-2); margin-top: 1.6em; }
.content-block h2:first-child{ margin-top: 0; }
.content-block p{ color: var(--ink-soft); }
.content-block ul, .content-block ol{ margin: 0 0 1.2em; padding-left: 1.3em; color: var(--ink-soft); }
.content-block li{ margin-bottom: 0.4em; }

/* =========================================================
   ARTICULO INDIVIDUAL
   ========================================================= */
.article-header{ padding: 20px 0 0; }
.article-cat{
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cat, var(--brand));
  margin: 18px 0 8px;
}
.article-header h1{
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 20ch;
  margin-bottom: 14px;
}
.article-intro{
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 24px;
}
.article-img{
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.article-img-caption{
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-bottom: 32px;
}

.article-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
@media (min-width: 940px){
  .article-layout{ grid-template-columns: 2fr 1fr; }
}

.article-body h2{ font-size: var(--step-2); margin-top: 1.8em; }
.article-body h2:first-child{ margin-top: 0; }
.article-body p{ color: var(--ink-soft); max-width: 68ch; }
.placeholder-note{
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin: 12px 0 28px;
}

.tips-box{
  background: var(--brand-tint);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 28px 0;
}
.tips-box h3{ font-size: var(--step-1); margin-bottom: 10px; color: var(--brand-dark); }
.tips-box ul{ padding-left: 1.2em; color: var(--ink); }
.tips-box li{ margin-bottom: 6px; }

.faq{ margin: 32px 0; }
.faq h2{ margin-bottom: 12px; }
.faq-item{ border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h3{ font-size: var(--step-0); margin-bottom: 6px; }
.faq-item p{ margin: 0; color: var(--ink-soft); }

.conclusion{ margin-top: 32px; }
.conclusion h2{ margin-bottom: 10px; }

.sidebar{ }
.sidebar-block{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-block h3{ font-size: var(--step-0); margin-bottom: 12px; }
.sidebar-block ul li{ margin-bottom: 10px; }
.sidebar-block a{ color: var(--ink-soft); font-size: var(--step--1); }
.sidebar-block a:hover{ color: var(--brand); text-decoration: underline; }

.related h2{ font-size: var(--step-2); margin-bottom: 20px; }

/* =========================================================
   FORMULARIO DE CONTACTO
   ========================================================= */
.form-block{ max-width: 560px; padding: 0 0 72px; }
.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field textarea{
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg-raised);
}
.field input:focus, .field textarea:focus{ outline: 2px solid var(--brand); outline-offset: 1px; }
.field textarea{ resize: vertical; min-height: 140px; }
.form-note{ font-size: var(--step--1); color: var(--ink-faint); margin-top: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--ink);
  color: #D7D9D6;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #34383D;
}
@media (min-width: 700px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .logo{ color: #fff; }
.footer-brand .logo span{ color: #4FB8B0; }
.footer-brand p{ color: #A7ACA9; font-size: var(--step--1); max-width: 40ch; margin-top: 10px; }
.footer-col h4{ font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col li{ margin-bottom: 8px; }
.footer-col a{ color: #A7ACA9; font-size: var(--step--1); }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  padding-top: 20px;
  font-size: var(--step--1);
  color: #8B9092;
}

/* =========================================================
   AJUSTE VISUAL REMAST — diseño compacto y moderno
   ========================================================= */

.site-header{
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.card{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(25,27,30,.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(25,27,30,.10);
}

.card-img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body{
  padding: 20px;
}

.cat-item{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cat-item:hover{
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(25,27,30,.08);
}

.article-header{
  padding-top: 30px;
  padding-bottom: 30px;
}

.article-header h1{
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.article-img{
  border-radius: 14px;
}

.related{
  padding-top: 42px;
  padding-bottom: 42px;
}

.search-section{
  background: var(--bg-soft);
}


/* =========================================================
   ZARETUTOS — REDISEÑO OSCURO / MODERNO / COMPACTO
   ========================================================= */

:root{
  --bg: #111416;
  --bg-raised: #191d20;
  --bg-soft: #202529;
  --ink: #f2f5f4;
  --ink-soft: #aeb7b5;
  --ink-faint: #737d7b;
  --line: #2c3336;
  --line-strong: #3a4447;
  --brand: #19a89d;
  --brand-dark: #118077;
  --brand-tint: #183b39;
}

/* BASE */

body{
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.container{
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
}

/* HEADER */

.site-header{
  background: #0d1011;
  border-bottom: 1px solid #252b2d;
}

.site-header a{
  color: var(--ink);
}

.site-header .logo{
  color: #fff;
}

.site-header .logo span{
  color: var(--brand);
}

/* HERO */

.hero{
  padding: 38px 0 36px;
  background:
    radial-gradient(circle at 85% 30%, rgba(25,168,157,.14), transparent 35%),
    #111416;
  border-bottom: 1px solid var(--line);
}

.hero .container{
  gap: 20px;
}

.hero-copy{
  max-width: 650px;
}

.hero-copy h1{
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 14px;
}

.hero-copy p{
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-art{
  max-width: 270px;
}

/* BOTONES */

.btn{
  background: var(--brand);
  color: #07100f !important;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 700;
  transition: .2s ease;
}

.btn:hover{
  background: #25c1b5;
  transform: translateY(-1px);
}

/* SECCIONES */

section{
  border-color: var(--line);
}

.section-title{
  color: #fff;
}

.section-description{
  color: var(--ink-soft);
}

/* TARJETAS */

.card{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

.card:hover{
  transform: translateY(-3px);
  border-color: #3b6965;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.card-body{
  padding: 16px 18px 18px;
}

.card h2,
.card h3,
.card-title{
  color: #fff;
}

.card p{
  color: var(--ink-soft);
}

.card-img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* CATEGORÍAS */

.cat-item{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  box-shadow: none;
}

.cat-item:hover{
  background: #1d2527;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: none;
}

.cat-item h3{
  color: #fff;
}

.cat-item p{
  color: var(--ink-soft);
}

/* BUSCADOR */

.search-section{
  background: #161a1c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-section input,
.search-section textarea{
  background: #0f1213;
  color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.search-section input::placeholder{
  color: #687270;
}

/* ARTÍCULOS */

.article-header{
  padding-top: 28px;
  padding-bottom: 24px;
}

.article-header h1{
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article-header p{
  color: var(--ink-soft);
}

.article-img{
  border-radius: 12px;
}

.article-content{
  color: #d7dddb;
}

.article-content h2,
.article-content h3{
  color: #fff;
}

.article-content p{
  color: #c0c8c6;
}

.article-content a{
  color: #35c7ba;
}

.article-content strong{
  color: #fff;
}

/* CAJAS INTERNAS */

.tips-box,
.faq,
.conclusion,
.placeholder-note{
  background: #191e20;
  border-color: var(--line);
  color: #c7cfcd;
  border-radius: 10px;
}

.tips-box h3,
.faq h2,
.conclusion h2{
  color: #fff;
}

/* ENLACES */

a{
  color: var(--brand);
}

a:hover{
  color: #39cfc2;
}

/* RELACIONADOS */

.related{
  padding-top: 35px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
}

/* FOOTER */

footer,
.site-footer{
  background: #0b0e0f;
  border-top: 1px solid #252b2d;
}

.footer-brand p,
.footer-col a{
  color: #8e9996;
}

.footer-col h4{
  color: #fff;
}

.footer-col a:hover{
  color: var(--brand);
}

.footer-bottom{
  border-color: var(--line);
  color: #687270;
}

/* MOBILE */

@media (max-width: 700px){

  .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero{
    padding: 30px 0 28px;
  }

  .hero-copy h1{
    font-size: 2rem;
  }

  .hero-copy p{
    font-size: 15px;
  }

  .hero-art{
    max-width: 210px;
  }

  .card-body{
    padding: 14px 15px 16px;
  }

  .article-header{
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .article-header h1{
    font-size: 2rem;
  }
}


/* =========================================================
   ZARETUTOS — TECH MAGAZINE
   Estilo editorial tecnológico profesional
   ========================================================= */

/* ---------- VARIABLES ---------- */

:root{
  --bg: #0b0f10;
  --bg-raised: #121819;
  --bg-soft: #171e20;
  --ink: #f5f7f6;
  --ink-soft: #aeb8b6;
  --ink-faint: #6f7a78;
  --line: #263032;
  --line-strong: #354143;

  --brand: #18b7aa;
  --brand-dark: #0e8179;
  --brand-tint: #123b38;

  --container: 1180px;
}

/* ---------- BASE ---------- */

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- HEADER ---------- */

.site-header{
  background: #080b0c;
  border-bottom: 1px solid #252e30;
  position: relative;
  z-index: 20;
}

.site-header .container{
  min-height: 64px;
  display: flex;
  align-items: center;
}

.logo,
.site-header .logo{
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span,
.site-header .logo span{
  color: var(--brand);
}

/* ---------- NAVEGACIÓN ---------- */

.site-nav a{
  color: #aeb8b6;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease;
}

.site-nav a:hover{
  color: #fff;
}

.site-nav a.active,
.site-nav .active{
  color: var(--brand);
}

/* ---------- HERO ---------- */

.hero{
  padding: 46px 0 42px;
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(24,183,170,.16),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #0b1011 0%,
      #101718 55%,
      #0b1011 100%
    );
  border-bottom: 1px solid var(--line);
}

.hero .container{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px,.65fr);
  gap: 35px;
  align-items: center;
}

.hero-copy{
  max-width: 700px;
}

.hero-copy h1{
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-copy p{
  margin: 0 0 22px;
  max-width: 62ch;
  color: #aeb8b6;
  font-size: 16px;
  line-height: 1.65;
}

.hero-art{
  width: 100%;
  max-width: 310px;
  justify-self: end;
  opacity: .95;
}

/* ---------- BOTÓN ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--brand);
  color: #061110 !important;

  border: 0;
  border-radius: 6px;

  padding: 11px 18px;

  font-size: 14px;
  font-weight: 800;

  transition:
    transform .18s ease,
    background .18s ease;
}

.btn:hover{
  background: #28c9bb;
  transform: translateY(-2px);
}

/* ---------- TÍTULOS DE SECCIÓN ---------- */

.section-title{
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-description{
  color: var(--ink-soft);
}

/* ---------- GRID DE ARTÍCULOS ---------- */

.articles-grid,
.cards-grid{
  gap: 18px;
}

/* ---------- CARDS ---------- */

.card{
  position: relative;

  background: #121819;
  border: 1px solid #263032;
  border-radius: 8px;

  box-shadow: none;
  overflow: hidden;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: #38605d;
  box-shadow: 0 16px 35px rgba(0,0,0,.32);
}

.card-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-body{
  padding: 15px 17px 17px;
}

.card h2,
.card h3,
.card-title{
  margin-top: 0;
  color: #f7f9f8;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.card p{
  color: #9da8a5;
  font-size: 14px;
  line-height: 1.55;
}

.card a{
  color: inherit;
}

/* ---------- ETIQUETAS ---------- */

.category,
.card-category,
.tag{
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- CATEGORÍAS ---------- */

.cat-item{
  background: #121819;
  border: 1px solid #293234;
  border-radius: 7px;
  padding: 15px;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.cat-item:hover{
  background: #172021;
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: none;
}

.cat-item h3{
  color: #fff;
  font-size: 15px;
}

.cat-item p{
  color: #8f9a98;
  font-size: 13px;
}

/* ---------- BUSCADOR ---------- */

.search-section{
  background: #0f1415;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-section input{
  background: #080c0d;
  color: #fff;
  border: 1px solid #303a3c;
  border-radius: 6px;
  outline: none;
}

.search-section input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(24,183,170,.12);
}

.search-section input::placeholder{
  color: #65716f;
}

/* ---------- ARTÍCULO ---------- */

.article-header{
  padding-top: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1{
  margin-bottom: 15px;

  color: #fff;

  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.article-header p{
  color: #9fa9a7;
  font-size: 16px;
}

.article-img{
  border-radius: 8px;
}

/* ---------- CONTENIDO ---------- */

.article-content{
  color: #c5cecc;
  max-width: 760px;
}

.article-content h2{
  margin-top: 34px;
  margin-bottom: 12px;

  color: #fff;

  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-content h3{
  color: #fff;
  font-size: 18px;
}

.article-content p{
  color: #b6c0be;
  font-size: 16px;
  line-height: 1.75;
}

.article-content strong{
  color: #fff;
}

.article-content a{
  color: #35c8bb;
}

.article-content a:hover{
  color: #62ddd2;
}

/* ---------- LISTAS ---------- */

.article-content li{
  color: #b6c0be;
  margin-bottom: 8px;
}

/* ---------- CAJAS ---------- */

.tips-box,
.faq,
.conclusion,
.placeholder-note{
  margin: 25px 0;
  padding: 18px;

  background: #141b1c;
  border: 1px solid #2b3638;
  border-radius: 7px;

  color: #b8c2c0;
}

.tips-box h3,
.faq h2,
.conclusion h2{
  color: #fff;
}

/* ---------- RELATED ---------- */

.related{
  padding-top: 35px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
}

/* ---------- FOOTER ---------- */

footer,
.site-footer{
  background: #080b0c;
  border-top: 1px solid #242d2f;
}

.footer-brand p{
  color: #7e8987;
}

.footer-col h4{
  color: #fff;
}

.footer-col a{
  color: #818c89;
}

.footer-col a:hover{
  color: var(--brand);
}

.footer-bottom{
  color: #626d6b;
  border-color: #20282a;
}

/* ---------- SEPARADORES ---------- */

hr{
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- MOBILE ---------- */

@media (max-width: 899px){

  .hero .container{
    grid-template-columns: 1fr;
  }

  .hero-art{
    justify-self: center;
    max-width: 230px;
  }
}

@media (max-width: 700px){

  .container{
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero{
    padding: 32px 0 30px;
  }

  .hero-copy h1{
    font-size: 2.25rem;
    line-height: 1;
  }

  .hero-copy p{
    font-size: 15px;
  }

  .hero-art{
    max-width: 190px;
  }

  .card-body{
    padding: 14px 15px 16px;
  }

  .card h2,
  .card h3,
  .card-title{
    font-size: 16px;
  }

  .article-header{
    padding-top: 25px;
    padding-bottom: 22px;
  }

  .article-header h1{
    font-size: 2.15rem;
  }

  .article-content p{
    font-size: 15px;
    line-height: 1.7;
  }

  .article-content h2{
    font-size: 21px;
  }
}


/* TÍTULOS MÁS COMPACTOS */

.hero-copy h1{
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.08;
}

.article-header h1{
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.08;
}

.section-title{
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.card h2,
.card h3,
.card-title{
  font-size: 16px;
  line-height: 1.3;
}

@media (max-width: 700px){

  .hero-copy h1{
    font-size: 1.8rem;
  }

  .article-header h1{
    font-size: 1.8rem;
  }

  .section-title{
    font-size: 1.4rem;
  }

}

