/* Lucas Edits — minimalista: fondo negro, Poppins de YT Jobs y botones rojos. */
:root {
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #aaa;
  --dim: #777;
  --red: #f04848;
  --red-hover: #ff5a5a;
  --red-deep: #3b1719;
  --red-text: #ff6767;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --titulo: 'Poppins', system-ui, sans-serif;
  --cuerpo: 'Open Sans', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--cuerpo); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--titulo); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
mark { white-space: nowrap; background: var(--red); color: #fff; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

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

/* ── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 8px; border: 1px solid transparent;
  background: var(--red); color: #fff; font: 600 16px/1.2 var(--titulo); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn-grande { min-height: 60px; padding: 0 36px; font-size: 18px; border-radius: 10px; }
.btn-sec { background: var(--red-deep); color: var(--red-text); }
.btn-sec:hover { background: #4d1d20; }
.enlace { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.enlace:hover { color: #fff; }

/* ── Pantallas de una sola vista (inicio y estilo) ───── */
body.una-pantalla { overflow: hidden; }
body.una-pantalla .pie { display: none; }
.pantalla {
  position: relative; min-height: 100vh; min-height: 100dvh; padding: 80px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 48px); text-align: center;
}
.titulo { font-size: clamp(32px, 5vw, 56px); font-weight: 600; line-height: 1.2; max-width: 16em; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.atras {
  position: absolute; top: 24px; left: var(--gutter); display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font: 500 15px/1 var(--titulo);
}
.atras:hover { color: #fff; }
.atras svg { width: 16px; }
@media (max-width: 600px) {
  .botones { flex-direction: column; width: 100%; max-width: 360px; }
}

/* ── Trabajos ────────────────────────────────────────── */
.seccion { padding: clamp(56px, 8vw, 96px) 0; }
.trabajos { position: relative; padding-top: 96px; }
.trabajos .atras { top: 28px; }
.trabajos .titulo { text-align: center; margin: 0 auto 40px; }
.grilla { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grilla > * { min-width: 0; }
.tarjeta { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--card); }
.tarjeta video, .tarjeta img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.tarjeta .ver {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55);
  font: 600 16px/1 var(--titulo); opacity: 0; transition: opacity .2s;
}
.tarjeta:hover .ver, .tarjeta:focus-visible .ver { opacity: 1; }
.tarjeta:hover video, .tarjeta:hover img { transform: scale(1.03); }
.tarjeta .pastilla {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px;
  background: var(--red); font: 700 12px/1.2 var(--titulo); transition: opacity .2s;
}
.tarjeta:hover .pastilla { opacity: 0; }
@media (hover: none) { .tarjeta .ver { opacity: 0; } }

/* ── Secciones de abajo ──────────────────────────────── */
.subtitulo { font-size: clamp(26px, 3.4vw, 38px); text-align: center; }
.bajada { color: var(--muted); text-align: center; margin: 12px auto 0; max-width: 34em; }
.resultados { display: grid; gap: 14px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.resultado { background: var(--card); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.resultado .cifra { font: 700 clamp(34px, 4vw, 44px)/1 var(--titulo); color: var(--red); }
.resultado p { color: var(--muted); font-size: 15px; }
.resultado .enlace { margin-top: auto; align-self: flex-start; padding-top: 6px; font-size: 14px; }
.cta { text-align: center; }
.cta .btn { margin-top: 30px; }
.mail { margin-top: 16px; color: var(--dim); font-size: 14px; }
.planes { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.plan { background: var(--card); border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; border: 1px solid transparent; }
.plan.destacado { border-color: var(--red); }
.plan h3 { font-size: 18px; font-weight: 600; color: var(--muted); }
.precio { margin-top: 10px; font: 700 38px/1.1 var(--titulo); }
.precio small { font: 400 14px/1 var(--cuerpo); color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--red); }
.plan .btn { margin-top: auto; width: 100%; }

/* ── Footer ──────────────────────────────────────────── */
.pie { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: 14.5px; }
.pie-grilla { display: grid; gap: 28px; grid-template-columns: 1.2fr repeat(3, 1fr); }
.pie h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie a { text-decoration: none; color: var(--muted); }
.pie a:hover { color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 19px/1 var(--titulo); color: #fff !important; margin-bottom: 12px; }
.logo svg { width: 28px; color: var(--red); }
.pie-abajo { margin-top: 36px; color: var(--dim); font-size: 13px; }
@media (max-width: 800px) { .pie-grilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pie-grilla { grid-template-columns: 1fr; } }

/* ── Modales ─────────────────────────────────────────── */
.modal {
  width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: 14px; background: #161616; color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.modal.modal-chico { width: min(900px, calc(100vw - 24px)); background: #141414; }
.modal::backdrop { background: rgba(0,0,0,.85); }
.modal[open] { animation: entrar .2s ease-out; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
.cerrar {
  position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 0; cursor: pointer; display: grid; place-items: center;
}
.cerrar svg { width: 16px; }
.detalle-media { background: #000; }
.detalle-media video, .detalle-media img { width: 100%; max-height: 70vh; object-fit: contain; }
.detalle-cuerpo { padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; max-width: 760px; }
.detalle-cuerpo h2 { font-size: clamp(24px, 3vw, 32px); }
.para { color: var(--muted); margin-top: -6px; }
.dato { color: var(--red); font: 700 20px/1.2 var(--titulo); }
.texto { color: #ddd; white-space: pre-line; }
.para a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.para a:hover { color: var(--red); text-decoration-color: currentColor; }
.bloque { display: grid; gap: 6px; }
.bloque h3 { font: 600 15px/1.3 var(--titulo); color: #fff; }
.nota { padding: 12px 14px; border-radius: 10px; background: var(--card); color: var(--muted); font-size: 15px; }
.nota a { color: #fff; }
.detalle-cuerpo .btn { justify-self: start; margin-top: 10px; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; margin-top: 6px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 48px; border-radius: 12px; background: var(--red); display: grid; place-items: center; }
.yt .play svg { width: 24px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.galeria { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 6px; }
.galeria figure { margin: 0; border-radius: 10px; overflow: hidden; background: #000; }
.galeria figure:only-child { grid-column: 1 / -1; }
.galeria video, .galeria img { width: 100%; }
.galeria figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--card); }

/* Antes / después con deslizador */
.comparar { position: relative; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.comparar > .despues, .comparar > .antes { width: 100%; }
.comparar .antes { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--corte, 50%)) 0 0); }
.comparar video, .comparar img { width: 100%; max-height: 70vh; object-fit: contain; }
.comparar .linea { position: absolute; top: 0; bottom: 0; left: var(--corte, 50%); width: 2px; translate: -50% 0; background: #fff; pointer-events: none; }
.comparar .linea::after { content: ''; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E") center/20px no-repeat; }
.comparar input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparar .rotulo { position: absolute; top: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0,0,0,.7); font: 600 12px/1 var(--titulo); text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.comparar .rotulo.izq { left: 12px; }
.comparar .rotulo.der { right: 12px; background: var(--red); }

/* Formulario de contacto: título grande y campos en píldora, como la referencia que pasó Lucas */
.form { padding: clamp(28px, 5vw, 48px); display: grid; gap: 18px; }
.form h2 { font: 800 clamp(40px, 7vw, 64px)/1 var(--titulo); letter-spacing: -.02em; text-align: center; margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; padding: 22px 26px; border-radius: 34px; border: 1px solid transparent; background: #1e1e1e; color: #fff; font: 400 17px/1.4 var(--cuerpo);
}
.form textarea { min-height: 220px; resize: vertical; }
.form ::placeholder { color: #8a8a8a; }
.form input:focus, .form textarea:focus { outline: none; border-color: #3a3a3a; background: #222; }
.fila { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.enviar { width: 100%; padding: 22px; border-radius: 34px; border: 0; background: #1e1e1e; color: #fff; font: 500 17px/1 var(--titulo); cursor: pointer; transition: background .15s; }
.enviar:hover { background: var(--red); }
@media (max-width: 560px) { .fila { grid-template-columns: 1fr; } }

/* Envío del formulario */
.form .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-aviso { text-align: center; color: #ddd; font-size: 15px; }
.form-aviso.error { color: #ff8a8a; }
.form-aviso a { color: #fff; }
.form-listo { text-align: center; color: var(--muted); font-size: 17px; margin: -6px 0 12px; }
.enviar:disabled { opacity: .6; cursor: default; background: #1e1e1e; }

/* Botón de contacto debajo de la grilla */
.trabajos-cta { display: flex; justify-content: center; margin-top: 56px; }
/* Secciones que terminan en "Let's work together": el botón queda a la misma distancia de arriba y de abajo */
.con-cta { padding-bottom: 0; }
.con-cta + .seccion { padding-top: 56px; }

/* Testimonios, con el formato de un comentario de YouTube */
.testimonios { display: grid; gap: 14px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.testimonio { background: var(--card); border-radius: 14px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.testimonio header { display: flex; align-items: center; gap: 14px; }
.testimonio .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #333; display: block; flex: none; }
.t-nombre { font: 600 17px/1.2 var(--titulo); }
.t-nombre a { color: #fff; text-decoration: none; }
.t-nombre a:hover { text-decoration: underline; }
.t-subs { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.t-texto { color: #e8e8e8; font-size: 17px; line-height: 1.6; }

/* Pricing de un solo plan: tarjeta ancha */
.planes.solo { grid-template-columns: 1fr; }
.planes.solo .plan { padding: clamp(28px, 4vw, 44px); border-color: #2a2a2a; }
.planes.solo .precio span { font-size: clamp(48px, 6vw, 64px); }
/* La unidad se tiene que leer de un vistazo: que nadie lea "$50 por video" */
.planes.solo .precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.planes.solo .precio small { font: 600 clamp(19px, 2.2vw, 24px)/1.2 var(--titulo); color: #fff; }
.planes.solo ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; margin: 26px 0 34px; }
.planes.solo li { color: #ddd; font-size: 16px; }
.plan-nota { background: #232323; border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 26px; }
.planes.solo .btn { padding-block: 18px; font-size: 17px; }

/* Pricing por estilo (3D): clip de muestra arriba, unidad legible y "See examples" (Lucas, 2026-10-02:
   que nadie lea "$200" como precio del video entero). */
.plan-muestra { display: block; width: calc(100% + 52px); margin: -28px -26px 22px; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.plan-muestra video, .plan-muestra img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.plan-muestra:hover video { transform: scale(1.03); }
.plan:has(.plan-muestra) h3 { color: #fff; font-size: 22px; }
.plan:has(.plan-muestra) .precio { display: flex; flex-direction: column; gap: 6px; }
.plan:has(.plan-muestra) .precio span { font-size: clamp(44px, 4.4vw, 54px); }
.plan:has(.plan-muestra) .precio small { font: 600 18px/1.25 var(--titulo); color: #fff; }
.plan:has(.plan-muestra) ul { margin: 20px 0 18px; }
.plan-ejemplos { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 22px; color: var(--red); font: 600 15px/1.4 var(--titulo); cursor: pointer; }
.plan-ejemplos:hover { text-decoration: underline; }
.detalle-cuerpo.ejemplos { max-width: none; }
.ejemplos .dato { margin-bottom: 18px; }
.ejemplos .galeria { margin-bottom: 26px; }
.ejemplo-clip { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
/* Todos en 16:9: los más anchos (PF-029, 2.39:1) llevan barras negras arriba y abajo. */
.ejemplo-clip video, .ejemplo-clip img { display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

/* FAQ (2026-10-03): filas oscuras redondeadas con un "+" en círculo que gira a "×" al abrir. */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq-item { background: var(--card); border-radius: 16px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font: 600 17px/1.4 var(--titulo); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mas { flex: none; position: relative; width: 30px; height: 30px; border: 1.5px solid var(--muted); border-radius: 50%; transition: transform .2s; }
.faq-mas::before, .faq-mas::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); }
.faq-mas::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mas { transform: rotate(45deg); }
.faq-item summary:hover .faq-mas { border-color: #fff; }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 820px; }
.seccion:has(.planes) + .seccion:has(.faq) { padding-top: 0; }

/* Texto solo para lectores de pantalla, buscadores e IAs: no ocupa lugar en pantalla. */
.solo-lector { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
