/* ============================================================
   ReservAI — Estilos compartidos de páginas estáticas de SEO
   Usado por: precios.html, barberias.html, spas-y-salones.html,
              clinicas-y-consultorios.html, restaurantes.html
   Depende de colors_and_type.css (tokens de marca)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  font-family: var(--font-sans);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.page { position: relative; z-index: 1; }

/* ── Navbar ── */
.nav-wrap { position: sticky; top: 0; z-index: 100; padding: 20px; }
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px; padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav-logo { height: 40px; width: auto; display: block; }
/* flex-wrap: con 7 enlaces el nav ya no cabe en una fila por debajo de ~1000px.
   Sin esto, .nav-links empuja la página y provoca scroll horizontal. */
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.62); text-decoration: none;
  padding: 10px 16px; border-radius: 40px;
  font-size: .93rem; transition: all .2s ease;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { color: #fff; background: rgba(9,131,214,.14); font-weight: 600; }
/* Punto azul de la página actual — mismo gesto que el navbar de la home */
.nav-link.active::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #0983d6; flex-shrink: 0;
  animation: navDot .35s ease .1s both;
}
@keyframes navDot {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.nav-cta {
  background: #0983d6; color: #fff !important; text-decoration: none;
  padding: 12px 26px; border-radius: 40px; font-weight: 700; font-size: .93rem;
  box-shadow: 0 4px 14px rgba(9,131,214,.35);
  transition: all .25s ease; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(9,131,214,.5); }

/* ── Marca de éxito (página de gracias) ── */
.exito-marca {
  width: 72px; height: 72px; border-radius: 50%; background: #0983d6;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 0 0 8px rgba(9,131,214,.15);
}

/* ── Migas de pan ── */
.crumbs {
  max-width: 900px; margin: 0 auto; padding: 8px 24px 0;
  font-size: .82rem; color: #666;
}
.crumbs a { color: #888; text-decoration: none; }
.crumbs a:hover { color: #0983d6; }
.crumbs span { color: #555; margin: 0 6px; }

/* ── Hero de página ── */
.hero {
  max-width: 860px; margin: 0 auto;
  padding: 48px 24px 20px; text-align: center;
}
.badge {
  display: inline-block; background: rgba(9,131,214,.12);
  border: 1px solid rgba(9,131,214,.25); border-radius: 40px;
  padding: 6px 16px; font-size: .75rem; font-weight: 600;
  color: #0983d6; margin-bottom: 20px;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font-size: 2.9rem; font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 .accent { color: #0983d6; }
.hero .lead {
  color: #A0A0A0; font-size: 1.08rem; line-height: 1.7;
  max-width: 640px; margin: 0 auto 32px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #0983d6; color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  display: inline-block; transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(9,131,214,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(9,131,214,.45); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  border: 2px solid #0983d6; display: inline-block; transition: all .25s ease;
}
.btn-ghost:hover { background: rgba(9,131,214,.14); color: #fff; }
.btn-wa {
  background: #25D366; color: #fff !important; text-decoration: none;
  padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 10px; transition: all .25s ease;
  box-shadow: 0 6px 16px rgba(37,211,102,.25);
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.35); }

/* ── Secciones ── */
.section { max-width: 900px; margin: 0 auto; padding: 56px 24px; }
.section.narrow { max-width: 760px; }
.section h2 {
  font-size: 2rem; font-weight: 700; color: #fff;
  letter-spacing: -.02em; line-height: 1.25; margin-bottom: 16px;
}
.section h2.center { text-align: center; margin-bottom: 36px; }
.section h3 { color: #fff; font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.section p { color: #A0A0A0; font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.section p:last-child { margin-bottom: 0; }
.section p strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* ── Tarjeta genérica ── */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px;
  backdrop-filter: blur(10px);
  transition: all .3s ease;
}
.card:hover { border-color: rgba(9,131,214,.45); transform: translateY(-3px); }
.card p { margin-bottom: 0; font-size: .93rem; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ── Lista con palomita ── */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding: 9px 0 9px 28px;
  color: #A0A0A0; font-size: .95rem; line-height: 1.6;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 9px;
  color: #0983d6; font-weight: 700;
}
.check-list li strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* ── Pasos ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; background: #0983d6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 auto 14px;
}
.step h3 { font-size: .95rem; margin-bottom: 6px; }
.step p { font-size: .85rem; line-height: 1.55; margin-bottom: 0; }

/* ── Planes ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.plan {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column;
}
.plan .check-list { flex: 1; }
.plan.featured { background: rgba(9,131,214,.09); border-color: #0983d6; }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #0983d6; color: #fff; padding: 4px 16px; border-radius: 20px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.plan h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.plan .plan-for { color: #777; font-size: .85rem; margin-bottom: 20px; line-height: 1.5; }
.plan .btn-primary, .plan .btn-ghost { width: 100%; text-align: center; margin-top: 20px; padding: 12px 20px; }

/* ── FAQ (sin JavaScript) ── */
.faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  transition: all .25s ease;
}
.faq-item[open] { background: rgba(9,131,214,.07); border-color: rgba(9,131,214,.45); }
.faq-item summary {
  padding: 17px 20px; cursor: pointer; color: #fff;
  font-weight: 600; font-size: .95rem; line-height: 1.45;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: #0983d6; font-size: 1.4rem;
  font-weight: 400; flex-shrink: 0; line-height: 1; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 18px; color: #B0B0B0;
  font-size: .92rem; line-height: 1.7;
  border-top: 1px solid rgba(9,131,214,.14); padding-top: 14px; margin-top: 0;
}

/* ── CTA final ── */
.cta-final {
  max-width: 760px; margin: 0 auto 40px; padding: 0 24px;
}
.cta-box {
  background: rgba(9,131,214,.08); border: 1px solid rgba(9,131,214,.4);
  border-radius: 20px; padding: 44px 36px; text-align: center;
  backdrop-filter: blur(10px);
}
.cta-box h2 { font-size: 1.75rem; margin-bottom: 12px; }
.cta-box p { max-width: 520px; margin: 0 auto 26px; }
.cta-box .hero-ctas { justify-content: center; }

/* ── Enlaces internos entre industrias ── */
.related { max-width: 900px; margin: 0 auto; padding: 0 24px 56px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #ccc; text-decoration: none; padding: 9px 18px;
  border-radius: 30px; font-size: .88rem; transition: all .2s ease;
}
.related-links a:hover { border-color: #0983d6; color: #fff; background: rgba(9,131,214,.14); }

/* ── Blog: índice ── */
.post-list { display: grid; gap: 18px; }
.post-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px 30px;
  transition: all .3s ease;
}
.post-card:hover {
  border-color: rgba(9,131,214,.5);
  transform: translateY(-3px);
  background: rgba(9,131,214,.06);
}
.post-card .post-meta {
  color: #0983d6; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.post-card h2 {
  font-size: 1.3rem; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: 10px; letter-spacing: -.01em;
}
.post-card:hover h2 { color: #fff; }
.post-card p { color: #A0A0A0; font-size: .93rem; line-height: 1.6; margin-bottom: 12px; }
.post-card .post-more { color: #0983d6; font-size: .88rem; font-weight: 600; }

/* ── Blog: artículo ── */
.article { max-width: 720px; margin: 0 auto; padding: 8px 24px 40px; }
.article-meta {
  color: #666; font-size: .82rem; margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.article-body > p:first-of-type {
  font-size: 1.1rem; color: #C4C4C4; line-height: 1.75;
}
.article-body p {
  color: #A8A8A8; font-size: 1.02rem; line-height: 1.85; margin-bottom: 22px;
}
.article-body h2 {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  line-height: 1.3; margin: 44px 0 16px; letter-spacing: -.01em;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600; color: #fff; margin: 28px 0 10px;
}
.article-body strong { color: rgba(255,255,255,.92); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article-body li {
  position: relative; padding: 8px 0 8px 26px;
  color: #A8A8A8; font-size: 1.02rem; line-height: 1.75;
}
.article-body ul > li::before {
  content: ''; position: absolute; left: 6px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%; background: #0983d6;
}
.article-body ol { counter-reset: step; }
.article-body ol > li { padding-left: 34px; }
.article-body ol > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(9,131,214,.16); color: #0983d6;
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.article-body li strong { color: rgba(255,255,255,.92); }
.article-body a { color: #0983d6; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #00AEEF; }
.article-cta {
  background: rgba(9,131,214,.08); border: 1px solid rgba(9,131,214,.35);
  border-radius: 16px; padding: 30px; margin-top: 40px; text-align: center;
}
.article-cta p { color: #C4C4C4; font-size: 1rem; margin-bottom: 20px; }
.article-cta .hero-ctas { justify-content: center; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 40px 20px 18px; margin-top: 20px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.footer-logo { height: 36px; width: auto; display: block; }
.footer-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer-link { color: #A0A0A0; text-decoration: none; font-size: .9rem; transition: color .3s; }
.footer-link:hover { color: #0983d6; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.social-wa { background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3); }
.social-wa:hover { background: #25D366; }
.social-ig { background: rgba(225,48,108,.1); border: 1px solid rgba(225,48,108,.3); }
.social-ig:hover { background: linear-gradient(135deg, #F77737, #E1306C, #833AB4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; text-align: center; }
.footer-copy { color: #666; font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* Entre 768 y 1150 se aprieta el nav para que los 7 enlaces sigan en una fila */
@media (max-width: 1150px) {
  .nav-inner { padding: 16px 22px; }
  .nav-link { padding: 9px 11px; font-size: .88rem; }
  .nav-cta { padding: 11px 20px; font-size: .88rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 20px; }
  .nav-logo { height: 32px; }
  .nav-cta { padding: 10px 18px; font-size: .85rem; }
  .hero { padding: 32px 20px 12px; }
  .hero h1 { font-size: 2.05rem; }
  .hero .lead { font-size: 1rem; }
  .section { padding: 40px 20px; }
  .section h2 { font-size: 1.65rem; }
  .grid-2, .grid-3, .plans { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 22px; }
  .cta-box h2 { font-size: 1.45rem; }
  .btn-primary, .btn-ghost, .btn-wa { width: 100%; text-align: center; justify-content: center; }
  .hero-ctas { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .steps { grid-template-columns: 1fr; }
}
