/* ====== Base ====== */
:root{
  --text:#111827;
  --muted:#4b5563;
  --muted2:#6b7280;
  --border:#e5e7eb;
  --red:#dc2626;
  --bg:#ffffff;
}

*{ box-sizing:border-box; }
body{ margin:0; color:var(--text); background:var(--bg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* ====== Layout ====== */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}

.section{
  padding:64px 0;
}

.header-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:var(--muted2);
}

.h2{
  margin:12px 0 0;
  font-size:40px;
  line-height:1.1;
  font-weight:800;
}

.lead{
  margin:12px 0 0;
  max-width:680px;
  color:var(--muted);
  line-height:1.7;
}

/* ====== Grid ====== */
.grid{
  display:grid;
  gap:24px;
}
.grid-2{ grid-template-columns:1fr; }
.grid-3{ grid-template-columns:1fr; }

@media(min-width:768px){
  .grid-2{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:1fr 1fr 1fr; }
}

/* ====== Cards ====== */
.card{
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 34px rgba(0,0,0,.12);
}

.card-media{
  height:220px;
  background:#f3f4f6;
  background-size:cover;
  background-position:center;
}

.tag{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--muted2);
}

.title{
  margin:10px 0 0;
  font-size:22px;
  line-height:1.25;
  font-weight:800;
  color:var(--text);
}

.p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.link-red{
  display:inline-block;
  margin-top:16px;
  font-weight:800;
  color:var(--red);
  text-decoration:none;
}

/* ====== Column articles (no card) ====== */
.col-article .title{ font-size:24px; }
.col-article:hover .title{ color:var(--red); }

/* ====== Hero ====== */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  color:#fff;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.25) 65%,
    rgba(0,0,0,0.05) 100%
  );
  z-index:1;
}
.hero-inner{
  position:relative;
  z-index:2;
  padding:96px 0;
}
.hero-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:rgba(255,255,255,.85);
}
.h1{
  margin:16px 0 0;
  font-size:52px;
  line-height:1.05;
  font-weight:900;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.hero-lead{
  margin-top:18px;
  max-width:720px;
  font-size:18px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}
@media(min-width:768px){
  .h1{ font-size:72px; }
  .hero-lead{ font-size:20px; }
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  text-decoration:none;
  border:0;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-red{ background:var(--red); color:#fff; }
.btn-red:hover{ background:#b91c1c; }

/* ====== Dark section (Newsletter) ====== */
.section-dark{
  position:relative;
  overflow:hidden;
  color:#fff;
}
.section-dark::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 25% 25%, rgba(220,38,38,0.12), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(234,179,8,0.10), transparent 55%),
    linear-gradient(180deg, #1f2937 0%, #111827 100%);
  z-index:1;
}
.section-dark > .container{ position:relative; z-index:2; }

/* Newsletter layout */
.newsletter-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
@media(min-width:1024px){
  .newsletter-grid{ grid-template-columns: 1.1fr 0.9fr; }
}
.white-muted{ color:rgba(255,255,255,.80); }
.white-strong{ color:rgba(255,255,255,.92); }

.bullets{
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  color:rgba(255,255,255,.92);
}
@media(min-width:640px){
  .bullets{ grid-template-columns:1fr 1fr; }
}
.bullet{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.dot{
  margin-top:7px;
  width:8px; height:8px;
  border-radius:999px;
  flex:0 0 auto;
}
.dot-red{ background:#ef4444; }
.dot-amber{ background:#f59e0b; }

.panel{
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  padding:28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.input{
  width:100%;
  border-radius:14px;
  background: rgba(255,255,255,0.10);
  color:#ffffff;
  border:1px solid rgba(255,255,255,0.18);
  padding:12px 14px;
  outline:none;
}
.input::placeholder{ color: rgba(255,255,255,0.45); }
.form-row{ display:flex; flex-direction:column; gap:12px; }
@media(min-width:640px){
  .form-row{ flex-direction:row; }
  .form-row .input{ flex:1; }
}

/* ====== Categories cards (reusable) ====== */
.category-card{
  position:relative;
  display:block;
  border-radius:24px;
  overflow:hidden;
  min-height:300px;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}
.category-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.category-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.45), rgba(0,0,0,0.80));
}
.category-content{
  position:relative;
  height:100%;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff;
}
.category-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:rgba(255,255,255,0.80);
}
.category-title{
  margin-top:12px;
  font-size:28px;
  line-height:1.15;
  font-weight:900;
}
.category-desc{
  margin-top:12px;
  color:rgba(255,255,255,0.88);
  max-width:520px;
  line-height:1.6;
}
.category-cta{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.category-card:hover .arrow{ transform: translateX(4px); }
.arrow{ transition: transform .2s ease; }

/* ====== Featured city ====== */
.featured{
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  border-top: 1px solid #d1d5db;
}
.featured-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
@media(min-width:1024px){
  .featured-grid{ grid-template-columns: 1fr 1fr; gap:48px; }
}
.featured-media{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  height:450px;
  box-shadow:0 14px 34px rgba(0,0,0,0.12);
  background-size:cover;
  background-position:center;
  transition: transform .6s ease;
}

.featured:hover .featured-media{
  transform: scale(1.05);
}
.featured-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.15), rgba(0,0,0,0));
}
.featured-badge{
  position:absolute;
  left:24px;
  bottom:24px;
  color:#fff;
}
.featured-badge .header-kicker{ color:rgba(255,255,255,.80); }
.featured-badge h3{ margin:10px 0 0; font-size:32px; line-height:1.1; font-weight:900; }

.rule{
  width:64px;
  height:2px;
  background:var(--red);
  margin:16px 0 24px;
}

.reading-time{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#6b7280;
  font-size:14px;
  letter-spacing:.02em;
}
.reading-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--red);
}

/* ====== Featured meta (categoria + fecha + reading time) ====== */
.meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:10px;
  color:var(--muted2);
  font-size:14px;
  letter-spacing:.02em;
}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  color:var(--text);
}
.meta-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--red);
  flex:0 0 auto;
}
