/* =========================================================
   MBA Limpiezas & Mantenimiento · Zaragoza — hoja de estilos
   ========================================================= */
:root {
  --primary: #2FA4DE;
  --primary-strong: #0E6BA8;
  --primary-deep: #0A3D62;
  --primary-soft: #E7F5FD;
  --accent: #7FD3F7;
  --bg: #F7FBFE;
  --surface: #FFFFFF;
  --surface-2: #EEF6FB;
  --text: #13293D;
  --muted: #4A6275;
  --border: #D3E6F2;
  --shadow: 0 10px 30px rgba(14, 107, 168, .12);
  --shadow-lg: 0 18px 45px rgba(14, 107, 168, .20);
  --radius: 18px;
  --grad: linear-gradient(135deg, #7FD3F7 0%, #2FA4DE 50%, #0E6BA8 100%);
  --grad-soft: linear-gradient(135deg, #E7F5FD 0%, #D2EEFB 100%);
  --footer-grad: linear-gradient(180deg, #0E3E60 0%, #07243A 100%);
  --wa: #25D366;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: #6CC4F0;
  --primary-strong: #8FD3F5;
  --primary-deep: #CFEAFA;
  --primary-soft: #133046;
  --accent: #3BA7DB;
  --bg: #0A1621;
  --surface: #10212F;
  --surface-2: #142A3B;
  --text: #E4F0F8;
  --muted: #A9C0D0;
  --border: #22405A;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, .5);
  --grad-soft: linear-gradient(135deg, #10283A 0%, #143247 100%);
  --footer-grad: linear-gradient(180deg, #0B1B28 0%, #050E16 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.22; color: var(--text); font-weight: 800; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #F5A524; outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--primary-strong); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s ease;
}
[data-theme="dark"] .skip-link { color: #06131D; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 900; font-size: 1.18rem; letter-spacing: .01em; }
.brand-name span { color: var(--primary-strong); }
.brand-tag { font-size: .78rem; color: var(--muted); font-weight: 600; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px !important; display: none !important;
  flex-direction: column; align-items: stretch !important; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: flex !important; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: transform .2s ease, background-color .2s ease;
}
.icon-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 8px 20px rgba(14,107,168,.28); }
.btn-primary:hover { color: #fff; background: #0B5A8E; }
[data-theme="dark"] .btn-primary { color: #06131D; background: #8FD3F5; }
[data-theme="dark"] .btn-primary:hover { color: #06131D; background: #B3E2F9; }
.btn-wa { background: var(--wa); color: #06331A; box-shadow: 0 8px 20px rgba(37,211,102,.30); }
.btn-wa:hover { color: #06331A; background: #3BE07A; }
.btn-ghost { border-color: var(--primary-strong); color: var(--primary-strong); background: transparent; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: #fff; color: #0A3D62; }
.btn-light:hover { color: #0A3D62; background: #EAF6FD; }
.header-cta { padding: 10px 16px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; background: var(--grad-soft); }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,211,247,.45), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .88rem;
  background: var(--surface); color: var(--primary-strong); border: 1px solid var(--border); margin-bottom: 18px;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--surface); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; border: 1px solid var(--border);
}
.hero-badge strong { font-size: 1.6rem; color: var(--primary-strong); line-height: 1; }
.hero-badge span { font-size: .88rem; color: var(--muted); font-weight: 700; line-height: 1.25; }
.fade-up { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.fade-up.d1 { animation-delay: .12s; } .fade-up.d2 { animation-delay: .24s; } .fade-up.d3 { animation-delay: .36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.page-hero { padding: clamp(40px, 6vw, 72px) 0; background: var(--grad-soft); position: relative; overflow: hidden; }
.page-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; }
.trust small { display: block; color: var(--muted); font-weight: 600; font-size: .84rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 84px; height: 4px; border-radius: 4px;
  background: var(--grad); transform: translateX(-50%);
}
.text-left .section-title::after, .section-title.left::after { left: 0; transform: none; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(47,164,222,.35);
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-badge.sm svg { width: 22px; height: 22px; }
.icon-badge.wa { background: linear-gradient(135deg, #5BEA93, #25D366); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.service-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.04); }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .body h3 { margin-top: 0; }
.service-card .body p { color: var(--muted); }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.media-wrap { overflow: hidden; }
.quote { font-style: italic; color: var(--primary-strong); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.9-1.9 3.1 3.1 6.7-6.7 1.9 1.9-8.6 8.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.9-1.9 3.1 3.1 6.7-6.7 1.9 1.9-8.6 8.6Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.15rem; margin-bottom: 12px;
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.sectors li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary-strong); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }
.faq h3 { display: inline; font-size: 1.05rem; margin: 0; }

/* CTA band */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; }
.cta-box {
  background: var(--grad); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-box::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cta-box h2 { color: #fff; margin-bottom: .35em; }
.cta-box p { color: #F0FAFF; margin: 0; font-size: 1.08rem; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; justify-content: flex-end; }
[data-theme="dark"] .cta-box { background: linear-gradient(135deg, #0E4C75, #0A3350); }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card .big { font-size: 1.35rem; font-weight: 900; color: var(--text); text-decoration: none; }
.contact-card .big:hover { color: var(--primary-strong); }
.note { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 10px; color: var(--text); }

/* Legal */
.legal { max-width: 880px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.12rem; margin-top: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.pending { background: #FFF2CC; color: #5A4300; padding: 0 6px; border-radius: 4px; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-grad); color: #CFE3F1; padding: 64px 0 24px; margin-top: 0; }
.site-footer a { color: #E8F4FC; text-decoration: none; }
.site-footer a:hover { color: #9FDCF9; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .brand-name { color: #fff; font-size: 1.25rem; }
.footer-brand .brand-name span { color: #7FD3F7; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .9rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #E8F4FC; cursor: pointer; }
.linklike:hover { text-decoration: underline; color: #9FDCF9; }

/* ---------- Floating widgets ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 950; width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s ease, bottom .3s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.a11y-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 950; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary-strong); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .25s ease, bottom .3s ease;
}
[data-theme="dark"] .a11y-fab { color: #06131D; }
.a11y-fab:hover { transform: scale(1.07); }
.a11y-fab svg { width: 30px; height: 30px; }
body.cookie-open .wa-float, body.cookie-open .a11y-fab { bottom: var(--cookie-h, 170px); }
.a11y-panel {
  position: fixed; left: 20px; bottom: 88px; z-index: 960; width: min(340px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px;
}
body.cookie-open .a11y-panel { bottom: calc(var(--cookie-h, 170px) + 68px); }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.05rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel h3 { font-size: .92rem; margin: 14px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.a11y-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.a11y-row.langs { grid-template-columns: repeat(3, 1fr); }
.a11y-opt {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: 10px 8px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; transition: background-color .2s ease;
}
.a11y-opt:hover { background: var(--primary-soft); }
.a11y-opt[aria-pressed="true"] { background: var(--primary-strong); color: #fff; border-color: var(--primary-strong); }
[data-theme="dark"] .a11y-opt[aria-pressed="true"] { color: #06131D; }
.a11y-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); line-height: 1; }
.a11y-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 990; max-width: 1080px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .95rem; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner .btn { padding: 10px 16px; font-size: .92rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 18, 30, .6); display: grid; place-items: center; padding: 16px; }
.cookie-modal[hidden] { display: none; }
.cookie-dialog { background: var(--surface); color: var(--text); border-radius: 20px; max-width: 580px; width: 100%; max-height: 90vh; overflow: auto; padding: 26px; box-shadow: var(--shadow-lg); }
.cookie-dialog h2 { font-size: 1.3rem; }
.cookie-cat { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.cookie-cat header { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
.cookie-cat p { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #9DB3C2; border-radius: 999px; transition: background-color .2s ease; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.switch input:checked + span { background: var(--primary-strong); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid #F5A524; outline-offset: 2px; }
.cookie-dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: flex-end; }

.translating {
  position: fixed; inset: 0; z-index: 2000; background: rgba(4,18,30,.55); display: grid; place-items: center;
}
.translating[hidden] { display: none; }
.translating div { background: var(--surface); color: var(--text); padding: 22px 30px; border-radius: 16px; font-weight: 800; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-lg); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary-strong); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Google Translate: ocultar la interfaz nativa */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb, #google_translate_element { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility modes ---------- */
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-contrast {
  --bg: #000; --surface: #000; --surface-2: #0A0A0A; --text: #FFF; --muted: #FFF; --border: #FFF;
  --primary: #FFE600; --primary-strong: #FFE600; --primary-soft: #222; --grad: linear-gradient(#FFE600, #FFE600);
  --grad-soft: linear-gradient(#000, #000); --footer-grad: linear-gradient(#000, #000); --shadow: none; --shadow-lg: none;
}
html.a11y-contrast a { color: #FFE600 !important; }
html.a11y-contrast .btn-primary, html.a11y-contrast .a11y-fab, html.a11y-contrast .a11y-opt[aria-pressed="true"] { background: #FFE600 !important; color: #000 !important; }
html.a11y-contrast .icon-badge { color: #000; }
html.a11y-contrast .cta-box { background: #000 !important; border: 2px solid #FFE600; }
html.a11y-contrast img { filter: contrast(1.1); }
html.a11y-contrast .hero-badge, html.a11y-contrast .card { border: 2px solid #FFF; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-noanim .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 74px); overflow: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .submenu { position: static; display: flex !important; box-shadow: none; border: 0; padding: 0 0 0 14px !important; min-width: 0; background: transparent; }
  .hero-grid, .page-hero .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .steps, .trust ul, .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .brand img { width: 40px; height: 40px; }
  .header-inner { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .card { padding: 22px; }
  .hero-actions .btn, .cta-box .actions .btn { width: 100%; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .a11y-fab { left: 14px; bottom: 14px; width: 50px; height: 50px; }
  .a11y-panel { left: 14px; bottom: 76px; }
}
@media print {
  .site-header, .wa-float, .a11y-fab, .a11y-panel, .cookie-banner, .cookie-modal, .site-footer { display: none !important; }
}
