/* ==========================================================================
   gbg digital · sistema de diseño de demos
   Paleta neutra por defecto; cada demo la sobreescribe en su propio <style>.
   Variables de marca esperadas por página:
     --brand, --brand-deep, --accent, --accent-soft
   ========================================================================== */

:root {
  --ground: #F4F1EC;
  --surface: #FBFAF7;
  --ink: #16211E;
  --muted: #5E6E69;
  --brand: #0E5A54;
  --brand-deep: #0A423E;
  --accent: #E28A72;
  --accent-soft: #F2C9BC;
  --line: #E0DBD1;
  --shadow: 20px 40px 80px -40px rgba(20, 30, 28, .35);
  --radius: 18px;
  --maxw: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --on-brand: #FBFAF7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101917;
    --surface: #16211E;
    --ink: #ECEFEA;
    --muted: #9FB0AA;
    --line: #263531;
    --shadow: 20px 40px 90px -40px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.serif { font-family: var(--serif); }

/* Header / nav */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.brand .mark svg { width: 20px; height: 20px; }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav .links a:hover { color: var(--ink); }
.nav .phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav .phone svg { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, color .2s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: #25D366; color: #06331A; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .6); }
.nav .btn { margin-left: 4px; }
@media (max-width: 920px) { .nav .links, .nav .phone { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 92px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-top: 16px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 22px; max-width: 32em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .assurance { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hero .assurance svg { color: var(--brand); flex: none; }
.rating-inline { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.rating-inline .stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.rating-inline strong { color: var(--ink); }

/* Hero visual */
.visual {
  position: relative; aspect-ratio: 4 / 4.3; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 55%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end; padding: 26px;
}
.visual .glyph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .96; }
.visual .glyph svg { width: 52%; height: auto; color: var(--on-brand); filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.visual .float {
  position: relative; z-index: 2; background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 13px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); width: 100%; color: var(--ink);
}
.visual .float .dot { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); display: grid; place-items: center; color: var(--accent); flex: none; }
.visual .float .txt strong { display: block; font-size: 14px; }
.visual .float .txt span { font-size: 12.5px; color: var(--muted); }
.visual .badge {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--brand);
  font-size: 12px; font-weight: 700; padding: 8px 13px; border-radius: 999px;
  display: flex; align-items: center; gap: 7px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4);
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.trust .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
@media (max-width: 720px) { .trust .row { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
.stat .num { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); color: var(--brand); font-variant-numeric: tabular-nums; }
.stat .lab { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Section scaffolding */
section.block { padding: clamp(56px, 9vw, 92px) 0; }
.head { max-width: 42em; margin-bottom: 46px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-top: 14px; }
.head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* Cards / servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .3s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); margin-bottom: 20px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.card .price { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* Split "por qué" + testimonio */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 20px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.ticks li svg { color: var(--brand); margin-top: 3px; }
.ticks li strong { display: block; font-size: 16.5px; }
.ticks li span { color: var(--muted); font-size: 15px; }
.panel {
  border-radius: 22px; padding: 34px; color: var(--on-brand);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow);
}
.panel .stars { color: var(--accent-soft); letter-spacing: 3px; margin-bottom: 14px; }
.panel .q { font-family: var(--serif); font-size: 23px; line-height: 1.35; font-style: italic; }
.panel .who { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.panel .who .av { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, white); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--brand-deep); flex: none; }
.panel .who .n { font-size: 15px; font-weight: 600; }
.panel .who .r { font-size: 13px; opacity: .8; }

/* Galería (tiles de degradado, sin imágenes externas por CSP) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.tile {
  aspect-ratio: 1 / 1; border-radius: 16px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 16px; color: #fff;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  box-shadow: var(--shadow);
}
.tile:nth-child(2) { background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--brand-deep))); }
.tile:nth-child(3) { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 60%, var(--accent)), var(--brand-deep)); }
.tile:nth-child(4) { background: linear-gradient(160deg, var(--brand-deep), var(--brand)); }
.tile .lab { position: relative; z-index: 2; font-size: 13.5px; font-weight: 600; }
.tile .ic { position: absolute; top: 14px; right: 14px; opacity: .5; }

/* Reseñas (grid de tarjetas) */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.review p { margin-top: 12px; font-size: 15.5px; }
.review .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review .who .av { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 18%, var(--surface)); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); flex: none; }
.review .who .n { font-size: 14.5px; font-weight: 600; }
.review .who .r { font-size: 12.5px; color: var(--muted); }

/* FAQ (details/summary, sin JS) */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; padding: 0 0 18px; }

/* CTA / formulario */
.cta-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(34px, 5vw, 58px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; gap: 30px; } }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 42px); }
.cta-card p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.cta-card .phone-big { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--serif); font-size: 26px; color: var(--brand); font-weight: 600; }
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
form .btn-primary { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.okmsg { display: none; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; text-align: center; }

/* Footer */
footer { padding: 54px 0 96px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot .brand { font-size: 19px; margin-bottom: 12px; }
.foot .meta { font-size: 14px; color: var(--muted); }
.foot h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.foot ul a { color: var(--ink); opacity: .8; }
.foot ul a:hover { opacity: 1; color: var(--brand); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.demo-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 84px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 861px) { .wa-float { bottom: 24px; } }

/* Barra fija inferior (móvil) */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 600; font-size: 15px; background: var(--surface); }
.mobilebar a.call { color: var(--brand); }
.mobilebar a.cita { background: var(--brand); color: var(--on-brand); }
@media (max-width: 860px) { .mobilebar { display: grid; } .wa-float { bottom: 74px; } footer { padding-bottom: 90px; } }

/* Proceso / pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .n { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--brand); opacity: .4; line-height: 1; }
.step h3 { font-size: 18px; margin-top: 10px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Planes de precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .ptag { position: absolute; top: -12px; left: 28px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .pname { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan .pprice { font-family: var(--serif); font-size: 40px; color: var(--ink); margin: 12px 0 0; line-height: 1; }
.plan .pper { font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan li svg { color: var(--brand); margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.feat .btn { background: var(--brand); color: var(--on-brand); }

/* Carta / menú */
.menu-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .menu-groups { grid-template-columns: 1fr; gap: 32px; } }
.menu-group h3 { font-size: 20px; color: var(--brand); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mi { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.mi .mi-name { font-weight: 600; font-size: 16px; }
.mi .mi-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.mi .mi-price { font-family: var(--serif); color: var(--accent); font-weight: 600; white-space: nowrap; font-size: 16px; }

/* Horario (timetable) */
.sched { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.sched table { border-collapse: collapse; width: 100%; min-width: 620px; }
.sched th, .sched td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 13px 14px; text-align: center; font-size: 14px; }
.sched tr th:last-child, .sched tr td:last-child { border-right: none; }
.sched tbody tr:last-child td { border-bottom: none; }
.sched thead th { background: var(--surface); font-weight: 700; }
.sched td.time { font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; }
.sched td.cls { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); font-weight: 600; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.member { text-align: center; }
.member .av { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--on-brand); background: linear-gradient(160deg, var(--brand), var(--brand-deep)); box-shadow: var(--shadow); }
.member h3 { font-size: 17px; }
.member .role { color: var(--brand); font-size: 13.5px; font-weight: 600; margin-top: 3px; }
.member p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Marcas / sellos (pills) */
.brands { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brands .pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 15px; color: var(--muted); }

/* Banner destacado */
.banner { background: linear-gradient(160deg, var(--brand), var(--brand-deep)); color: var(--on-brand); border-radius: 22px; padding: clamp(26px,4vw,40px); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.banner .bt { font-family: var(--serif); font-size: clamp(22px,3vw,32px); }
.banner .bs { opacity: .88; margin-top: 8px; font-size: 15.5px; max-width: 42em; }
.banner .btn { background: var(--on-brand); color: var(--brand); }
.banner .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }

/* Especialidades / lo que tratamos (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; transition: border-color .2s, transform .2s; }
.chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.chip svg { color: var(--brand); flex: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
