/* ==========================================================================
   Portada (rediseño): menos texto, letra legible y más aire.
   Usa la paleta de style.css: --paper, --ink, --rose, --wine, --line, --serif, --sans
   ========================================================================== */

:root {
  --h-max: 1180px;
  --h-card: #181314;
  --h-card-2: #1f181a;
  --h-soft: #cdbfbe;
  --h-muted: #a8999a;
  /* mismo rosa de marca que la webcam */
  --h-grad: linear-gradient(135deg, #e6336f, #b5245a);
  --h-radius: 18px;
}
body { background: #0f0c0d; }

/* ---------- cabecera (todas las páginas): igual que la barra de la webcam ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: none;
  height: 64px;
  margin: 0;
  padding: 0 max(20px, calc((100vw - 1600px) / 2 + 20px));
  background: rgba(15, 12, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 238, 235, 0.08);
}
.site-header .brand { font: 700 17px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; gap: 10px; }
.site-header .brand-logo-mark { width: 34px; height: 34px; }
.site-header nav { gap: 4px; font-size: 14px; color: #b5a8a9; }
.site-header nav a { padding: 7px 12px; border-radius: 8px; font-weight: 600; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--ink); background: #221a1d; }
.site-header nav .nav-contact {
  margin-left: 6px;
  border: 0;
  background: var(--h-grad);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(230, 51, 111, 0.35);
}
.site-header nav .nav-contact span { color: #ffd3df; margin-left: 6px; }
.site-header nav .nav-contact:hover { color: #fff; background: var(--h-grad); filter: brightness(1.08); }
.site-footer { background: #0a0809; }
.notice { top: 84px; }

/* ---------- base ---------- */
.h-home { font-size: 16px; line-height: 1.65; }
.h-home h1, .h-home h2, .h-home h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.h-home h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 10px 0 0; }
.h-home h2 em, .h-home h1 em { font-style: italic; color: var(--rose); }
.h-home p { margin: 0; }
.h-kicker {
  margin: 0;
  font: 700 12px/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 700 15px/1 var(--sans);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn-primary { background: var(--h-grad); box-shadow: 0 10px 30px rgba(192, 77, 116, 0.35); }
.h-btn-primary:hover { filter: brightness(1.08); }
.h-btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 238, 235, 0.22); color: var(--ink); }
.h-btn-ghost:hover { border-color: var(--rose); background: rgba(215, 133, 157, 0.08); }
.h-btn-block { width: 100%; }

.h-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d79;
  box-shadow: 0 0 10px #ff4d79;
  animation: wcPulse 1.4s infinite;
}

.h-section {
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 96px 28px;
  border-top: 1px solid var(--line);
}
.h-head { max-width: 720px; margin-bottom: 44px; }
.h-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-head-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.h-link { color: var(--rose); font-weight: 700; font-size: 15px; }
.h-link:hover { color: #f0a9bd; }

/* ---------- portada ---------- */
.h-hero {
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 72px 28px 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.h-hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; margin: 18px 0 22px; }
.h-lead { font-size: 18px; line-height: 1.7; color: var(--h-soft); max-width: 540px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 30px 0 0; }
.h-chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: #dccfce;
  background: rgba(255, 255, 255, 0.02);
}
.h-chips li::before { content: '✓'; color: var(--rose); margin-right: 8px; font-weight: 700; }

.h-hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  width: 100%;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #3b2129 0%, #1d1517 55%, #141011 100%);
  overflow: hidden;
}
.h-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 133, 157, 0.35), transparent 70%);
  filter: blur(20px);
}
.h-hero-art img {
  position: relative;
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7));
}

/* ---------- ventajas ---------- */
.h-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-feature {
  padding: 28px 24px;
  background: var(--h-card);
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.h-feature:hover { border-color: rgba(215, 133, 157, 0.45); transform: translateY(-3px); }
.h-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(215, 133, 157, 0.12);
  font-size: 22px;
}
.h-feature h3 { font-size: 22px; margin: 18px 0 10px; }
.h-feature p { font-size: 15px; color: var(--h-muted); }

/* ---------- directos ---------- */
.h-live { position: relative; }
.h-badge, .h-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.h-badge { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.h-badge-live { background: rgba(255, 77, 121, 0.14); color: #ff7b9c; }
.h-cams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-cam {
  display: flex;
  flex-direction: column;
  background: var(--h-card);
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.h-cam:hover { transform: translateY(-4px); border-color: rgba(255, 77, 121, 0.5); }
.h-cam-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #0d0a0b; }
.h-cam-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-cam:not(.is-live) .h-cam-media img { filter: saturate(0.8) brightness(0.85); }
.h-cam-status, .h-cam-viewers {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.72);
  color: #e9dddd;
}
.h-cam-status { left: 10px; }
.h-cam-viewers { right: 10px; }
.h-cam.is-live .h-cam-status { background: #ff245a; color: #fff; }
.h-cam-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.h-cam-body strong { font-size: 16px; color: var(--ink); }
.h-cam-body strong small { font-weight: 400; color: var(--h-muted); font-size: 14px; }
.h-cam-body span { font-size: 14px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-empty { padding: 32px; border: 1px dashed var(--line); border-radius: var(--h-radius); text-align: center; color: var(--h-muted); }
.h-live-cta {
  margin-top: 24px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: var(--h-radius);
  background: linear-gradient(135deg, rgba(192, 77, 116, 0.14), rgba(147, 51, 234, 0.08)), var(--h-card);
  border: 1px solid rgba(215, 133, 157, 0.25);
}
.h-live-cta p { color: var(--h-soft); max-width: 720px; font-size: 15px; }
.h-live-cta strong { color: var(--ink); }

/* ---------- pasos ---------- */
.h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.h-steps li { padding: 28px; background: var(--h-card); border: 1px solid var(--line); border-radius: var(--h-radius); }
.h-step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--h-grad);
  color: #fff;
  font: 700 16px var(--sans);
}
.h-steps h3 { font-size: 22px; margin: 18px 0 8px; }
.h-steps p { color: var(--h-muted); font-size: 15px; }

/* ---------- preguntas ---------- */
.h-faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.h-faq-wrap .h-head { margin-bottom: 0; position: sticky; top: 110px; }
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq details:first-child { border-top: 1px solid var(--line); }
.h-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  font: 500 19px/1.35 var(--serif);
  color: #f0e4e2;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; font: 400 24px var(--sans); color: var(--rose); transition: transform 0.2s ease; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { padding: 0 40px 20px 0; color: var(--h-muted); font-size: 15px; }

/* ---------- contacto ---------- */
.h-contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.h-contact-info p:not(.h-kicker) { margin-top: 16px; color: var(--h-soft); font-size: 17px; }
.h-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.h-checks li { font-size: 15px; color: #dccfce; }
.h-checks li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: rgba(215, 133, 157, 0.15); color: var(--rose); font-size: 12px; font-weight: 700; }
.h-direct { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 15px; }
.h-direct a { color: var(--rose); }

.h-form {
  padding: 32px;
  background: var(--h-card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.h-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #120f10; }
.h-seg legend { font-size: 13px; color: var(--h-muted); padding: 0 6px; }
.h-seg label { position: relative; cursor: pointer; }
.h-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.h-seg span { display: block; padding: 11px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 15px; color: #cbbcbc; transition: background 0.18s ease, color 0.18s ease; }
.h-seg input:checked + span { background: var(--h-grad); color: #fff; }
.h-seg input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.h-field { display: block; margin: 0 0 14px; font-size: 14px; color: #d7cbcb; }
.h-field input, .h-field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #45363a;
  background: #120f10;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease;
}
.h-field input[type=file] { padding: 10px; font-size: 14px; }
.h-field input:focus, .h-field textarea:focus { border-color: var(--rose); }
.h-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.h-more { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.h-more summary { cursor: pointer; padding: 13px 0; color: var(--rose); font-weight: 700; font-size: 14px; }
.h-more[open] { padding-bottom: 6px; }
.h-form .check { font-size: 14px !important; color: #cbbcbc !important; margin: 10px 0 !important; }
.h-form .check input { width: 18px; height: 18px; }
.h-form .h-btn-block { margin-top: 12px; }
.h-form-foot { margin-top: 12px !important; text-align: center; font-size: 13px; color: var(--h-muted); }

/* ---------- app ---------- */
.h-app {
  max-width: calc(var(--h-max) - 56px);
  margin: 0 auto 96px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--h-card-2);
}
.h-app-icon { display: grid; place-items: center; flex: 0 0 56px; height: 56px; border-radius: 16px; background: rgba(61, 220, 132, 0.12); color: #3ddc84; }
.h-app-copy { flex: 1; min-width: 0; }
.h-app-copy h2 { font-size: 24px !important; margin: 0 0 4px !important; }
.h-app-copy p { color: var(--h-muted); font-size: 15px; }
.h-app-help { margin-top: 8px; font-size: 14px; color: var(--h-muted); }
.h-app-help summary { cursor: pointer; color: var(--rose); font-weight: 700; }
.h-app-help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- página de acceso privado ---------- */
.login-webcam-hint {
  display: grid;
  gap: 4px;
  margin: 6px 0 26px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(215, 133, 157, 0.35);
  background: rgba(215, 133, 157, 0.08);
  font-size: 14px;
  color: var(--h-soft);
}
.login-webcam-hint strong { color: var(--ink); }
.login-webcam-hint .button { margin-top: 10px; }

/* ---------- adaptable ---------- */
@media (max-width: 1000px) {
  .h-features, .h-cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-faq-wrap, .h-contact { grid-template-columns: 1fr; gap: 32px; }
  .h-faq-wrap .h-head { position: static; }
}
@media (max-width: 760px) {
  .h-hero { grid-template-columns: 1fr; padding: 40px 18px 56px; gap: 32px; }
  .h-hero-art { justify-self: center; max-width: 340px; border-radius: 24px; }
  .h-lead { font-size: 17px; }
  .h-section { padding: 64px 18px; }
  .h-head { margin-bottom: 28px; }
  .h-steps { grid-template-columns: 1fr; }
  .h-form { padding: 22px 18px; }
  .h-row { grid-template-columns: 1fr; gap: 0; }
  .h-app { flex-direction: column; align-items: flex-start; margin: 0 18px 64px; padding: 22px; }
  .h-app .h-btn { width: 100%; }
  .h-faq details p { padding-right: 0; }
}
@media (max-width: 480px) {
  .h-features, .h-cams { grid-template-columns: 1fr; }
  .h-actions .h-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .h-live-dot { animation: none; }
  .h-btn, .h-feature, .h-cam { transition: none; }
}
