/* ============================================================
   Abogados de Confianza — Mockup Fase 5 (driver: soft-skill)
   Vibe: Soft Structuralism · Layout: Editorial Split + Bento
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #10222e;
  --muted: #55636e;
  --blue: #16455c;    /* azul institucional (petróleo del logo) — pedido Willeams 2026-07 */
  --blue-deep: #16455c;   /* petróleo del logo */
  --petrol: #123748;
  --blue-soft: #e9f1f6;
  --gold: #e2ab2e;        /* dorado del logo */
  --wa: #1fb355;
  --hair: rgba(10, 20, 40, 0.08);
  --shadow-soft: 0 24px 60px -28px rgba(13, 43, 107, 0.22);
  --shadow-float: 0 40px 90px -40px rgba(13, 43, 107, 0.28);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);       /* carácter suave (drawer iOS) — para movimientos con personalidad */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* respuesta a interacción — feedback inmediato */
  --r-outer: 2rem;
  --r-inner: calc(2rem - 0.4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

.serif-accent { font-family: "Fraunces", serif; font-style: italic; font-weight: 500; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 7.5rem 0; }
@media (max-width: 768px) { section { padding: 4.5rem 0; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair); background: var(--surface);
  border-radius: 999px; padding: 6px 14px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--blue-deep);
  box-shadow: 0 8px 24px -16px rgba(13, 43, 107, 0.25);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- Headings ---------- */
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
}
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); font-weight: 400; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head p { margin-top: 1rem; }
/* Secciones de contenido angosto (FAQ, checklist, form): el bloque completo se centra */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.faq, .checklist, .form-card, .team-grid { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; padding: 10px 12px 10px 26px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer; border: none;
}
/* Press: feedback inmediato — el botón "escucha" al usuario */
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
/* Red de seguridad: el padding base asume orb a la derecha; sin orb, simétrico y misma altura */
.btn:not(:has(.orb)) { padding: 16px 26px; }
.btn .orb {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 18px 40px -18px rgba(22, 69, 92, 0.6); }
.btn-primary .orb { background: rgba(255, 255, 255, 0.16); color: var(--gold); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair), 0 12px 30px -20px rgba(13, 43, 107, 0.3);
}
.btn-ghost .orb { background: rgba(31, 179, 85, 0.12); }
/* Hover solo donde existe hover real (evita estados pegados en táctil) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .orb { transform: translate(3px, -1px) scale(1.06); }
  .btn-primary:hover { box-shadow: 0 22px 50px -18px rgba(22, 69, 92, 0.75); transform: translateY(-2px); }
  .btn-ghost:hover { transform: translateY(-2px); }
}
.btn svg { width: 15px; height: 15px; }

/* ---------- Floating nav ---------- */
.nav-shell {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; padding: 20px 16px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 18px 50px -24px rgba(13, 43, 107, 0.35);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
footer .brand img { height: 42px; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 600;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav .btn { padding: 8px 8px 8px 20px; font-size: 0.85rem; }
.nav .btn .orb { width: 30px; height: 30px; }

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); position: relative; cursor: pointer; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease-out;
}
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transition-duration: 0.35s; }
.mobile-menu a {
  text-decoration: none; color: var(--ink); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  transition-delay: 0s; /* salida: todos a la vez, rápido */
}
.menu-open .mobile-menu a { transform: translateY(0); opacity: 1; }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.04s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.09s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.14s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.19s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.24s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.29s; }

@media (max-width: 980px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .nav { gap: 14px; padding: 8px 10px 8px 18px; }
}

/* ---------- Double bezel ---------- */
.bezel {
  background: rgba(10, 20, 40, 0.045);
  border: 1px solid var(--hair);
  border-radius: var(--r-outer);
  padding: 0.4rem;
}
.bezel > .core {
  background: var(--surface);
  border-radius: var(--r-inner);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 1px 0 rgba(10, 20, 40, 0.03);
  overflow: hidden;
  height: 100%;
}

/* ---------- Hero ---------- */
.hero { padding: 11rem 0 6rem; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -12%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 79, 216, 0.1), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero h1 { margin: 1.4rem 0 1.3rem; }
.hero .price-line { font-weight: 700; font-size: 1.06rem; margin-top: 1.1rem; }
.hero .price-line strong { color: var(--blue); font-size: 1.35rem; letter-spacing: -0.02em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }
.rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 2.2rem;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.rating b { color: var(--ink); }

.hero-visual { position: relative; }
.hero-visual .photo { aspect-ratio: 4 / 4.6; }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip {
  position: absolute; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hair); border-radius: 18px; padding: 12px 18px;
  box-shadow: var(--shadow-soft); font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.chip b { display: block; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em; }
.chip-1 { top: 8%; left: -9%; }
.chip-2 { bottom: 10%; right: -7%; }

@media (max-width: 900px) {
  .hero { padding: 8.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .chip-1 { left: 4%; } .chip-2 { right: 4%; }
}

/* ---------- Cards / bento ---------- */
.cards-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cards-3 .card-wide { grid-column: 1 / -1; }
.service-card .core { padding: 2.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.service-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.service-card h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.service-card p { color: var(--muted); font-size: 0.96rem; }
.service-card .price { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin-top: auto; }
.service-card .price small { font-weight: 600; color: var(--muted); font-size: 0.8rem; letter-spacing: 0; display: block; }
.card-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 1rem;
  font-weight: 700; font-size: 0.9rem; color: var(--blue); text-decoration: none;
}
.card-link .orb {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card-link:hover .orb { transform: translate(3px, -1px) scale(1.08); }
}
.card-link svg { width: 13px; height: 13px; }
.card-wide .core { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.8rem 2.4rem; }
@media (max-width: 820px) {
  .cards-3 { grid-template-columns: 1fr; }
  .card-wide .core { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step .core { padding: 2.2rem; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem; font-size: 1rem;
  box-shadow: 0 12px 26px -12px rgba(28, 79, 216, 0.55);
}
.step p { color: var(--muted); font-size: 0.94rem; margin-top: 0.5rem; }
.step .days { display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 5px 12px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5 .step .core { padding: 1.6rem; }
@media (max-width: 820px) { .steps, .steps-4, .steps-5 { grid-template-columns: 1fr; } }
.steps-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.2rem; }
.block-deep .steps-note { color: rgba(255, 255, 255, 0.65); }
.gbp-link { display: inline-block; margin-top: 1rem; font-size: 0.88rem; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Ventajas ---------- */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.perk .core { padding: 2.2rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.perk .ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 16px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.perk .ico svg { width: 20px; height: 20px; }
.perk p { color: var(--muted); font-size: 0.94rem; margin-top: 0.3rem; }
@media (max-width: 820px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 760px; }
.member .core { padding: 0.9rem; }
.member img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top; border-radius: calc(var(--r-inner) - 0.5rem); display: block; }
.member .info { padding: 1.2rem 0.8rem 0.7rem; }
.member .info small { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 22px; margin-bottom: 0.9rem; overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out);
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 1.6rem;
  font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.6rem 1.4rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 0.9rem; max-width: 720px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 18px; padding: 1.1rem 1.4rem; font-weight: 600; font-size: 0.97rem;
}
.checklist li::before {
  content: "✓"; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(31, 179, 85, 0.12); color: var(--wa);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}
.checklist li span { color: var(--muted); font-weight: 400; display: block; font-size: 0.88rem; }

/* ---------- Form ---------- */
.form-card { max-width: 720px; }
.form-card .core { padding: 2.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--hair); border-radius: 14px;
  padding: 13px 16px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 69, 92, 0.12);
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--muted); margin-top: 1.4rem; cursor: pointer; }
.form-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band .core {
  padding: 4rem 3rem; text-align: center;
  background: linear-gradient(150deg, var(--petrol) 0%, var(--blue-deep) 55%, #1d5f7d 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-band .core::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 60%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 0.8rem; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; }
.cta-band .btn-ghost { background: #fff; }

/* ---------- Footer ---------- */
footer { padding: 5rem 0 8rem; border-top: 1px solid var(--hair); margin-top: 4rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-grid h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.foot-grid a, .foot-grid p { color: var(--muted); text-decoration: none; font-size: 0.9rem; display: block; margin-bottom: 0.55rem; overflow-wrap: anywhere; }
.foot-grid a { transition: color 0.15s ease; }
.foot-grid a[href^="mailto:"] { white-space: nowrap; overflow-wrap: normal; font-size: 0.8rem; letter-spacing: -0.01em; }

/* ---------- Blog (listado /blog/ + post) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 1020px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card .core { display: flex; flex-direction: column; gap: 0.7rem; padding: 2rem; text-decoration: none; color: inherit; height: 100%; }
.blog-date { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.blog-card h3 { line-height: 1.35; }
.blog-card p { color: var(--muted); font-size: 0.92rem; }
.blog-more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: 0.9rem; }
.blog-pagination { margin-top: 3rem; text-align: center; }
.blog-pagination .nav-links { display: inline-flex; gap: 0.6rem; align-items: center; }
.blog-pagination .page-numbers { padding: 0.45rem 0.9rem; border-radius: 8px; text-decoration: none; color: var(--muted); }
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover { color: var(--ink); background: rgba(22, 69, 92, 0.08); }
.post-hero-img { margin: -1.5rem 0 2.2rem; }
.post-hero-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px -28px rgba(11, 36, 51, 0.45); }
.blog-card .blog-thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 0.5rem; }
.post-content { line-height: 1.75; }
.post-content p { color: var(--muted); margin-bottom: 1.15rem; }
.post-content h2 { margin: 2.4rem 0 0.9rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.post-content h3 { margin: 1.9rem 0 0.7rem; font-size: 1.15rem; }
.post-content ul, .post-content ol { margin: 0 0 1.15rem 1.3rem; color: var(--muted); }
.post-content li { margin-bottom: 0.45rem; }
.post-content a { color: var(--blue); }
.post-content blockquote { border-left: 3px solid var(--blue); padding-left: 1.2rem; margin: 1.6rem 0; color: var(--muted); font-style: italic; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.foot-grid a:hover { color: var(--ink); }
.foot-claims { font-size: 0.86rem; color: var(--muted); margin-top: 1rem; max-width: 300px; }
.legal-row { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .form-card .core { padding: 1.8rem 1.3rem; }
  .card-wide .core, .service-card .core { padding: 1.8rem 1.5rem; }
}

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: none; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--hair);
}
.sticky-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px; font-weight: 800; font-size: 0.92rem; text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
/* CTA principal en móvil: se presiona decenas de veces — feedback inmediato */
.sticky-bar a:active { transform: scale(0.96); transition-duration: 0.1s; }
.sticky-bar .wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -14px rgba(31, 179, 85, 0.6); }
.sticky-bar .tel { background: var(--ink); color: #fff; }
.sticky-bar svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .sticky-bar { display: flex; } }

/* ---------- Bloques de color ---------- */
.block-deep {
  background: linear-gradient(160deg, var(--petrol) 0%, var(--blue-deep) 60%, #1d5f7d 100%);
  position: relative;
}
.block-deep h2, .block-deep h3 { color: #fff; }
.block-deep .lead, .block-deep p { color: rgba(255, 255, 255, 0.72); }
.block-deep .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.block-deep .eyebrow::before { background: var(--gold); }
.block-deep .bezel { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.block-deep .bezel > .core { box-shadow: none; }
.block-deep .step h3, .block-deep .service-card h3, .block-deep .perk h3 { color: var(--ink); }
.block-deep .step p, .block-deep .service-card p, .block-deep .perk p { color: var(--muted); }
.block-soft { background: var(--blue-soft); }

/* ---------- Hero en bloque profundo (LPs) ---------- */
.hero-deep { color: #fff; }
.hero-deep h1 { color: #fff; }
.hero-deep .lead { color: rgba(255, 255, 255, 0.75); }
.hero-deep .price-line { color: rgba(255, 255, 255, 0.9); }
.hero-deep .price-line strong { color: var(--gold); }
.hero-deep .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.hero-deep .eyebrow::before { background: var(--gold); }
.hero-deep .rating { color: rgba(255, 255, 255, 0.75); }
.hero-deep .rating b { color: #fff; }
.hero-deep::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%); }
.hero-deep .btn-ghost { background: rgba(255, 255, 255, 0.98); }

/* ---------- Google Reviews ---------- */
.reviews-head { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.score-card { display: flex; align-items: center; gap: 1.1rem; }
.score-card .big { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.score-card .meta .stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 3px; display: block; }
.score-card .meta span { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.g-badge { height: 84px; width: auto; border-radius: 14px; box-shadow: var(--shadow-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card .core { padding: 1.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.review-card blockquote { font-size: 0.97rem; color: var(--ink); font-weight: 500; line-height: 1.55; }
.review-card .who { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-top: auto; display: flex; align-items: center; gap: 8px; }
.review-card .who::before { content: "G"; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } .score-card .big { font-size: 3.2rem; } }

/* ---------- Aviso fuera de horario ---------- */
.hours-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 20, 40, 0.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  /* salida rápida (el sistema responde); entrada con carácter (abajo) */
  opacity: 0; transition: opacity 0.22s ease-out;
}
.hours-modal.in { opacity: 1; transition: opacity 0.4s var(--ease); }
.hours-card { max-width: 460px; width: 100%; transform: translateY(24px) scale(0.97); transition: transform 0.25s var(--ease-out); }
.hours-modal.in .hours-card { transform: translateY(0) scale(1); transition: transform 0.5s var(--ease); }
.hours-card .core { padding: 2.6rem 2.2rem; text-align: center; position: relative; overflow: visible; }
.hours-card h3 { font-size: 1.35rem; margin-top: 1.1rem; letter-spacing: -0.02em; }
.hours-card p { color: var(--muted); font-size: 0.95rem; margin: 0.8rem 0 1.6rem; }
.hours-card .btn { justify-content: center; width: 100%; }
.hours-card .hours-alt { display: block; margin-top: 1.1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hours-card .hours-alt:hover { color: var(--ink); }
.hours-card .hours-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hair); background: var(--bg); font-size: 1.05rem; line-height: 1;
  cursor: pointer; color: var(--muted); transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.hours-card .hours-close:hover { color: var(--ink); transform: scale(1.06); }
.hours-card .hours-close:active { transform: scale(0.94); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.d1 { transition-delay: 0.07s; } .d2 { transition-delay: 0.14s; } .d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mobile-menu a, .hours-card { transform: none; transition: opacity 0.2s ease; }
  * { animation: none !important; }
}
