/* ============================================
   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; }

/* ---------- 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: 2rem; max-width: 1100px; margin: 2.6rem auto 0;
}
.target-col h3 {
  color: var(--yellow); text-transform: uppercase;
  letter-spacing: .1em; font-size: 1rem; margin-bottom: .6rem;
}
.target-col p { color: #c9c9e4; font-size: .95rem; }

/* ---------- 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(3, 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);
}
.update-thumb { aspect-ratio: 16 / 9; }
.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 1.4rem; }

/* ---------- 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; }
.form-note { text-align: center; font-size: .78rem; color: #8f8fb8; }

/* ---------- 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, .updates-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .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; }
}
