/* ==========================================================================
   OliMedia — Landing "Producción de Vídeo para RRSS y Eventos" (/produccion-digital/)
   Hoja de estilos EXCLUSIVA de esta página. Solo se carga aquí (ver
   inc/produccion-digital.php → pd_assets). Todas las clases usan el
   prefijo .pd- para no chocar con el resto del tema.
   Reutiliza a propósito los tokens y componentes globales de style.css
   (--green, --ink, .btn, .form, .grid-3, .info-card, .reveal, .cta-final…)
   para mantener coherencia visual total con olimedia.es.
   ========================================================================== */

.pd-page { background: var(--bg); }
.pd-page section { position: relative; }

/* ---------- Header minimalista ---------- */
.pd-header .header__inner {
  padding-block: 16px;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.pd-header__cta {
  flex: none;
  margin-left: auto;
  padding: 11px 20px;
  font-size: .86rem;
}
@media (max-width: 560px) {
  .pd-header__cta span { display: none; }
  .pd-header__cta::after { content: "Info"; }
}

/* ---------- Hero ---------- */
.pd-hero { padding-top: clamp(48px, 8vw, 88px); }
.pd-hero h1 { margin: 14px 0 6px; }
.pd-hero__line2 {
  display: block;
  color: var(--green);
}
.pd-hero__sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 46em;
  margin: 18px 0 30px;
}
.pd-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.pd-cta-row .btn--text {
  font-weight: 600;
  color: var(--brown);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.pd-cta-row .btn--text:hover { color: var(--green); border-color: var(--green); }
.pd-micro {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .86rem;
  color: var(--text-muted);
  margin-top: 20px;
}
.pd-micro svg { flex: none; color: var(--green); }

/* ---------- Visual conceptual del hero (reel / vídeo vertical) ---------- */
.pd-reelvisual {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(160deg, var(--ink) 0%, #262220 60%, var(--brown) 130%);
  border-radius: 20px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  color: #fff;
}
.pd-reelvisual__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); display: inline-block; }
.pd-reelvisual__dots { display: flex; gap: 6px; margin-bottom: 18px; }
.pd-reelvisual__body { display: flex; gap: 16px; align-items: flex-start; }
.pd-reelvisual__screen {
  position: relative;
  flex: none;
  width: 128px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: linear-gradient(200deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-reelvisual__badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(0,0,0,.35);
  padding: 3px 7px 3px 6px;
  border-radius: 999px;
}
.pd-reelvisual__badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e2574c;
  display: inline-block;
  animation: pdLivePulse 1.4s ease-in-out infinite;
}
@keyframes pdLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pd-reelvisual__play {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: grid; place-items: center;
  color: #fff;
}
.pd-reelvisual__captions {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-reelvisual__captions span {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,.3);
}
.pd-reelvisual__captions span:first-child { width: 90%; }
.pd-reelvisual__captions span:last-child { width: 58%; background: rgba(255,255,255,.18); }
.pd-reelvisual__stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.pd-reelvisual__stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.pd-reelvisual__stat svg { flex: none; color: var(--green); }
.pd-reelvisual__slot {
  margin-top: 18px;
  border: 1.5px dashed rgba(255,255,255,.32);
  border-radius: 13px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.04);
}
.pd-reelvisual__slot-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.pd-reelvisual__slot-text { flex: 1; }
.pd-reelvisual__slot-tag {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); display: block; margin-bottom: 3px;
}
.pd-reelvisual__slot-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.34); width: 78%; }
.pd-reelvisual__slot-line + .pd-reelvisual__slot-line { width: 52%; margin-top: 6px; background: rgba(255,255,255,.2); }
@media (prefers-reduced-motion: reduce) {
  .pd-reelvisual__badge i { animation: none; opacity: .8; }
}
@media (max-width: 768px) {
  .pd-reelvisual { max-width: 420px; margin: 0 auto; }
}

/* ---------- Frase de impacto ---------- */
.pd-impact {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 9vw, 100px) 0;
}
.pd-impact__quote {
  color: #fff;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  max-width: 18em;
  margin: 0 auto;
}
.pd-impact__sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 34em;
  margin: 20px auto 34px;
}

/* ---------- Proceso: preproducción / rodaje / edición ---------- */
.pd-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}
.pd-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 168px;
}
.pd-flow__icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.pd-flow__step strong { font-size: 1.02rem; color: var(--brown); }
.pd-flow__step span { font-size: .88rem; color: var(--text-muted); }
.pd-flow__arrow { color: var(--gray); flex: none; }
@media (max-width: 680px) {
  .pd-flow { flex-direction: column; gap: 26px; }
  .pd-flow__arrow { transform: rotate(90deg); }
}

/* ---------- Inversión ---------- */
.pd-invest { text-align: center; }
.pd-invest__card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(30px, 5vw, 46px);
}
.pd-invest__text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.5;
}
.pd-invest__note {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Formulario ---------- */
.pd-form-section .section-head { margin-bottom: 30px; }
.pd-form-wrap { max-width: 640px; margin: 0 auto; }
.pd-form-wrap .form__row--3 { grid-template-columns: 1fr 1fr; }
.pd-form-counter {
  display: block;
  text-align: right;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.pd-form-counter.is-max { color: var(--green-dark); font-weight: 600; }

.pd-form-note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Franja de prueba social, justo encima del formulario */
.pd-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0 auto 34px;
}
.pd-proof strong { color: var(--brown); }

/* Éxito tras enviar */
.pd-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(36px, 5vw, 54px) clamp(24px, 5vw, 40px);
}
.pd-success__icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
  animation: pdSuccessPop .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pdSuccessPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pd-success p { color: var(--text-muted); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pd-success__icon { animation: none; } }

/* Honeypot: oculto para personas, visible para bots que ignoran CSS */
.pd-hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer minimalista ---------- */
.pd-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.pd-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: .84rem;
  color: var(--text-muted);
}
.pd-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.pd-footer__legal a { color: var(--text-muted); transition: color var(--t); }
.pd-footer__legal a:hover { color: var(--green); }

/* ---------- Popup de cierre ---------- */
.pd-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pd-popup.is-open { display: flex; }
.pd-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.pd-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  text-align: center;
  background: linear-gradient(160deg, var(--ink) 0%, #262220 60%, var(--brown) 130%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 40px);
  box-shadow: 0 40px 90px -30px rgba(20,20,20,.6);
  animation: pdPopupIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes pdPopupIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-popup__dialog h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 14px;
}
.pd-popup__dialog p {
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  margin: 0 0 26px;
}
.pd-popup__x {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--t);
}
.pd-popup__x:hover { background: rgba(255,255,255,.22); }
body.pd-popup-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pd-popup__dialog { animation: none; } }

/* ---------- Barra CTA fija (móvil) ---------- */
.pd-stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px -18px rgba(20,20,20,.25);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .3s ease;
  display: none;
}
.pd-stickybar.is-visible { transform: translateY(0); }
.pd-stickybar .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .pd-stickybar { display: block; }
}

/* ---------- Ajustes responsive generales de la landing ---------- */
@media (max-width: 768px) {
  .pd-form-wrap .form__row--3 { grid-template-columns: 1fr; }
  .pd-reelvisual__body { flex-direction: column; align-items: center; text-align: center; }
  .pd-reelvisual__stats { flex-direction: row; justify-content: center; }
}
