:root {
  --ink: #101e30;
  --ink-2: #0a1523;
  --teal: #0f8d86;
  --teal-dark: #0b6f6a;
  --mint: #8bdec6;
  --coral: #fd6f6a;
  --paper: #f6f8f7;
  --white: #ffffff;
  --muted: #556476;
  --line: #dfe6e4;
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 9vw, 5.6rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 6.4vw, 3.6rem); max-width: 16ch; }
h3 { font-size: 1.22rem; letter-spacing: -.02em; }
p { margin: 0; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--teal-dark); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 9999; transform: translateY(-160%); padding: 10px 14px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; text-align: center; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--coral); color: var(--ink); }
.button--primary:hover { background: #ff8580; }
.button--outline { border-color: #a9b9b6; background: transparent; }
.button--outline:hover { background: var(--white); }
.button--teal { background: #31b0a8; color: #fff; }
.button--teal:hover { background: #31b0a8; color: #fff; }

/* Página 404: imagen centrada y botón de vuelta al inicio. */
.error-404 { text-align: center; }
.error-404 .eyebrow { text-align: center; }
.error-404 img { width: min(100%, 620px); margin: 26px auto 0; border-radius: 12px; }
.error-404 p { max-width: 52ch; margin-inline: auto; }
.error-404 .button { margin-top: 22px; min-width: 220px; }
.button--wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }

/* Shared document styles are retained for the unchanged legal pages and 404. */
.legal-shell { background: var(--paper); min-height: 100vh; }
.legal-top { padding: 20px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-top img { width: 165px; }
.legal-top a:last-child { color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.legal-doc { width: min(calc(100% - 32px), 820px); margin: 0 auto; padding: 64px 0 96px; }
.legal-doc h1 { max-width: none; font-size: clamp(2.4rem, 8vw, 4.5rem); }
.legal-doc h2 { max-width: none; margin-top: 42px; font-size: clamp(1.45rem, 5vw, 2rem); }
.legal-doc h3 { margin-top: 28px; }
.legal-doc p, .legal-doc li { color: #4b5b6e; }
.legal-doc p { margin-top: 14px; }
.legal-doc ul { padding-left: 22px; }
.legal-doc .legal-alert { margin: 28px 0; padding: 18px; border-left: 4px solid var(--coral); background: #fff3f1; color: var(--ink); }
.legal-doc table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.legal-doc th, .legal-doc td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-doc th { background: #eef5f2; }
.legal-shell .site-footer__top { display: grid; gap: 28px; }
.legal-shell .site-footer__brand img { width: 168px; }
.legal-shell .site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legal-shell .site-footer__links > div { display: grid; align-content: start; }
.legal-shell .site-footer__links a { display: flex; align-items: center; min-height: 44px; font-size: .85rem; text-decoration: none; }
.legal-shell .site-footer__bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #2c3a48; display: grid; gap: 12px; font-size: .78rem; }
.legal-shell .site-footer__bottom a { display: inline-block; padding-block: 10px; color: var(--mint); font-weight: 750; }
.creator-heart { display: inline-block; color: #ff5264; animation: heartbeat 2.4s ease-in-out infinite; }

.landing { background: #fbfcf9; }
.landing h1 { max-width: 15ch; font-size: clamp(2.5rem, 7.3vw, 4.4rem); line-height: 1.06; font-weight: 650; letter-spacing: -.055em; }
.landing h2 { max-width: 22ch; font-size: clamp(1.95rem, 5.3vw, 3rem); line-height: 1.12; font-weight: 650; }
.landing h3 { line-height: 1.25; font-size: 1.12rem; letter-spacing: -.025em; }
.landing em { color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
.landing .eyebrow { font-size: .7rem; letter-spacing: .11em; }
.section { padding: 48px 0; }
.local-strip { padding: 8px 16px; background: var(--ink); color: #d2e8e1; font-size: .72rem; text-align: center; }
.local-strip span { margin: 0 5px; color: var(--mint); }
.site-header { position: sticky; top: 0; z-index: 20; background: #fbfcf9; border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 14px; }
.brand { width: 150px; }
.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #c5d2cc; background: #fffefb; border-radius: 50%; box-shadow: 0 5px 14px rgb(16 30 48 / 8%); transition: background .25s, border-color .25s, box-shadow .25s; }
.nav-toggle:hover { border-color: var(--teal-dark); box-shadow: 0 7px 18px rgb(16 30 48 / 14%); }
.nav-toggle__lines, .nav-toggle__lines::before, .nav-toggle__lines::after { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease, background .25s ease; }
.nav-toggle__lines { position: relative; }
.nav-toggle__lines::before, .nav-toggle__lines::after { position: absolute; left: 0; content: ""; }
.nav-toggle__lines::before { transform: translateY(-6px); }
.nav-toggle__lines::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { background: var(--mint); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { background: var(--mint); transform: rotate(-45deg); }
.main-nav { display: flex; flex-wrap: wrap; width: 100%; gap: 4px 18px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: var(--teal-dark); }
.nav-cta { color: var(--teal-dark); }
.nav-ready .main-nav { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; left: 0; display: grid; gap: 0; padding: 9px; border: 1px solid #23374c; border-radius: 14px; background: var(--ink); box-shadow: 0 18px 36px rgb(10 21 35 / 22%); opacity: 0; pointer-events: none; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.nav-ready .main-nav::before { grid-column: 1 / -1; padding: 8px 10px 11px; color: var(--mint); content: "RESERVA24 / NAVEGACIÓN"; font-size: .61rem; font-weight: 800; letter-spacing: .14em; }
.nav-ready .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.nav-ready .main-nav a { min-height: 52px; padding: 8px 10px; border-bottom: 1px solid #2c4255; border-radius: 0; color: #f2f7f5; font-size: .88rem; }
.nav-ready .main-nav a:hover { background: #1d344a; color: var(--mint); }
.nav-ready .main-nav a:nth-last-child(2) { border-bottom: 0; }
.nav-ready .main-nav .nav-cta { justify-content: center; margin-top: 9px; border: 0; border-radius: 8px; background: var(--coral); color: var(--ink); font-weight: 800; }
.nav-ready .main-nav .nav-cta:hover { background: #ff8580; color: var(--ink); }
.intro { padding: 36px 0 0; background: #edf3ee; }
.intro-grid { display: grid; gap: 30px; }
.lead { margin-top: 20px; color: #435566; font-size: 1.05rem; max-width: 48ch; }
.intro-promise { margin-top: 14px; font-size: .9rem; font-weight: 650; }
.actions { display: grid; gap: 10px; margin-top: 24px; }
.fine-print { margin-top: 12px; color: #52636b; font-size: .75rem; line-height: 1.6; max-width: 66ch; }
.fine-print a, .text-link { color: var(--teal-dark); }
.agenda { margin: 0; min-width: 0; background: #fffefb; border: 1px solid #cbd8d0; border-radius: 12px; box-shadow: 8px 10px 0 #dce9e0; overflow: hidden; }
.agenda figcaption { padding: 11px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .65rem; }
.agenda-label { font-weight: 750; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .07em; }
.agenda-heading { padding: 20px 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agenda-heading p { color: var(--muted); font-size: .73rem; }
.agenda-heading strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; }
.agenda-mark { font-weight: 800; font-size: 1.8rem; letter-spacing: -.09em; color: var(--teal-dark); }
.agenda-slots { list-style: none; padding: 0 16px; margin: 0; }
.agenda-slots li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 9px; margin-bottom: 9px; }
.agenda-slots time { padding-top: 12px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot { border-left: 3px solid #c3d0cd; padding: 11px 12px; border-radius: 0 5px 5px 0; background: #f1f3ef; }
.slot strong, .slot span { display: block; }
.slot strong { font-size: .85rem; line-height: 1.4; }
.slot span { color: #465d5a; font-size: .72rem; margin-top: 3px; }
.slot--mint { background: #d8f2e7; border-color: var(--teal); }
.slot .slot-label { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .07em; font-size: .61rem; font-weight: 750; margin: 0 0 4px; }
.slot--break { background: #fff0e8; border-color: var(--coral); }
.agenda-note { display: flex; align-items: start; gap: 12px; margin: 16px 16px 28px; padding: 14px; background: var(--ink); color: #dce9e6; border-radius: 7px; font-size: .75rem; }
.agenda-note strong { color: var(--mint); }
.note-icon { color: var(--mint); font-size: 1.5rem; line-height: 1.3; }
.agenda-caption { padding: 12px 16px; font-size: .64rem; color: var(--muted); }
.intro-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid #cad8ce; padding-block: 18px; margin-top: 32px; color: #52615b; font-size: .73rem; }
.section-head { margin-bottom: 26px; }
.flow-list { list-style: none; display: grid; gap: 22px; padding: 0; margin: 0; }
.flow-list li { display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.step { color: var(--teal-dark); font-size: .75rem; font-weight: 750; padding-top: 3px; }
.flow-list p, .setup-items p { margin-top: 9px; color: var(--muted); font-size: .91rem; }
.setup { background: var(--ink); color: var(--white); }
.setup-grid, .price-grid, .faq-grid, .contact-grid { display: grid; gap: 30px; }
.setup .eyebrow, .setup em { color: var(--mint); }
.setup-lead { color: #d0dadf; margin-top: 18px; max-width: 42ch; }
.capacity { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--coral); color: #bdcdd3; font-size: .8rem; max-width: 48ch; }
.setup-items { display: grid; gap: 22px; }
.setup-items article { display: flex; align-items: start; gap: 18px; }
.setup-items article > span { font-family: Georgia, "Times New Roman", serif; color: var(--mint); font-size: 1.5rem; line-height: 1; }
.setup-items p { color: #bdcdd3; }
.pricing { background: #f0f3ed; }
.section-copy { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.text-link { display: inline-block; padding-block: 12px; margin-top: 8px; font-size: .85rem; font-weight: 650; }
.price-sheet { padding: 22px; background: #fffefb; border: 1px solid #cdd7cd; border-top: 4px solid var(--teal-dark); border-radius: 0 0 10px 10px; }
.price-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--teal-dark); font-size: .73rem; font-weight: 650; }
.monthly { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.monthly > strong { font-size: clamp(3.7rem, 12vw, 4.8rem); letter-spacing: -.07em; font-weight: 650; line-height: 1.15; }
.monthly strong span { font-size: .55em; }
.monthly > span { color: var(--muted); font-size: .9rem; }
.activation { margin-top: 12px; font-size: .84rem; }
.activation > span { color: var(--muted); }
.activation strong { font-size: 1.13rem; }
.price-lines { margin: 22px 0 18px; }
.price-lines > div { border-top: 1px solid var(--line); padding: 13px 0; }
.price-lines dt { color: var(--muted); font-size: .77rem; }
.price-lines dd { margin: 2px 0 0; font-size: .95rem; }
.price-lines small { display: block; color: var(--muted); font-size: .76rem; max-width: 50ch; margin-top: 3px; }
.commitment { padding-top: 14px; border-top: 1px solid var(--line); color: #465568; font-size: .77rem; margin-bottom: 20px; }
.questions { border-top: 1px solid #cbd7d0; }
.questions details { border-bottom: 1px solid #cbd7d0; }
.questions summary { padding: 18px 4px; cursor: pointer; font-weight: 650; font-size: .94rem; }
.questions summary::marker { color: var(--teal-dark); }
.questions details[open] summary { color: var(--teal-dark); }
.questions details p { padding: 0 4px 20px; color: var(--muted); font-size: .9rem; }
.contact { background: #e4eee7; }
.contact-copy > p:not(.eyebrow) { margin-top: 18px; color: #465e58; max-width: 42ch; }
.demo-repeat { margin-top: 26px; border-top: 1px solid #becfc4; padding-top: 20px; }
.demo-repeat > span { font-size: .8rem; }
.demo-repeat > a { display: block; width: fit-content; padding-block: 10px; font-size: 1.25rem; font-weight: 650; color: var(--teal-dark); }
.demo-repeat p { font-size: .75rem; color: #465e58; max-width: 48ch; }
.contact-form { min-width: 0; padding: 20px; border: 1px solid #c5d5ca; border-radius: 10px; background: #fffefb; }
.form-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 20px; font-weight: 700; }
.form-intro span { font-size: .68rem; color: var(--muted); font-weight: 400; align-self: center; }
.form-fields { display: grid; gap: 14px; }
.form-row { min-width: 0; }
.form-row label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-bottom: 6px; font-size: .8rem; font-weight: 650; }
.form-row label span { color: var(--muted); font-weight: 400; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #adbbb3; border-radius: 5px; background: #fff; color: var(--ink); }
.form-row textarea { display: block; resize: vertical; }
.form-row small { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; }
.form-space { min-height: 16px; }
[aria-invalid="true"] { border-color: #a52b30 !important; outline-color: #a52b30; }
.field-error { color: #a52b30; font-size: .76rem; margin-top: 5px; }
.field-error:empty { display: none; }
.privacy-layer { margin: 18px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); color: #536158; font-size: .71rem; }
.privacy-layer p + p { margin-top: 7px; }
.privacy-layer a, .form-check a { color: var(--teal-dark); }
.form-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .77rem; }
.form-check input { width: 21px; height: 21px; margin: 3px 0 0; accent-color: var(--teal-dark); }
.form-check label { padding-block: 2px 8px; cursor: pointer; }
.contact-form .button { margin-top: 16px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { font-size: .84rem; margin-top: 10px; overflow-wrap: anywhere; }
.form-status:empty { margin: 0; }
.is-error { color: #a52b30; }
.is-success { color: #126644; }
.site-footer { padding: 30px 0 20px; background: var(--ink-2); color: #bfced5; }
.footer-top { display: grid; gap: 20px; }
.footer-top img { width: 150px; }
.footer-top p { font-size: .8rem; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .77rem; }
.site-footer a:focus-visible { outline-color: var(--mint); }
/* Footer centrado solo en móvil: logo, lema, enlaces y línea inferior. En tablet/PC se restaura el diseño original. */
.footer-top { text-align: center; justify-items: center; }
.footer-top nav { justify-content: center; }
.footer-bottom { text-align: center; }
.footer-bottom .footer-sep { display: none; }
.footer-bottom .footer-note { display: block; margin-top: 2px; }
.footer-bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid #2c3a48; display: grid; gap: 14px; font-size: .7rem; }
.credit { text-align: center; }
.credit a { color: var(--mint); font-weight: 750; display: inline-block; padding-block: 10px; }
/* Redes sociales: discretas, mismo idioma visual que el footer. */
.social { display: flex; align-items: center; gap: 4px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #bfced5; }
.social a:hover { color: var(--mint); background: rgb(139 222 198 / 12%); }
.social svg { display: block; width: 20px; height: 20px; }
.social--bottom { display: none; }
@media (min-width: 920px) {
  .footer-top nav.social--top { display: none; }
  .social--bottom { display: flex; }
}
.heart { display: inline-block; color: #ff5264; font-size: 1.15rem; margin-inline: 3px; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 35%, 65%, 100% { transform: scale(1); } 45%, 55% { transform: scale(1.14); } }
@media (min-width: 600px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .actions { display: flex; flex-wrap: wrap; }
  .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-full { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; text-align: left; justify-items: stretch; }
  .footer-top nav { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-bottom { text-align: left; }
  .footer-bottom .footer-sep { display: inline; }
  .footer-bottom .footer-note { display: inline; margin-top: 0; }
  .agenda { max-width: 560px; width: 100%; justify-self: center; }
  .agenda-heading, .agenda figcaption { padding-inline: 24px; }
  .agenda-slots { padding-inline: 24px; }
  .section { padding-block: 56px; }

}
@media (min-width: 920px) {
  .legal-shell .site-footer__top { grid-template-columns: 1fr auto; align-items: center; }
  .legal-shell .site-footer__links { min-width: 360px; gap: 64px; }
  .legal-shell .site-footer__bottom { display: flex; align-items: center; justify-content: space-between; }
  .header-inner { flex-wrap: nowrap; padding-block: 13px; }
  .footer-top { grid-template-columns: .8fr 1fr 1.3fr; align-items: center; }
  .footer-top nav { grid-column: auto; justify-content: end; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; }
  .brand { width: 174px; }
  .nav-toggle { display: none; }
  .main-nav, .nav-ready .main-nav, .nav-ready .main-nav.is-open { position: static; display: flex; width: auto; gap: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-ready .main-nav::before { display: none; }
  .nav-ready .main-nav a { min-height: 44px; padding: 0; color: inherit; font-size: .85rem; }
  .nav-ready .main-nav a:hover { background: transparent; color: var(--teal-dark); }
  .nav-ready .main-nav .nav-cta { margin: 0; padding: 8px 18px; background: var(--ink); color: white; }
  .nav-ready .main-nav .nav-cta:hover { background: var(--ink); color: white; }
  .intro { padding-top: 54px; }
  .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .intro-foot { margin-top: 46px; }
  .section { padding-block: 68px; }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .flow-list li { gap: 12px; }
  .setup-grid, .price-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
  .setup-items { gap: 26px; }
  .price-sheet, .contact-form { padding: 30px; }


}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .heart { transform: none; }
  .nav-toggle, .nav-toggle__lines, .nav-toggle__lines::before, .nav-toggle__lines::after, .nav-ready .main-nav { transition: none; }
}

/* Botón flotante de WhatsApp: abajo a la izquierda, siempre por debajo del chat. */
.wa-float { position: fixed; z-index: 40; left: 16px; bottom: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #30afa6; box-shadow: 0 8px 20px rgb(16 30 48 / 25%); transition: transform .2s, opacity .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float img { width: 26px; height: 26px; }
/* Con el chat abierto, el botón queda por debajo del panel: se oculta para no asomar a medias. */
body:has(.dograh-widget-container > .dograh-chat-panel:not([style*="none"])) .wa-float { opacity: 0; pointer-events: none; }

/* Botón volver arriba: círculo del mismo tamaño, sobre el botón del chat. Aparece al 75% del scroll. */
.to-top { position: fixed; z-index: 40; right: 20px; bottom: 78px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: #30afa6; color: #fff; box-shadow: 0 8px 20px rgb(16 30 48 / 25%); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; pointer-events: none; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top:hover { background: #30afa6; color: #fff; }
.to-top svg { display: block; width: 20px; height: 20px; }
body:has(.dograh-widget-container > .dograh-chat-panel:not([style*="none"])) .to-top { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .to-top { right: 12px; }
  /* Alarga el footer en móvil para que los flotantes no tapen el contenido al llegar al final. */
  .site-footer { padding-bottom: 120px; }
}

/* El panel del chat queda por encima del botón de WhatsApp. */
.dograh-widget-container { z-index: 50; }

/* Corrección del chat en móvil: el widget fija un ancho estrecho.
   Al ser DOM en línea (sin iframe), se puede redefinir desde aquí.
   Cerrado: pastilla compacta a la derecha. Abierto: panel a todo el ancho. */
@media (max-width: 600px) {
  .dograh-widget-container {
    left: auto !important;
    right: 12px !important;
    width: auto !important;
    max-width: 72vw !important;
  }
  .dograh-widget-container .dograh-widget-cta {
    width: auto !important;
    max-width: 72vw !important;
  }
  .dograh-widget-container:has(> .dograh-chat-panel:not([style*="none"])) {
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
  }
  .dograh-widget-container:has(> .dograh-chat-panel:not([style*="none"])) .dograh-chat-panel,
  .dograh-widget-container:has(> .dograh-chat-panel:not([style*="none"])) .dograh-widget-cta {
    width: 100% !important;
    max-width: none !important;
  }
}
