/*
 * Guardian — Una solución de GO DIGITALS LLC
 * Estilos del tema (diseño aprobado de la landing, blog y artículos).
 */

/* Fuentes alojadas en el tema (licencia SIL Open Font License) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700 800; font-stretch: 125%; font-display: swap; src: url("../fonts/archivo-expanded-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Gochi Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gochi-hand-latin.woff2") format("woff2"); }
:root {
  /* Marca Casa Clean */
  --navy: #1D289E;
  --brand: #0177CC;
  --vivid: #116CF8;
  --sky: #21BDEF;
  --celeste: #A0DCFF;
  --turq: #6ECDC7;
  --coral: #F66725;
  --coral-deep: #E2561A;
  --coral-text: #D84A10;
  --pearl: #DBE3EA;

  /* Neutros derivados */
  --ink: #0F1B3D;
  --ink-2: #4A5677;
  --line: #E3EAF1;
  --soft: #F4F8FC;
  --white: #FFFFFF;
  --footer: #0B1433;

  /* Tipografías */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Gochi Hand", "Segoe Print", cursive;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(15, 27, 61, .05), 0 8px 24px -10px rgba(15, 27, 61, .14);
  --shadow-float: 0 1px 2px rgba(15, 27, 61, .06), 0 16px 40px -12px rgba(15, 27, 61, .22), 0 40px 80px -32px rgba(1, 119, 204, .30);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --gutter: 20px;
  --header-h: 76px;
  --section: clamp(72px, 9vw, 120px);
  interpolate-size: allow-keywords;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 92px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--vivid); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkle { fill: currentColor; stroke: none; }

/* Acentos manuscritos */
.kicker {
  display: block; width: fit-content; margin-bottom: .35rem;
  font-family: var(--font-script); font-weight: 400; letter-spacing: 0;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1;
  color: var(--coral-text); transform: rotate(-2deg); transform-origin: left center;
}
.center .kicker { margin-inline: auto; transform-origin: center; }
.script { font-family: var(--font-script); font-weight: 400; font-stretch: 100%; letter-spacing: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); margin-top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h); padding: 0 1.6rem; border-radius: 999px;
  font: inherit; font-size: 1.1875rem; font-weight: 700; line-height: 1.1; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, #FF7A3D 0%, var(--coral) 55%, var(--coral-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(180, 63, 10, .3), 0 10px 22px -10px rgba(246, 103, 37, .7);
}
/* Brillo de superficie recién limpia */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn-primary.shine::after { animation: shine 1.1s var(--ease-out); }
@keyframes shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.btn-call {
  color: var(--navy); background: var(--white);
  border: 1.5px solid #C9D6E3;
  font-size: 1.0625rem;
}
.btn-call .icon { color: var(--brand); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(180, 63, 10, .3), 0 16px 30px -12px rgba(246, 103, 37, .8); }
  .btn-primary:hover::after { transform: translateX(130%); transition: transform .9s var(--ease-out); }
  .btn-call:hover { border-color: var(--brand); transform: translateY(-1px); }
  .btn-primary:active, .btn-call:active { transform: scale(.97); }
}
.dark .btn-call { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.dark .btn-call .icon { color: #fff; }
@media (hover: hover) { .dark .btn-call:hover { border-color: #fff; background: rgba(255, 255, 255, .08); } }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-pair.center { justify-content: center; }
.call-prompt { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.call-prompt p { font-weight: 600; color: var(--ink); }
@media (max-width: 479px) {
  .cta-pair .btn, .call-prompt .btn, .hero-call .btn { width: 100%; }
  .btn-call { font-size: 1rem; padding: 0 1rem; }
}

/* ---------- Barra de anuncio ---------- */
.announce {
  position: relative; z-index: 41;
  background: var(--navy); color: #fff;
  font-size: .9375rem; text-align: center; padding: 9px var(--gutter);
}
.announce a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid rgba(255, 255, 255, .45); }
.announce .sparkle { width: .8rem; height: .8rem; color: var(--celeste); display: inline-block; vertical-align: -1px; margin-right: .35rem; }
.announce .desk { display: none; }
@media (min-width: 768px) { .announce .desk { display: inline; } .announce .mob { display: none; } }

/* ---------- Encabezado flotante ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h); padding-top: 12px;
  transition: padding .35s var(--ease-out);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(var(--header-h) - 24px);
  padding: 0 8px 0 18px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(227, 234, 241, .9); border-radius: 999px;
  box-shadow: 0 6px 20px -14px rgba(15, 27, 61, .25);
  transition: box-shadow .35s var(--ease-out), background-color .35s var(--ease-out), height .35s var(--ease-out);
}
.site-header.scrolled { padding-top: 8px; }
.site-header.scrolled .header-inner { background: rgba(255, 255, 255, .94); box-shadow: 0 14px 34px -14px rgba(15, 27, 61, .32); }
.logo { display: flex; align-items: center; }
.logo img { width: 84px; height: auto; transition: width .35s var(--ease-out); }
@media (min-width: 768px) { .logo img { width: 112px; } .site-header.scrolled .logo img { width: 100px; } }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-hours { display: none; align-items: center; gap: .45rem; font-size: .9375rem; color: var(--ink-2); }
.header-hours .icon { color: var(--brand); width: 1.1em; height: 1.1em; }
.header-phone { display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.header-phone .ph-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E3F1FB; color: var(--brand); }
.header-phone .ph-icon .icon { width: 18px; height: 18px; }
.header-phone small { display: block; font-size: .75rem; color: var(--ink-2); line-height: 1.2; }
.header-phone b { display: block; font-size: 1rem; line-height: 1.25; }
.header-cta { display: none; --h: 48px; padding: 0 1.3rem; }
.header-call-mobile {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, var(--vivid), var(--navy)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(29, 40, 158, .6);
}
.header-call-mobile .icon { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
  .header-call-mobile { display: none; }
}
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) { .header-hours { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 28px) 0 56px;
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(160, 220, 255, .42), transparent 70%),
    radial-gradient(40% 50% at 35% 100%, rgba(110, 205, 199, .16), transparent 70%),
    linear-gradient(180deg, #F2F8FD 0%, #FFFFFF 100%);
}
.hero-grid { display: grid; gap: 28px; grid-template-areas: "intro" "form" "extra" "trust" "media"; }
.hero-left { display: contents; }
.hero-intro { grid-area: intro; position: relative; z-index: 1; }
.hero-extra { grid-area: extra; position: relative; z-index: 1; }
.hero-form { grid-area: form; position: relative; z-index: 2; }
.hero-media { grid-area: media; }
.hero-tagline { display: block; width: fit-content; margin-bottom: .5rem; font-family: var(--font-script); font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.1; color: var(--coral-text); transform: rotate(-2.5deg); transform-origin: left center; }
.h1-main { display: block; font-size: clamp(2rem, 1.1rem + 4vw, 4rem); line-height: 1.04; letter-spacing: -.028em; }
.h1-main .hl { position: relative; color: var(--vivid); white-space: nowrap; }
.swoosh { position: absolute; left: -2%; width: 104%; bottom: -.2em; height: .3em; overflow: visible; fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.swoosh path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1s var(--ease-out) .5s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.h1-sub { display: block; margin-top: 1.1rem; font-family: var(--font-body); font-stretch: 100%; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 600; color: var(--navy); letter-spacing: -.015em; line-height: 1.3; }
.hero-lead { margin-top: 1rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); max-width: 34rem; }
.hero-call { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hours { display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem; }
.hours .icon { color: var(--brand); width: 1.1em; height: 1.1em; }

.trust-bar {
  grid-area: trust; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 8px 22px;
}
.trust-bar li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.trust-bar li:first-child { border-top: 0; }
.trust-bar .t-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #E9F4FC; color: var(--brand); }
.trust-bar .t-icon .icon { width: 20px; height: 20px; }
.trust-bar strong { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.trust-bar .d { display: block; font-size: .875rem; line-height: 1.45; margin-top: 3px; }
@media (min-width: 640px) {
  .trust-bar { grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 8px 26px; }
  .trust-bar li:nth-child(2) { border-top: 0; }
}

.hero-media { display: none; }
.dots-deco {
  position: absolute; pointer-events: none; width: 132px; height: 132px;
  background: radial-gradient(circle, rgba(1, 119, 204, .35) 1.6px, transparent 2px) 0 0 / 16px 16px;
}
.sparkles-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sparkles-bg .sparkle { position: absolute; color: var(--sky); opacity: .55; animation: twinkle 4.8s var(--ease-in-out) infinite; }
.sparkles-bg .s1 { width: 22px; top: 22%; left: 47%; }
.sparkles-bg .s2 { width: 14px; top: 70%; left: 3%; animation-delay: 1.6s; color: var(--turq); }
.sparkles-bg .s3 { width: 12px; top: 36%; left: 92%; animation-delay: 3.1s; color: var(--celeste); }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: .8; } }

@media (min-width: 1000px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px; grid-template-areas: "left form"; }
  .hero-left { display: block; grid-area: left; align-self: center; position: relative; z-index: 1; }
  .hero-extra { margin-top: 32px; }
  .hero-left .trust-bar { margin-top: 40px; }
  .h1-main { font-size: clamp(2.6rem, 1rem + 2.9vw, 4rem); }
  /* Forma orgánica de la marca detrás del formulario */
  .hero-media { display: block; position: absolute; z-index: 0; top: calc(var(--header-h) + 8px); right: -4vw; width: min(50vw, 720px); aspect-ratio: 1; }
  .hero-media svg { width: 100%; height: 100%; overflow: visible; }
  .hero-media .blob-main { animation: blob 14s var(--ease-in-out) infinite alternate; transform-origin: 50% 50%; }
  .hero-media .dots-deco { left: 2%; bottom: 6%; }
}
@keyframes blob { from { transform: rotate(0deg) scale(1); } to { transform: rotate(8deg) scale(1.04); } }

/* ---------- Formulario ---------- */
.quote-card {
  position: relative;
  background: var(--white); border-radius: 24px;
  border: 1px solid rgba(219, 227, 234, .9);
  box-shadow: var(--shadow-float);
  padding: 34px 22px 26px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
@media (min-width: 480px) { .quote-card { padding: 38px 30px 30px; } }
.form-badge {
  position: absolute; top: -15px; left: 22px;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #FFF1EA; color: #B43F0A; border: 1px solid #FFD9C6;
  font-size: .8125rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.form-badge .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.quote-card h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
.quote-card .form-sub { margin-top: .5rem; font-size: .9875rem; }
.form-grid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 360px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .875rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #F7FAFD; border: 1.5px solid #D5DFE9; border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
}
.field textarea { min-height: 80px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230177CC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8A94AD; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C8D8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--vivid);
  box-shadow: 0 0 0 4px rgba(17, 108, 248, .14);
}
.quote-card .btn-primary { width: 100%; margin-top: 20px; --h: 58px; }
.form-micro { margin-top: 14px; display: grid; gap: 6px; font-size: .875rem; text-align: center; }
.form-micro .lock { color: var(--ink); font-weight: 600; }
.form-micro .lock .icon { display: inline-block; width: 1em; height: 1em; color: #1E9E7A; vertical-align: -.125em; margin-right: .35rem; }

/* ---------- Problema → solución ---------- */
.problem { padding-block: var(--section); background: var(--soft); }
.script-title { font-family: var(--font-script); font-weight: 400; font-stretch: 100%; letter-spacing: 0; font-size: clamp(2.6rem, 1.9rem + 3vw, 4.25rem); line-height: 1.05; color: var(--coral-text); transform: rotate(-2deg); }
.problem .section-head p { margin-top: .9rem; }
.compare-head { display: none; }
.compare { display: grid; gap: 18px; max-width: 1060px; margin-inline: auto; }
.compare-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pain, .fix { display: flex; gap: 16px; align-items: flex-start; border-radius: 20px; padding: 22px 24px; }
.pain { background: var(--white); border: 1px solid var(--line); }
.pain p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
.fix { background: linear-gradient(135deg, var(--navy) 0%, #1446C9 60%, var(--vivid) 100%); box-shadow: 0 14px 30px -16px rgba(29, 40, 158, .6); }
.fix p { color: #fff; font-size: 1.0625rem; line-height: 1.5; font-weight: 600; }
.c-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; }
.c-icon .icon { width: 16px; height: 16px; stroke-width: 3; }
.pain .c-icon { background: #FFF1EA; color: var(--coral-deep); }
.fix .c-icon { background: #fff; color: var(--brand); }
.arrow { display: grid; place-items: center; color: var(--brand); }
.arrow .icon { width: 24px; height: 24px; transform: rotate(90deg); }
@media (min-width: 860px) {
  .compare-head {
    display: grid; grid-template-columns: 1fr 64px 1fr; max-width: 1060px; margin: 0 auto 14px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  }
  .compare-head span { padding-left: 24px; }
  .compare-head .them { color: #7B87A3; }
  .compare-head .us { color: var(--brand); }
  .compare-row { grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
  .arrow .icon { transform: none; }
}
.resolve {
  margin: clamp(44px, 5vw, 60px) auto 0; max-width: 780px; text-align: center;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); line-height: 1.4; font-weight: 600;
  color: var(--ink); letter-spacing: -.015em;
}
.resolve strong { color: var(--brand); font-weight: 800; }

/* ---------- Servicios en mosaico ---------- */
.services { padding-block: var(--section); }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 360px;
  border-radius: 24px; background: var(--ink); color: #fff;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease-out); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 20, 51, 0) 25%, rgba(11, 20, 51, .55) 55%, rgba(11, 20, 51, .9) 100%);
}
.tile-body { padding: 26px; }
.tile-tag {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile h3 { color: #fff; font-size: 1.35rem; }
.tile p { margin-top: 8px; color: rgba(255, 255, 255, .9); font-size: .9875rem; max-width: 36ch; }
.tile.big h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tile.big p { font-size: 1.0625rem; }
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }
@media (min-width: 640px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big, .tile.wide { grid-column: span 2; }
  .tile.big { min-height: 420px; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: 330px 330px; }
  .tile { min-height: 0; }
  .tile.big { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .tile.big .tile-body { padding: 36px; }
}
.section-cta { margin-top: clamp(36px, 4vw, 52px); }

/* ---------- Cómo funciona (sección oscura) ---------- */
.how {
  position: relative; color: #fff;
  padding-block: calc(var(--section) + 40px);
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(33, 189, 239, .45), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(29, 40, 158, .45), transparent 70%),
    linear-gradient(160deg, var(--brand) 0%, var(--vivid) 100%);
}
.how .wave { position: absolute; left: 0; width: 100%; height: clamp(32px, 5vw, 72px); fill: var(--white); pointer-events: none; }
.how .wave-top { top: -1px; }
.how .wave-bottom { bottom: -1px; transform: scaleY(-1); }
.how .dots-deco { right: 6%; top: 16%; background-image: radial-gradient(circle, rgba(255, 255, 255, .45) 1.6px, transparent 2px); }
.how h2, .how h3 { color: #fff; }
.how .kicker { color: #D6EEFF; }
.how .step p { color: #fff; font-weight: 500; }
.steps { display: grid; gap: 32px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { position: relative; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.125rem; color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .22), 0 12px 26px -8px rgba(15, 27, 61, .45);
  position: relative; z-index: 1;
}
.step h3 { margin-top: 20px; font-size: 1.25rem; }
.step p { margin-top: 8px; max-width: 30ch; }
@media (min-width: 860px) {
  .step { text-align: center; }
  .step-num { margin-inline: auto; }
  .step p { margin-inline: auto; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 28px; left: calc(50% + 44px); right: calc(-50% + 12px); height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 8px, transparent 8px 14px);
    transform-origin: left; transition: transform .9s var(--ease-out) .25s;
  }
  .js .steps:not(.in) .step:not(:last-child)::after { transform: scaleX(0); }
}

/* ---------- Por qué Casa Clean ---------- */
.why { padding-block: var(--section); }
.why-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.why-media { position: relative; isolation: isolate; width: min(100%, 520px); margin-inline: auto; padding: 4% 4% 0 0; }
.why-media::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 8% 10%;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, var(--sky), var(--vivid) 60%, var(--navy));
}
.why-media .dots-deco { left: -2%; bottom: 0; z-index: -1; }
.why-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  border: 8px solid #fff; box-shadow: 0 30px 60px -30px rgba(15, 27, 61, .45);
}
.why-float {
  position: absolute; left: 0; bottom: 8%;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow-card);
  color: var(--ink); font-weight: 700; font-size: .9375rem;
}
.why-float .icon { color: var(--brand); }
.benefits { margin-top: 36px; display: grid; gap: 26px 32px; }
@media (min-width: 560px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit .b-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #E9F4FC; color: var(--brand); margin-bottom: 14px; }
.benefit .b-icon .icon { width: 22px; height: 22px; }
.benefit p { margin-top: 6px; font-size: .9875rem; }

/* ---------- Zona de servicio con mapa ---------- */
.area { padding-block: 0 var(--section); }
.area-panel {
  display: grid; gap: 40px; align-items: center;
  background: var(--soft); border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 64px);
}
@media (min-width: 900px) { .area-panel { grid-template-columns: 1fr 1fr; gap: 56px; } }
.area-map {
  position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto;
  border-radius: 24px; overflow: hidden;
  background: #EEF5FB; border: 1px solid #DCE8F4;
  box-shadow: 0 24px 50px -28px rgba(15, 27, 61, .35);
}
.area-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-map .town-labels text { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: #4A5677; paint-order: stroke; stroke: #EEF5FB; stroke-width: 4px; stroke-linejoin: round; }
.ring.ping {
  position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; margin: -8% 0 0 -8%;
  border-radius: 50%; border: 2px solid rgba(17, 108, 248, .5);
  animation: ping 3.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.pin {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, var(--vivid), var(--navy)); color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 12px 24px -8px rgba(29, 40, 158, .6);
}
.pin .icon { width: 24px; height: 24px; }
.area-label {
  position: absolute; z-index: 1; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  border-radius: 999px; padding: 8px 16px; white-space: nowrap;
  font-weight: 700; color: var(--ink); font-size: .9375rem;
}
.area-label span { color: var(--ink-2); font-weight: 500; }
@media (max-width: 559px) { .area-label { bottom: 10px; padding: 6px 12px; font-size: .8125rem; line-height: 1.3; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding-block: 0 var(--section); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } .faq-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--soft); border: 1px solid transparent; border-radius: 18px; padding: 0 24px;
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.faq-list details[open] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-card); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; color: var(--ink); font-size: 1.0625rem; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #E3F1FB; color: var(--brand); transition: transform .3s var(--ease-out), background-color .2s;
}
.faq-list summary .plus .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.faq-list details[open] summary .plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list .answer { padding: 0 48px 22px 0; }

/* ---------- Llamado final ---------- */
.final { padding-block: 0 var(--section); }
.final-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); color: #fff; text-align: center;
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(33, 189, 239, .45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(110, 205, 199, .30), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #1446C9 55%, var(--vivid) 100%);
}
.final-panel h2 { color: #fff; max-width: 16ch; margin-inline: auto; font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem); }
.final-panel h2 .script { display: block; margin-top: .15em; font-size: 1.3em; line-height: 1; color: var(--celeste); transform: rotate(-2deg); }
.final-panel p { max-width: 40rem; margin: 1.25rem auto 0; color: rgba(255, 255, 255, .9); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.final-panel .cta-pair { margin-top: 34px; }
.final-panel .sparkle { position: absolute; color: #fff; z-index: -1; animation: twinkle 5.2s var(--ease-in-out) infinite; }
.final-panel .f1 { width: 28px; top: 14%; left: 8%; }
.final-panel .f2 { width: 16px; top: 70%; left: 14%; animation-delay: 1.4s; color: var(--celeste); }
.final-panel .f3 { width: 22px; top: 18%; right: 9%; animation-delay: 2.6s; color: var(--celeste); }
.final-panel .f4 { width: 12px; bottom: 16%; right: 16%; animation-delay: 3.6s; }
@media (max-width: 639px) {
  .final-panel .f2, .final-panel .f3, .final-panel .f4 { display: none; }
  .final-panel .f1 { width: 18px; top: 20px; left: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #B7C2DA; padding: 72px 0 30px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.footer-brand img { width: 132px; }
.footer-brand p { margin-top: 18px; max-width: 32ch; }
.footer-brand .services-line { color: #8F9BB8; font-size: .875rem; margin-top: 10px; }
.site-footer h3 { color: #fff; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list .icon { color: var(--sky); margin-top: 3px; width: 1.1em; height: 1.1em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; gap: 14px; font-size: .8125rem; color: #8F9BB8;
}
@media (min-width: 860px) { .footer-bottom { grid-template-columns: auto 1fr; align-items: center; } .copyright { text-align: right; } }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out), border-color .2s var(--ease-out);
}
.social a:hover { background: var(--coral); border-color: var(--coral); text-decoration: none; transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }
.social .icon.fill { fill: currentColor; stroke: none; }
.legal { display: flex; gap: 22px; }
.legal a { color: #B7C2DA; }
.copyright .heart { color: var(--coral); }
.clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Barra fija móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(15, 27, 61, .2);
  transition: transform .4s var(--ease-out);
}
.mobile-bar .btn { --h: 52px; font-size: 1.1875rem; padding: 0 16px; }
.js .mobile-bar:not(.show) { transform: translateY(110%); }
@media (max-width: 999px) { .site-footer { padding-bottom: 108px; } }
@media (min-width: 1000px) { .mobile-bar { display: none; } }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(440px, calc(100% - 32px));
  background: var(--ink); color: #fff; font-size: .9375rem; line-height: 1.4;
  padding: 14px 18px; border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(15, 27, 61, .5);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 24px) scale(.96);
  transition: transform .45s var(--ease-out), opacity .25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1E9E7A; }
.toast-icon .icon { width: 16px; height: 16px; stroke-width: 3; }
@media (max-width: 999px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .steps:not(.in) .step:not(:last-child)::after { transform: none; }
}

/* ---------- Reseñas en movimiento ---------- */
.reviews { padding-block: var(--section); background: var(--soft); overflow: hidden; }
.sample-note { margin-top: .75rem; font-size: .875rem; color: #7B87A3; }
.marquee { display: grid; gap: 18px; }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: 20px; width: max-content; padding: 6px 0 18px; animation: marquee var(--dur, 50s) linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
.review-card {
  flex: none; width: clamp(290px, 30vw, 380px); min-height: 186px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 10px 26px -14px rgba(15, 27, 61, .18);
}
.review-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; font-weight: 700; }
.review-name { color: var(--ink); font-weight: 700; font-size: .9375rem; line-height: 1.2; }
.review-date { font-size: .8125rem; color: #7B87A3; line-height: 1.3; margin-top: 2px; }
.review-sample { margin-left: auto; align-self: flex-start; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7B87A3; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.review-stars { color: #F2A900; letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.review-text { color: var(--ink); font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.marquee-controls { display: flex; justify-content: center; margin-top: 10px; }
.marquee-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(1, 119, 204, .6);
  transition: transform .16s var(--ease-out);
}
.marquee-toggle:active { transform: scale(.94); }
.marquee-toggle .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.marquee-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 639px) { .marquee-row.reverse { display: none; } .review-card { width: 82vw; } }
@media (prefers-reduced-motion: reduce) { .marquee-row { overflow-x: auto; } .marquee-controls { display: none; } }

/* ---------- Tarjetas de artículos del blog ---------- */
.blog-teaser { padding-block: 0 var(--section); }
.blog-teaser-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }
.post-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pearl); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: #E9F4FC; border-radius: 999px; padding: 4px 10px; }
.post-card :is(h2, h3) { font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; font-size: 1.1875rem; line-height: 1.35; }
.post-card :is(h2, h3) a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease-out); }
.post-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.post-card p { font-size: .9375rem; }
.post-card .post-meta { margin-top: auto; padding-top: 6px; font-size: .8125rem; color: #7B87A3; }
@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 27, 61, .05), 0 22px 44px -18px rgba(15, 27, 61, .28); }
  .post-card:hover .post-thumb img { transform: scale(1.05); }
  .post-card:hover :is(h2, h3) a { color: var(--brand); }
}

/* ---------- Página del blog ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 56px) 0 64px;
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(160, 220, 255, .42), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(110, 205, 199, .18), transparent 70%),
    linear-gradient(180deg, #F2F8FD 0%, #FFFFFF 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.75rem); line-height: 1.05; letter-spacing: -.028em; }
.page-hero .lead { max-width: 40rem; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid #C9D6E3; background: var(--white); color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-list { padding-block: 24px var(--section); }
.post-featured { margin-bottom: 28px; }
@media (min-width: 900px) {
  .post-featured { flex-direction: row; }
  .post-featured .post-thumb { flex: 1.15; aspect-ratio: auto; min-height: 400px; }
  .post-featured .post-body { flex: 1; padding: 44px; justify-content: center; gap: 14px; }
  .post-featured :is(h2, h3) { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.15; letter-spacing: -.02em; }
  .post-featured p { font-size: 1.0625rem; }
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Artículo del blog ---------- */
.wrap.narrow { width: min(800px, 100% - 2 * var(--gutter)); }
.article-hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 40px) 0 48px;
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(160, 220, 255, .42), transparent 70%),
    linear-gradient(180deg, #F2F8FD 0%, #FFFFFF 100%);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .875rem; color: #7B87A3; margin-bottom: 22px; }
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.article-hero h1 { margin-top: 14px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -.026em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; font-size: .9375rem; }
.article-meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.author-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-card); }
.author-avatar img { width: 26px; height: 26px; }
.article-cover { width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 639px) { .article-cover img { aspect-ratio: 4 / 3; } }
.article-body { padding-block: 52px 8px; }
.article-body > * + * { margin-top: 1.15em; }
.article-body p, .article-body li { font-size: 1.125rem; line-height: 1.75; }
.article-body .article-lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.article-body h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.2; }
.article-body ul { display: grid; gap: 12px; }
.article-body li { position: relative; padding-left: 36px; }
.article-body li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 24px; height: 24px; border-radius: 50%;
  background: #E3F1FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230177CC' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.article-cta {
  display: grid; gap: 18px; margin-block: 2.4em; padding: 30px 28px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(33, 189, 239, .45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #1446C9 55%, var(--vivid) 100%);
}
.article-cta h3 { color: #fff; font-size: 1.4rem; }
.article-cta p { color: rgba(255, 255, 255, .92); font-size: 1rem; margin-top: 6px; line-height: 1.6; }
@media (min-width: 700px) { .article-cta { grid-template-columns: 1fr auto; align-items: center; padding: 34px 38px; } }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 52px; padding: 24px 26px; border-radius: 20px; background: var(--soft); }
.author-box .author-avatar { width: 60px; height: 60px; }
.author-box .author-avatar img { width: 40px; height: 40px; }
.author-box strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.author-box p { font-size: .9375rem; margin-top: 2px; }
.related { padding-block: clamp(56px, 7vw, 88px) var(--section); }
.related h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.post-featured .post-meta { margin-top: 6px; }

/* ---------- Opciones del hero (mockup: A = forma azul · B = foto a la mitad · C = foto de fondo) ---------- */
.hero-photo { display: none; }


/* C: foto de fondo completa */
.hero.v-c { background: var(--ink); }
.hero.v-c .hero-media { display: block; position: absolute; inset: 0; width: auto; aspect-ratio: auto; z-index: 0; }
.hero.v-c .hero-media svg, .hero.v-c .hero-media .dots-deco { display: none; }
.hero.v-c .photo-c { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero.v-c .hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 20, 51, .78); }
@media (min-width: 1000px) {
  .hero.v-c .hero-media::after {
    background:
      linear-gradient(90deg, rgba(11, 20, 51, .86) 0%, rgba(11, 20, 51, .76) 46%, rgba(11, 20, 51, .4) 64%, rgba(11, 20, 51, .1) 100%),
      linear-gradient(0deg, rgba(11, 20, 51, .45), transparent 35%);
  }
}
.hero.v-c .h1-main { color: #fff; }
.hero.v-c .h1-main .hl { color: var(--sky); }
.hero.v-c .h1-sub { color: var(--celeste); }
.hero.v-c .hero-lead { color: rgba(255, 255, 255, .9); }
.hero.v-c .hero-tagline { color: #FF9A6A; }
.hero.v-c .hours { color: rgba(255, 255, 255, .88); }
.hero.v-c .hours .icon { color: var(--sky); }
.hero.v-c .hero-call .btn-call { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero.v-c .hero-call .btn-call .icon { color: #fff; }
.hero.v-c .sparkles-bg .sparkle { color: #fff; opacity: .5; }


/* ---------- Borde de espuma del hero (transición a la siguiente sección) ---------- */
.hero.v-c { padding-bottom: 112px; }
@media (min-width: 1000px) { .hero.v-c { padding-bottom: 150px; } }
.hero-foam { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(72px, 9vw, 124px); z-index: 1; pointer-events: none; }
.hero-foam svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-foam .foam-back { fill: rgba(244, 248, 252, .42); }
.hero-foam .foam-front { fill: var(--soft); }
.bubble {
  position: absolute; left: var(--x); bottom: var(--y);
  width: var(--s); aspect-ratio: 1; margin-left: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 14%, rgba(255, 255, 255, .32) 30%, rgba(160, 220, 255, .16) 62%, rgba(255, 255, 255, .5) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75), inset -4px -6px 10px rgba(33, 189, 239, .2), 0 4px 12px -6px rgba(11, 20, 51, .35);
  animation: bubble-float 5.5s var(--ease-in-out) var(--d, 0s) infinite alternate;
}
@keyframes bubble-float { from { transform: translateY(0) scale(1); } to { transform: translateY(-10px) scale(1.04); } }
@media (max-width: 639px) {
  .bubble { width: calc(var(--s) * .72); margin-left: calc(var(--s) * -.36); bottom: calc(var(--y) * .66); }
  .hero-foam .bubble:nth-of-type(3n + 2) { display: none; }
}
.hero.v-c + .problem { position: relative; margin-top: -2px; }
@media (min-width: 640px) { .bubble { width: calc(var(--s) * 1.25); margin-left: calc(var(--s) * -.625); } }
.review-card { width: clamp(300px, 30vw, 400px); }
.review-text { -webkit-line-clamp: 6; }
@media (max-width: 639px) { .review-card { width: 82vw; } }
@media (max-width: 639px) { .marquee-row.reverse { display: block; } }

/* ==========================================================================
   WordPress
   ========================================================================== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.logo-text { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.legal li { list-style: none; }
.legal li a { color: #B7C2DA; }
.post-tag { text-decoration: none; }
a.post-tag:hover { background: #D6EBFA; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.guardian-landing > * { margin-block: 0; }
.article-body img { border-radius: 16px; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: .875rem; color: #7B87A3; text-align: center; margin-top: .6em; }
.article-body a:not(.btn) { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body ol { padding-left: 1.4em; }
.article-body ol li { padding-left: 4px; }
.article-body ol li::before { content: none; }
.article-body blockquote { margin: 2em 0; padding: 20px 24px; border-radius: 16px; background: var(--soft); color: var(--ink); font-size: 1.125rem; }
.article-body .wp-block-button__link { border-radius: 999px; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { width: 100%; }

/* ==========================================================================
   Fluent Forms dentro de la tarjeta de cotización (.quote-card)
   ========================================================================== */
.quote-card .fluentform { margin-top: 22px; }
.quote-card .fluentform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-card .fluentform .ff-el-group { margin-bottom: 16px; }
.quote-card .fluentform .ff-t-container { display: flex; gap: 12px; }
.quote-card .fluentform .ff-t-cell { flex: 1 1 0; min-width: 0; padding: 0 !important; }
.quote-card .fluentform .ff-el-input--label { margin-bottom: 6px; }
.quote-card .fluentform .ff-el-input--label label { font-size: .875rem; font-weight: 650; color: var(--ink); }
.quote-card .fluentform .ff-el-is-required.asterisk-right label::after { color: var(--coral-deep); margin-left: 3px; }
.quote-card .fluentform .ff-el-form-control {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.4;
  background: #F7FAFD; border: 1.5px solid #D5DFE9; border-radius: var(--radius-sm);
  padding: 11px 14px; box-shadow: none;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
}
.quote-card .fluentform textarea.ff-el-form-control { min-height: 80px; resize: vertical; }
.quote-card .fluentform select.ff-el-form-control {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230177CC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.quote-card .fluentform .ff-el-form-control::placeholder { color: #8A94AD; }
.quote-card .fluentform .ff-el-form-control:hover { border-color: #B9C8D8; }
.quote-card .fluentform .ff-el-form-control:focus { outline: none; background-color: #fff; border-color: var(--vivid); box-shadow: 0 0 0 4px rgba(17, 108, 248, .14); }
.quote-card .fluentform .ff-el-is-error .ff-el-form-control { border-color: #E2561A; }
.quote-card .fluentform .error.text-danger { font-size: .8125rem; color: #B43F0A; margin-top: 5px; }
.quote-card .fluentform .ff_submit_btn_wrapper { margin: 20px 0 0; }
.quote-card .fluentform .ff-btn-submit {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; min-height: 58px; padding: 0 1.6rem; border: 0 !important; border-radius: 999px !important;
  font: inherit; font-size: 1.1875rem !important; font-weight: 700; line-height: 1.1; cursor: pointer;
  color: #fff !important;
  background: linear-gradient(180deg, #FF7A3D 0%, var(--coral) 55%, var(--coral-deep) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(180, 63, 10, .3), 0 10px 22px -10px rgba(246, 103, 37, .7);
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.quote-card .fluentform .ff-btn-submit::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.quote-card .fluentform .ff-btn-submit.shine::after { animation: shine 1.1s var(--ease-out); }
.quote-card .fluentform .ff-btn-submit:active { transform: scale(.97); }
@media (hover: hover) {
  .quote-card .fluentform .ff-btn-submit:hover { transform: translateY(-1px); opacity: 1; }
  .quote-card .fluentform .ff-btn-submit:hover::after { transform: translateX(130%); transition: transform .9s var(--ease-out); }
}
.quote-card .ff-message-success { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); box-shadow: none; }
@media (max-width: 359px) { .quote-card .fluentform .ff-t-container { flex-direction: column; gap: 0; } }
