/* Estudio Castizo - site styles (home ES + EN, legal pages)
   Direction approved 8 Oct 2026 (briefs/01b): modern, friendly, full, bold.
   Type: Rethink Sans for everything; Caveat only for the 1-3 handwritten notes in the hero.
   Colour: ink + brand blue + highlight yellow + WhatsApp green (with DARK green text, never white).
   No orange and no red anywhere on the home.
   Shape: buttons 14px, panels 22-28px, phones as real device frames. Tilted phones only in hero + demo band.
   Light theme only (brand decision). No scroll animations. */

@font-face {
  font-family: "Rethink Sans";
  src: url("../fonts/rethink.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-notes.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #14213d;
  --ink-soft: #3b4a6b;
  --blue: #1f45a8;
  --blue-deep: #17357f;
  --yellow: #ffd23f;
  --wa: #25d366;
  --wa-hover: #1fbd5a;
  --wa-ink: #08331a;
  --sand: #f1ede4;
  --chat: #efeae2;
  --bubble-out: #d9fdd3;
  --white: #ffffff;
  --line: #e2ded4;
  --frame: #14213d;

  --r-btn: 14px;
  --r-panel: 24px;
  --r-big: 28px;
  --sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1260px;
  --g: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.1875rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.w, .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }

/* ---------- Buttons ---------- */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--wa); color: var(--wa-ink); border-radius: var(--r-btn); font-weight: 800; font-size: 1.1rem;
  text-decoration: none; white-space: nowrap;
}
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa:active { transform: translateY(1px); }
.btn-wa .icon { width: 1.35em; height: 1.35em; }
.btn-wa:focus-visible { outline-color: var(--ink); }
.text-link { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Header ---------- */
.top .w { display: flex; align-items: center; gap: 26px; padding-top: 20px; padding-bottom: 20px; }
.logo, .plaque {
  display: inline-flex; align-items: center; gap: .35em; background: var(--blue); color: #fff; text-decoration: none;
  padding: 9px 15px; border-radius: 10px; font-weight: 800; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
}
.plaque small, .plaque strong { font: inherit; }
.top nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-weight: 600; font-size: 1rem; }
.top nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.top nav a:hover { color: var(--blue); text-decoration: underline; }
.lang { display: inline-flex; align-items: center; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.lang span, .top nav .lang a { padding: 9px 12px; min-height: 40px; display: grid; place-items: center; }
.lang span { background: var(--ink); color: #fff; }
.lang a { color: var(--ink); text-decoration: none; }
.lang a:hover { background: var(--sand); }
.top .btn-wa { min-height: 46px; padding: 0 20px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(2.75rem, 6.6vw, 6rem); line-height: .97; letter-spacing: -.04em; text-wrap: balance; }
mark { background: var(--yellow); color: inherit; padding: 0 .1em; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero p { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin: 24px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 255px; aspect-ratio: 255 / 530; border-radius: 36px; border: 9px solid var(--frame); overflow: hidden;
  background: #fff; box-shadow: 0 24px 50px rgb(20 33 61 / .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.phones .p-antes { left: 4%; top: 64px; transform: rotate(-6deg); }
.phones .p-nueva { left: 46%; top: 18px; transform: rotate(4deg); }
.note { position: absolute; font: 700 2.15rem/1 var(--hand); color: var(--blue); white-space: nowrap; }
.phones .n-antes { left: 6%; top: 4px; transform: rotate(-4deg); }
.phones .n-nueva { left: 64%; top: 560px; }
.demo-chip { position: absolute; right: 2%; top: -8px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* ---------- Demo band ---------- */
.band { position: relative; background: var(--blue); color: #fff; overflow: hidden; margin-top: 24px; padding: 34px 0 0; }
.band::before { content: ""; position: absolute; inset: 0; background: url("../img/azulejos-800.webp") center / 300px repeat; opacity: .13; pointer-events: none; }
.band h2 { position: relative; text-align: center; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; padding: 0 var(--g); }
.band-sub { position: relative; text-align: center; margin-top: 8px; color: #e3e9ff; font-size: 1.05rem; padding: 0 var(--g); }
.band-row { position: relative; display: flex; justify-content: center; gap: 56px; padding: 40px var(--g) 0; height: 540px; }
.band-row li { flex: none; }
.band-row a { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: 36px; }
.band-row a:focus-visible { outline: 4px solid var(--yellow); outline-offset: 6px; }
.band-row .phone { position: relative; display: block; width: 250px; border-color: #0d1730; }
.band-row li:nth-child(1) a { transform: rotate(-7deg) translateY(24px); }
.band-row li:nth-child(2) a { transform: translateY(-4px); }
.band-row li:nth-child(3) a { transform: rotate(7deg) translateY(24px); }
.tag { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: #fff; color: var(--ink); font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgb(13 23 48 / .25); }
.band-row a:hover .tag { background: var(--yellow); }

/* ---------- Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.figures li { background: var(--sand); border-radius: var(--r-panel); padding: 30px; }
.figures b { display: inline-block; font-weight: 800; font-size: clamp(3.4rem, 5vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.figures li:nth-child(3) b { background: var(--yellow); padding: 0 .12em; border-radius: 12px; }
.figures span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Quién está detrás ---------- */
.who { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; padding-top: 24px; padding-bottom: 72px; }
.who h2, .section-title { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.03em; }
.who-lines { background: var(--sand); border-radius: var(--r-big); padding: clamp(26px, 4vw, 44px); }
.who-lines p { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.who-lines p + p { margin-top: 14px; }
.signature { margin-top: 22px; display: flex; align-items: center; gap: 14px; color: var(--blue); }
.signature svg { width: 150px; height: 66px; }
.signature span { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Así funciona (chat) ---------- */
.chat { background: var(--chat); border-radius: var(--r-big); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; }
.chat-intro p { margin-top: 14px; color: var(--ink-soft); font-size: 1.1rem; max-width: 34ch; }
.chat-label { display: inline-block; margin-top: 18px; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msgs li { max-width: 76%; padding: 12px 16px 8px; border-radius: 14px; font-size: 1.05rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(0 0 0 / .08); background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msgs li.out { background: var(--bubble-out); align-self: flex-end; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.msgs time { display: block; text-align: right; font-size: .8rem; color: #4d5a63; margin-top: 4px; }

/* ---------- Precios ---------- */
.prices { padding-top: 80px; padding-bottom: 24px; }
.prices > p { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }
.plans { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 30px; }
.plan { border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); background: var(--sand); }
.plan-main { grid-row: span 2; background: var(--ink); color: #fff; border-radius: var(--r-big); }
.plan h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.price { font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 12px; font-size: clamp(3rem, 4.6vw, 4.2rem); }
.plan-main .price { font-size: clamp(4rem, 7vw, 6.2rem); }
.price small { font-size: .3em; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.price .from { display: block; font-size: 1rem; letter-spacing: 0; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.plan-main .price .from, .plan-main .plan-note { color: #c9d3ea; }
.plan-main mark { color: var(--ink); }
.plan-note { margin-top: 10px; color: var(--ink-soft); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: .62em; width: 8px; height: 4px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.launch { margin-top: 18px; background: var(--yellow); border-radius: var(--r-btn); padding: 12px 18px; font-weight: 700; display: inline-block; }
.price-fine { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Preguntas ---------- */
.faq { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--sand); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.15rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 24px 20px; color: var(--ink-soft); max-width: 62ch; }
.faq details p + p { margin-top: -8px; }

/* ---------- Final CTA ---------- */
.cta { background: var(--blue); color: #fff; border-radius: var(--r-big); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("../img/azulejos-800.webp") center / 300px repeat; opacity: .1; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-weight: 800; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.04em; line-height: 1; }
.cta p { margin-top: 12px; color: #e3e9ff; font-size: 1.2rem; max-width: 40ch; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-actions .btn-wa { min-height: 60px; font-size: 1.2rem; padding: 0 30px; }
.cta-actions a.tel { color: #fff; font-weight: 700; font-size: 1.15rem; }
.cta a:focus-visible { outline-color: var(--yellow); }

/* ---------- Footer (home + legal) ---------- */
.foot { margin-top: 72px; border-top: 14px solid var(--blue); position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: url("../img/azulejos-800.webp") center / 120px repeat-x; opacity: .45; }
.foot .wrap, .foot .w { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; padding-top: 34px; padding-bottom: 40px; align-items: start; }
.foot p { color: var(--ink-soft); font-size: 1rem; margin-top: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 1rem; }
.foot nav a { color: var(--ink); padding: 8px 0; }
.foot .copy, .foot .fine { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 0; }

/* ---------- Legal pages ---------- */
.nav .wrap { display: flex; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.legal .wrap { max-width: 820px; padding-top: 20px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 18px 0 8px; }
.legal h2 { font-size: 1.4rem; font-weight: 800; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.08rem; }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }
.legal table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 1rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.updated { font-size: .95rem; color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.back .icon { transform: rotate(180deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .top nav > a:not(.btn-wa) { display: none; }
  .phones { height: 540px; }
  .phone { width: 225px; }
  .phones .n-nueva { top: 500px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero h1 { font-size: clamp(2.75rem, 11.4vw, 4.4rem); }
  .phones { height: 460px; max-width: 420px; width: 100%; margin: 6px auto 0; }
  .phone { width: 190px; border-width: 7px; border-radius: 30px; }
  .phones .p-antes { left: 2%; top: 56px; }
  .phones .p-nueva { left: 46%; top: 22px; }
  .phones .n-antes { left: 4%; top: 6px; font-size: 1.8rem; }
  .phones .n-nueva { left: auto; right: 2%; top: 418px; font-size: 1.8rem; }
  .demo-chip { top: auto; bottom: 0; left: 2%; right: auto; }
  .band-row { justify-content: flex-start; gap: 22px; height: auto; padding-bottom: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--g); }
  .band-row li { scroll-snap-align: start; }
  .band-row .phone { width: 62vw; max-width: 250px; }
  .band-row li a, .band-row li:nth-child(n) a { transform: none; }
  .tag { bottom: 18px; }
  .figures { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 14px; }
  .who, .chat, .faq { grid-template-columns: 1fr; gap: 22px; }
  .msgs li { max-width: 90%; }
  .plans { grid-template-columns: 1fr; }
  .plan-main { grid-row: auto; }
  .cta { grid-template-columns: 1fr; }
  .foot .wrap, .foot .w { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .top .w { gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: .85rem; padding: 8px 11px; }
  .top .btn-wa { padding: 0 14px; min-height: 44px; }
  .lang span, .top nav .lang a { padding: 8px 10px; min-height: 44px; }
  .top nav { gap: 10px; }
  .phones { height: 420px; }
  .phone { width: 168px; }
  .phones .p-nueva { left: 48%; }
  .phones .n-nueva { top: 380px; }
  .hero-cta .btn-wa { width: 100%; }
  .prices, .faq { padding-top: 56px; }
  .faq { padding-bottom: 56px; }
}
@media print { .top nav, .band, .cta { display: none; } }
