/* RG Productions — hoja de estilos compartida
   Tipos del sistema a propósito: Helvetica para leer, Impact para los "supers". */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a3a3a3;
  --line: #2b2b2b;
  --super: #ffd400;   /* amarillo de la barra del teléfono */
  --red: #e0141b;     /* rojo de "especiales" */

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --impact: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--super);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- encabezado ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  font-family: var(--impact);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 15px;
}
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.lang {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: none;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 3px 9px;
  cursor: pointer;
}
.lang:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 620px) {
  .top nav .hide-sm { display: none; }
}

/* ---------- hero con el loop del reel ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* oscurece abajo a la izquierda, donde vive el texto */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.45) 100%),
    linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%);
}

.hero .top,
.hero-body { position: relative; z-index: 1; width: 100%; }

.hero-body {
  margin-top: auto;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.hero h1 {
  font-family: var(--impact);
  font-weight: normal;
  font-size: clamp(54px, min(8.6vw, 14vh), 132px);
  line-height: 0.92;
  margin: 0;
  max-width: 11ch;
}

.hero .lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  max-width: 32em;
  margin: 22px 0 0;
}

/* la barra del teléfono, como en los comerciales */
.phonebar {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 44px);
}
.phonebar > * { padding: 10px 16px; display: flex; align-items: center; }
.phonebar .who {
  background: var(--red);
  font-family: var(--impact);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
}
.phonebar .num {
  background: var(--super);
  color: #000;
  font-family: var(--impact);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1;
  text-decoration: none;
}
.phonebar .num:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.phonebar .cta {
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
}

@media (max-width: 560px) {
  .phonebar { display: grid; grid-template-columns: 1fr; }
}

/* ---------- secciones ---------- */

.section { padding-top: clamp(72px, 11vw, 140px); }

.section h2 {
  font-family: var(--impact);
  font-weight: normal;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin: 0 0 clamp(24px, 4vw, 40px);
}

/* reproductor del demo reel */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}
.player img,
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}
.play .tri {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(68px, 9vw, 108px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.play .tri::before {
  content: "";
  margin-left: 12%;
  border-style: solid;
  border-width: 0.9em 0 0.9em 1.5em;
  border-color: transparent transparent transparent #fff;
  font-size: clamp(14px, 1.8vw, 20px);
}
.play:hover .tri { background: #b30f15; }
.player-caption {
  font-size: 15px;
  color: var(--muted);
  margin: 12px 0 clamp(40px, 6vw, 64px);
}

/* galería */
.reel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px) clamp(10px, 1.6vw, 20px);
}
.reel li { grid-column: span 2; }
.reel li.wide { grid-column: span 3; }

.reel button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.reel .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.reel .frame img { width: 100%; height: 100%; object-fit: cover; }
.reel .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
}
.reel .cap {
  display: block;
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.3;
}
.reel button:hover .cap { text-decoration: underline; text-underline-offset: 3px; }
.reel button:hover img { opacity: .85; }

@media (max-width: 860px) {
  .reel li, .reel li.wide { grid-column: span 3; }
}
@media (max-width: 520px) {
  .reel li, .reel li.wide { grid-column: span 6; }
}

.more { margin: 28px 0 0; font-size: 15px; }

/* servicios: nombre a la izquierda, explicación a la derecha */
.services {
  margin: 0;
  border-top: 3px solid var(--fg);
}
.services > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.services dt {
  font-weight: 700;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.2;
}
.services dd { margin: 0; max-width: 36em; }
.services dd p { margin: 0; }
.services dd p + p { margin-top: 8px; color: var(--muted); font-size: 15px; }

@media (max-width: 720px) {
  .services > div { grid-template-columns: 1fr; }
}

/* sobre Roberto */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 40px;
  border-top: 3px solid var(--fg);
  padding-top: 24px;
}
.about h2 { margin: 0; }
.about .text p { margin: 0 0 14px; max-width: 34em; }
.about .text p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- cierre: la tarjeta final del spot ---------- */

.endcard {
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--super);
  color: #000;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.endcard h2 {
  font-family: var(--impact);
  font-weight: normal;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.endcard .bignum {
  display: inline-block;
  font-family: var(--impact);
  font-size: clamp(58px, 13.5vw, 184px);
  line-height: 0.95;
  text-decoration: none;
}
.endcard .bignum:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 10px; }
.endcard .lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 40px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 2px solid #000;
  font-size: 16px;
}
.endcard .lines p { margin: 0; }
.endcard .lines span { display: block; font-size: 14px; font-weight: 700; }
.endcard .lines a { text-underline-offset: 3px; }
.endcard :focus-visible { outline-color: #000; }
@media (max-width: 720px) {
  .endcard .lines { grid-template-columns: 1fr; }
}

/* ---------- pie ---------- */

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 22px 0 34px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
footer p { margin: 0; }
footer a { color: #dcdcdc; }

/* ---------- visor de video ---------- */

dialog.viewer {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog.viewer .box { position: relative; aspect-ratio: 16 / 9; }
dialog.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
dialog.viewer .close {
  position: absolute;
  top: -44px;
  right: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: none;
  border: 2px solid #fff;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- páginas legales ---------- */

.legal {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: 80px;
}
.legal h1 {
  font-family: var(--impact);
  font-weight: normal;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  margin: 0 0 12px;
}
.legal .updated { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.legal article { max-width: 42em; }
.legal h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 40px 0 10px;
}
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal address { font-style: normal; }
.legal-foot { border-top: 1px solid var(--line); }

/* idioma: se oculta el que no está activo */
html[lang="es"] [data-lang-only="en"],
html[lang="en"] [data-lang-only="es"] { display: none; }
