/* Página /servicios — se apoya en /style.css (variables, nav, botones, secciones, footer)
   y agrega solo los componentes comerciales. Mobile first. */

:root {
  --wa: #25d366;
  --wa-hover: #1ebe5b;
}

.svc main { position: relative; z-index: 1; }

/* NAV */
.nav-wa {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #06110e;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.nav-wa:hover { background: var(--gold); }

/* BOTÓN WHATSAPP */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #06110e;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-wa:hover { background: var(--gold); transform: translateY(-2px); }
.btn-wa svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-wa-lg { padding: 17px 30px; font-size: 1.08rem; }

/* HERO */
.svc-hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: grid;
  gap: 44px;
}
.svc-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 22px;
}
.svc-intro img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  object-fit: cover;
}
.svc-hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.svc-hero-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 20px 0 30px;
}
.svc-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-hero-actions .btn { text-align: center; padding: 15px 24px; }
.svc-hero-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Agenda en vivo del hero */
.svc-demo-wrap { width: 100%; max-width: 380px; justify-self: center; }
.svc-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(94, 234, 212, 0.25);
}
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}
.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wa);
  background: rgba(37, 211, 102, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa);
  animation: blink 1.8s infinite;
}
.demo-title { font-weight: 600; font-size: 1.1rem; margin: 16px 0 12px; }
.demo-text { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; }
.demo-pro { margin-bottom: 14px; }
.demo-name { font-size: 0.85rem; color: var(--text-dim); }
.demo-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.demo-slots button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--accent-dim);
  background: none;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.demo-slots button:hover { background: var(--accent); color: #06110e; }
.skel .demo-name {
  display: block;
  width: 90px;
  border-radius: 6px;
  background: var(--border);
  animation: pulse 1.4s ease-in-out infinite;
}
.skel .demo-slots span {
  height: 33px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }
.demo-cta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.demo-cta:hover { background: var(--accent); color: #06110e; }
.demo-cta svg { width: 18px; height: 18px; }
.demo-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* SECCIONES */
.svc .section { padding: 72px 20px; }
.svc .section-label { margin-bottom: 12px; }
.svc-title {
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

/* PROBLEMAS */
.problem-grid { display: grid; gap: 14px; }
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s;
}
.problem-card:hover { border-color: var(--accent-dim); }
.problem-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.problem-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.problem-card h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 8px; }
.problem-card p { color: var(--text-dim); font-size: 0.96rem; }

/* CASOS */
.case-card {
  display: grid;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.case-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}
.case-card:hover .case-media img { transform: scale(1.03); }
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.case-info h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.case-info > p { color: var(--text-dim); margin-bottom: 16px; }
.case-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.case-link:hover { border-color: var(--accent); }

.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.testimonial {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
}
.testimonial p { font-style: italic; color: var(--text); }
.testimonial cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* PAQUETES */
.plan-grid { display: grid; gap: 16px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.08), var(--surface) 55%);
  box-shadow: 0 24px 50px -28px rgba(94, 234, 212, 0.45);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--accent);
  color: #06110e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 18px; }
.plan-card .check-list { margin-bottom: 22px; }
.plan-price {
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.plan-price strong { font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; color: var(--text); }
.plan-featured .plan-price strong { color: var(--accent); }
.plan-launch {
  display: inline-block;
  margin: -18px 0 28px;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.4);
  background: rgba(245, 196, 81, 0.08);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}
.plan-btn { text-align: center; }
.plan-note {
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 70ch;
}
.plan-note strong { color: var(--text); }
.plan-free {
  background: var(--accent);
  color: #06110e;
  padding: 1px 6px;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* PASOS */
.steps { list-style: none; display: grid; gap: 14px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--accent-dim); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 20px; color: var(--text-dim); }

/* CIERRE */
.svc-cta { text-align: center; }
.svc-cta h2 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.svc-cta p {
  color: var(--text-dim);
  max-width: 48ch;
  margin: 0 auto 30px;
}

/* FOOTER */
.svc-footer { padding-bottom: 96px; }
.svc-footer p + p { margin-top: 8px; }

/* WHATSAPP FLOTANTE */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.wa-float:hover { background: var(--wa-hover); transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ANIMACIÓN DE ENTRADA (la activa servicios.js) */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-init.is-visible { opacity: 1; transform: none; }

/* TABLET */
@media (min-width: 640px) {
  .svc-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .case-card { padding: 26px; }
}

/* DESKTOP */
@media (min-width: 900px) {
  .svc-hero {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: center;
    min-height: 82vh;
    padding: 40px 24px 80px;
  }
  .svc .section { padding: 90px 24px; }
  .case-card { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 28px; }
  .case-card:nth-of-type(even) .case-media { order: 2; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* AGENDA */
.step-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.step-link:hover { text-decoration: underline; }
.svc-cta-alt { margin: 18px auto 0; font-size: 0.95rem; }
.svc-cta-alt a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-dim); }

.booking-intro { color: var(--text-dim); margin: -18px 0 26px; max-width: 60ch; }
.booking {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  max-width: 820px;
}
.bk-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.bk-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.bk-day {
  flex: 0 0 68px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.bk-day:hover { border-color: var(--accent-dim); }
.bk-day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.bk-day .wd, .bk-day .mo { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; }
.bk-day .dn { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.bk-day[aria-pressed="true"] .dn { color: var(--accent); }
.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.bk-slot {
  padding: 11px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bk-slot:hover { border-color: var(--accent-dim); color: var(--accent); }
.bk-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #06110e; }

.bk-form { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
.bk-selected { font-weight: 600; margin-bottom: 16px; }
.bk-selected span { color: var(--accent); }
.bk-fields { display: grid; gap: 14px; margin-bottom: 20px; }
.bk-fields label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--text-dim); }
.bk-fields label span { color: var(--text-faint); }
.bk-fields input {
  font: inherit;
  font-size: 1rem; /* 16px evita el zoom automático en iPhone */
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.bk-fields input:focus { outline: none; border-color: var(--accent); }
.bk-fields input[aria-invalid="true"] { border-color: #f87171; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-submit { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.bk-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.bk-status { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }
.bk-status:empty { display: none; }
.bk-status.error { color: #fca5a5; }
.bk-status a, .bk-done a { color: var(--accent); font-weight: 600; }
.bk-done h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--accent); }
.bk-done p { color: var(--text-dim); }

@media (min-width: 640px) {
  .booking { padding: 28px; }
  .bk-fields { grid-template-columns: 1fr 1fr; }
  .bk-wide { grid-column: 1 / -1; }
  .bk-submit { width: auto; }
}

/* POPUP DE CONFIRMACIÓN */
.bk-dialog {
  margin: auto;
  width: min(420px, calc(100% - 32px));
  padding: 30px 24px 24px;
  border: 1px solid var(--accent-dim);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.bk-dialog[open] { animation: pop 0.25s ease-out; }
.bk-dialog::backdrop { background: rgba(5, 8, 12, 0.7); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
.bk-dialog-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.bk-dialog-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-dialog h3 { font-size: 1.4rem; margin-bottom: 10px; }
.bk-dialog p { color: var(--text-dim); margin-bottom: 22px; }
.bk-dialog p strong { color: var(--text); }
.bk-dialog-actions { display: flex; flex-direction: column-reverse; gap: 10px; }
.bk-dialog-actions .btn { text-align: center; border: none; cursor: pointer; font-family: inherit; }
.bk-dialog-actions .btn-ghost { border: 1px solid var(--border); }
@media (min-width: 480px) {
  .bk-dialog-actions { flex-direction: row; justify-content: center; }
}
