/* ============================================
   Adsmovil USA — look & feel basado en el diseño XD
   "Adsmovil new edition" (jun 2023)
   ============================================ */

:root {
  --navy-900: #14142e;   /* fondo más oscuro */
  --navy-800: #1b1b3d;   /* fondo principal */
  --navy-700: #232350;   /* paneles */
  --navy-600: #2c2c63;
  --teal: #6ed3cf;
  --teal-strong: #46bdb8;
  --yellow: #f5c844;
  --magenta: #d62e7e;
  --purple: #6c4bd8;
  --white: #ffffff;
  --ink: #1b1b3d;        /* texto sobre claro */
  --gray-100: #f1f1f5;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy-800);
  color: var(--white);
  line-height: 1.6;
}

/* ---------- Logo ---------- */
.logo {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  line-height: 0;
}
.logo img { height: 38px; width: auto; }
.logo.small img { height: 30px; }
.logo-diamond { color: var(--teal); font-size: .75em; vertical-align: 5%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(27, 27, 61, .92);
  backdrop-filter: blur(8px);
}
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  color: var(--white); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover { color: var(--teal); }
.main-nav .nav-cta { font-weight: 700; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--white); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--teal); color: var(--ink); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Decoración de rombos ---------- */
.diamond-decor {
  position: absolute; width: 240px; height: 240px;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 6px, currentColor 6px, currentColor 7px);
  -webkit-mask-image: radial-gradient(closest-side, black 99%, transparent 100%);
  opacity: .5; pointer-events: none;
  background: none;
}
.decor-tr, .decor-bl { display: block; }
.decor-tr { top: 0; right: 0; }
.decor-bl { bottom: 0; left: 0; }
.diamond-decor::before, .diamond-decor::after {
  content: ''; position: absolute; width: 110px; height: 110px;
  border: 2px solid var(--teal); transform: rotate(45deg);
  box-shadow: 0 0 0 14px var(--navy-800), 0 0 0 16px var(--teal);
}
.decor-tr::before { top: 20px; right: -55px; border-color: var(--teal); }
.decor-tr::after { top: 140px; right: 30px; width: 70px; height: 70px; border-color: var(--yellow); box-shadow: 0 0 0 10px var(--navy-800), 0 0 0 12px var(--magenta); }
.decor-bl::before { bottom: 10px; left: -55px; border-color: var(--magenta); box-shadow: 0 0 0 14px var(--navy-800), 0 0 0 16px var(--yellow); }
.decor-bl::after { bottom: 120px; left: 40px; width: 60px; height: 60px; border-color: var(--white); box-shadow: 0 0 0 10px var(--navy-800), 0 0 0 12px var(--teal); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4rem 5vw 5rem; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  align-items: center; max-width: 1200px; margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .95rem; font-weight: 500; margin-bottom: .4rem;
}
.eyebrow.light { color: var(--white); }
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
}
.hero h1 .accent { color: var(--teal); font-weight: 800; }
.hero-sub { margin-top: 1.2rem; color: #c9c9e4; max-width: 34rem; }

.circle-media {
  width: min(420px, 80vw); aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
}

/* Recorte de figura completa con fade suave, como en el XD */
.hero-media .cutout {
  display: block;
  width: min(460px, 85vw);
  height: auto;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  filter: drop-shadow(0 0 60px rgba(110, 211, 207, .12));
}
.circle-media img,
.nuestra-media img,
.update-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Placeholder hasta que lleguen los assets */
.placeholder-media {
  position: relative;
  background:
    linear-gradient(135deg, var(--navy-600) 0%, var(--navy-700) 60%),
    var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(110, 211, 207, .12) 14px 15px);
}
.placeholder-media::after {
  content: attr(data-note);
  position: relative;
  font-size: .8rem; color: #8f8fb8;
  padding: .4rem .9rem; border: 1px dashed #8f8fb8; border-radius: 8px;
  background: rgba(20, 20, 46, .55);
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 2.6rem 5vw;
  background: var(--navy-900);
  text-align: center;
}
.stat-number {
  display: block; font-size: 2.2rem; font-weight: 800; color: var(--teal);
}
.stat-label { color: #b9b9d9; font-size: .9rem; }
.stats-source {
  grid-column: 1 / -1;
  font-size: .72rem; color: #8f8fb8; margin-top: .6rem;
}

/* ---------- PRISA ---------- */
.prisa {
  background:
    linear-gradient(120deg, rgba(214, 46, 126, .28), rgba(27, 27, 61, .92)),
    var(--navy-900);
}
.prisa .section-head { margin-bottom: 0; }

/* ---------- Solution pillars ---------- */
.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; max-width: 1200px; margin: 0 auto;
}
.pillar {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.pillar-num {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 6px 0 1.2rem 6px;
  color: var(--teal); font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.pillar-num::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--teal); transform: rotate(45deg);
}
.pillar h3 { color: var(--yellow); font-size: 1.05rem; margin-bottom: .6rem; }
.pillar p { font-size: .92rem; color: #c9c9e4; }
.pillar p + p { margin-top: .8rem; }

/* ---------- Passion points ---------- */
.passion-stat {
  margin-top: .9rem; font-size: .85rem; font-weight: 600;
  color: var(--yellow) !important;
}

/* ---------- Tabs (passion points / ad formats) ---------- */
.tabs { max-width: 1200px; margin: 0 auto; }
.tablist {
  display: flex; flex-wrap: wrap; gap: .7rem;
  justify-content: center; margin-bottom: 2.2rem;
}
.tab {
  font-family: var(--font); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .6rem 1.4rem; border-radius: 999px;
  background: transparent; color: var(--white);
  border: 2px solid var(--navy-600); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.tab.is-active {
  background: var(--teal); border-color: var(--teal); color: var(--ink);
}
.tab-panel { animation: tab-fade .22s ease; }
@keyframes tab-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.passion-panel {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.4rem;
  align-items: center; max-width: 1000px; margin: 0 auto;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 2.4rem 2.4rem;
}
.passion-copy h3 { color: var(--teal); font-size: 1.5rem; margin-bottom: .7rem; }
.passion-copy p { color: #c9c9e4; font-size: 1rem; }
.passion-highlight {
  color: var(--yellow); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  padding-left: 1.6rem; border-left: 3px solid var(--yellow);
}

/* ---------- 2026 moments ---------- */
.moments-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 1.4rem; }
.moment-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.2rem;
  align-items: start; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--navy-600);
}
.moment-row:last-child { border-bottom: none; padding-bottom: 0; }
.moment-label {
  color: var(--teal); text-transform: uppercase;
  letter-spacing: .1em; font-size: .85rem; font-weight: 700;
  padding-top: .25rem;
}
.moment-row .chips { margin-top: 0; }

/* ---------- Audience dimension chips ---------- */
.targeting .section-intro { max-width: 820px; margin-inline: auto; }
.dimension-chips { justify-content: center; margin-top: 2.4rem; }
.dimension-chips span { font-size: .8rem; padding: .4rem 1rem; }

/* ---------- Format group titles ---------- */
.group-title {
  display: flex; align-items: center; gap: 1.2rem;
  max-width: 1200px; margin: 2.8rem auto 1.2rem;
  color: var(--white); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.group-title::after {
  content: ''; flex: 1; height: 1px; background: var(--navy-600);
}

/* ---------- Why Adsmovil ---------- */
.impact-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; max-width: 1100px; margin: 0 auto; text-align: center;
}
.impact-stats .stat-number { font-size: 2.8rem; }

/* ---------- Secciones ---------- */
.section { padding: 5rem 5vw; }
.section-dark { background: var(--navy-800); }
.section-mid { background: var(--navy-700); }
.section-light { background: var(--gray-100); color: var(--ink); }

.section-head { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.section-head h2, .targeting h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500; line-height: 1.2;
}
.section-head .big {
  display: inline-block;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800; text-transform: uppercase;
}
.accent { color: var(--teal); }
.n-white { color: var(--white); }
.on-light .n-white, h2.on-light { color: var(--ink); }
.section-intro { margin-top: 1.2rem; color: #c9c9e4; }
.section-intro.on-light { color: #4a4a68; }

.icon-frame {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1.2rem;
  color: var(--teal);
}
.icon-frame svg { width: 100%; height: 100%; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem; max-width: 1200px; margin: 0 auto;
}
.product-card {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.product-card h3 { color: var(--teal); font-size: 1.15rem; margin-bottom: .6rem; }
.product-card p { font-size: .92rem; color: #c9c9e4; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chips span {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: 999px;
  background: var(--navy-800); color: var(--yellow);
  border: 1px solid var(--navy-600);
}

/* ---------- Targeting ---------- */
.targeting { text-align: center; }
.targeting-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 2rem; max-width: 1100px; margin: 2.2rem auto 0;
  text-align: left;
}
.target-col { padding-left: 1.1rem; border-left: 2px solid var(--navy-600); }
.target-col h3 {
  color: var(--yellow); text-transform: uppercase;
  letter-spacing: .1em; font-size: .92rem; margin-bottom: .35rem;
}
.target-col p { color: #c9c9e4; font-size: .9rem; line-height: 1.5; }

/* ---------- Nuestra.TV ---------- */
.nuestra {
  background:
    linear-gradient(120deg, rgba(108, 75, 216, .35), rgba(27, 27, 61, .9)),
    var(--navy-900);
}
.nuestra-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; max-width: 1100px; margin: 0 auto;
}
.nuestra-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  min-height: 280px;
  overflow: hidden;
}
.nuestra-logo { margin: .6rem 0 1.2rem; }
.nuestra-logo img { width: min(340px, 70vw); height: auto; }
.nuestra-copy p:not(.nuestra-logo):not(.eyebrow) { color: #d5d5ec; }

/* ---------- Publishers ---------- */
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem; max-width: 1100px; margin: 0 auto;
}
.pub-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 10px 30px rgba(27, 27, 61, .08);
}
.pub-card h3 {
  color: var(--ink); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.05rem; margin-bottom: .6rem;
}
.pub-card p { color: #4a4a68; font-size: .93rem; }

/* ---------- Updates ---------- */
.pill-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.pill {
  font-family: var(--font); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .65rem 1.8rem; border-radius: 999px;
  background: transparent; color: var(--white);
  border: 2px solid var(--white); cursor: pointer;
  transition: all .18s;
}
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.active { background: var(--teal); border-color: var(--teal); color: var(--ink); }

.updates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem; max-width: 1100px; margin: 0 auto;
}
.update-card {
  background: var(--navy-700); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--navy-600);
  transition: transform .18s, border-color .18s;
}
.update-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.update-card a { color: inherit; text-decoration: none; display: block; }
.update-card a:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.update-thumb { aspect-ratio: 16 / 9; background: var(--navy-800); }
.update-card .tag {
  display: inline-block; margin: 1rem 1.2rem 0;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--yellow);
}
.update-card h3 { font-size: .98rem; font-weight: 600; padding: .4rem 1.2rem .3rem; }
.update-date { padding: 0 1.2rem 1.4rem; font-size: .8rem; color: #8f8fb8; }
.pill.is-active { background: var(--teal); border-color: var(--teal); color: var(--ink); }

/* ---------- Páginas de nota ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 3.5rem 5vw 4rem; }
.back-link {
  display: inline-block; margin-bottom: 2rem;
  color: var(--teal); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.back-link:hover { text-decoration: underline; }
.article-meta {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-bottom: 1rem; font-size: .82rem; color: #8f8fb8;
}
.article-meta .tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--yellow);
}
.article h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.18;
  margin-bottom: 1.2rem;
}
.article-lede { font-size: 1.1rem; color: var(--teal); font-weight: 500; line-height: 1.6; }
.article-figure { margin: 2.4rem 0; }
.article-figure img { width: 100%; border-radius: var(--radius); display: block; }
.article-body { margin-top: 2.4rem; color: #c9c9e4; font-size: 1rem; line-height: 1.75; }
.article-body p + p { margin-top: 1.2rem; }
.article-body strong { color: var(--white); }
.article-body h2 {
  margin: 2.6rem 0 1rem; font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--white);
}
.article-body ul { margin: 1.2rem 0 0 1.1rem; display: grid; gap: .7rem; }
.article-body li::marker { color: var(--teal); }
.article-body blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.6rem;
  border-left: 3px solid var(--teal);
}
.article-body blockquote p { color: var(--white); font-size: 1.08rem; font-style: italic; }
.article-body cite {
  display: block; margin-top: .8rem; font-style: normal;
  font-size: .85rem; font-weight: 600; color: var(--yellow);
}
.figures-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 2.6rem 0 0; text-align: center;
}
.figure-stat {
  background: var(--navy-700); border: 1px solid var(--navy-600);
  border-radius: var(--radius); padding: 1.4rem 1rem;
}
.figure-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--teal); line-height: 1.1; }
.figure-label { font-size: .8rem; color: #b9b9d9; }
.article-cta {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--navy-600);
  text-align: center;
}
.article-cta p { color: #c9c9e4; margin-bottom: 1.2rem; }

/* ---------- Our story ---------- */
.story-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  align-items: center; max-width: 1100px; margin: 0 auto;
}
.story-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
.story-copy .big { font-weight: 800; text-transform: uppercase; }
.story-lede { font-size: 1.25rem; font-weight: 600; margin: .8rem 0 1rem; }
.story-copy p:last-child { color: #c9c9e4; }
.story-media .circle-media { width: min(360px, 70vw); }

/* ---------- Contact ---------- */
.contact-form { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font); font-size: .95rem;
  width: 100%; padding: .9rem 1.1rem;
  border-radius: 10px; border: 1px solid var(--navy-600);
  background: var(--navy-700); color: var(--white);
}
.contact-form ::placeholder { color: #8f8fb8; }
.contact-form select:invalid { color: #8f8fb8; }
.contact-form button { justify-self: center; margin-top: .6rem; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { text-align: center; font-size: .78rem; color: #8f8fb8; }
.form-status {
  text-align: center; font-size: .88rem; color: #b9b9d9; min-height: 1.4em;
}
.form-status.is-ok { color: var(--teal); font-weight: 600; }
.form-status.is-error { color: #ff9a9a; font-weight: 600; }

/* ---------- Careers ---------- */
.careers {
  padding: 2.8rem 5vw;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-600);
  border-bottom: 1px solid var(--navy-600);
}
.careers-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.careers h2 {
  font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal); margin-bottom: .5rem;
}
.careers p { color: #c9c9e4; font-size: .95rem; }
.careers a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.careers a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 2.6rem 5vw;
  background: var(--navy-900); color: #8f8fb8; font-size: .85rem;
}
.site-footer .logo { display: block; margin-bottom: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .nuestra-inner, .story-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .targeting-grid, .pub-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .moment-row { grid-template-columns: 1fr; gap: .5rem; }
  .impact-stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .figures-row { grid-template-columns: 1fr; }
  .passion-panel { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.8rem 1.4rem; }
  .tablist { gap: .5rem; }
  .tab { font-size: .74rem; padding: .5rem 1rem; }

  .main-nav {
    position: fixed; inset: 0; top: 64px;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--navy-900);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .diamond-decor { display: none; }
}
