/* =========================================================
   RECTILLANTA S.L. — Hoja de estilos principal
   Colores y tipografías corporativas: rojo #D1050D, negro,
   gris; Abel (titulares y menú) + Roboto (texto).
   ========================================================= */

:root {
  --red: #d1050d;
  --red-dark: #a00409;
  --red-deep: #7c0307;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --text: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .16);
  --font-head: "Abel", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --container: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
strong { color: var(--ink-2); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .8em 1.5em; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  line-height: 1.1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(209, 5, 13, .35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1eb957; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   CABECERA (misma estructura que la web original:
   franja roja con iconos · logo · datos, y menú debajo)
   ========================================================= */
.topbar {
  position: relative;
  background: linear-gradient(180deg, var(--red) 0%, var(--red) 72%, var(--white) 72%);
}
.topbar::before { /* textura sutil */
  content: ""; position: absolute; inset: 0 0 28% 0; pointer-events: none;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255,255,255,.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 9px);
}
.topbar-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px;
  padding-top: 18px;
}
.top-icons { display: flex; gap: 8px; padding-top: 14px; flex-wrap: wrap; }
.top-icons a {
  width: 62px; height: 62px; border-radius: 12px; background: #fff; padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .25s, box-shadow .25s;
}
.top-icons a:hover { transform: translateY(-4px) rotate(-3deg); box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.brand { display: block; width: 300px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); transition: transform .3s; }
.brand:hover { transform: scale(1.02); }
.top-info { color: #fff; text-align: right; padding-top: 10px; font-size: .95rem; line-height: 1.5; }
.top-info strong { color: #fff; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .03em; display: block; }
.top-info a { color: #fff; }
.top-info a:hover { color: #ffe1e2; }
.top-info .row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.top-info .icon { opacity: .9; }

/* Menú principal (fijo al hacer scroll) */
.mainnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.mainnav.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; justify-content: center; min-height: var(--nav-h); gap: 20px; position: relative; }
.nav-logo { position: absolute; left: 20px; width: 0; opacity: 0; overflow: hidden; transition: width .3s, opacity .3s; }
.nav-logo img { height: 44px; width: auto; }
.mainnav.is-stuck .nav-logo { width: 74px; opacity: 1; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.menu > li { position: relative; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); padding: 18px 16px; background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu > li > a::after, .menu > li > button::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.menu > li:hover > a::after, .menu > li:hover > button::after,
.menu a[aria-current="page"]::after, .menu .is-active > button::after { transform: scaleX(1); }
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: var(--red); }
.caret { width: 10px; height: 10px; transition: transform .25s; }
.submenu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 50%;
  min-width: 290px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: .25s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .caret, .has-sub.open .caret { transform: rotate(180deg); }
.submenu a { padding: 10px 14px; font-size: 1.05rem; border-radius: var(--radius-sm); letter-spacing: .03em; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--soft); }
.submenu img { width: 30px; height: 30px; }
.nav-cta { position: absolute; right: 20px; display: flex; gap: 8px; }
.nav-cta .btn { padding: .55em 1.1em; font-size: 1rem; }
.nav-toggle, .nav-quick { display: none; }

/* =========================================================
   PORTADAS (hero)
   ========================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  min-height: 360px; display: flex; align-items: flex-end;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.86) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.2) 100%),
    linear-gradient(0deg, rgba(209,5,13,.35), transparent 45%);
}
.hero .container { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.hero .lead { font-size: 1.2rem; max-width: 640px; color: rgba(255,255,255,.92); }
.hero-home { min-height: 600px; align-items: center; }
.hero-home h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .95rem;
  color: #fff; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--red); }
.hero .btn-row { margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: #ffb3b5; }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.crumbs a { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #d6d6d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker {
  display: inline-block; font-family: var(--font-head); color: var(--red);
  text-transform: uppercase; letter-spacing: .2em; font-size: .95rem; margin-bottom: 8px;
}
.title-line { position: relative; padding-bottom: 16px; }
.title-line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--red); border-radius: 3px; }
.section-head .title-line::after { left: 50%; transform: translateX(-50%); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media { position: relative; }
.media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red);
  border-radius: var(--radius); z-index: -1;
}
.media-tag {
  position: absolute; left: -14px; bottom: 26px; background: var(--red); color: #fff;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  line-height: 1.1; font-size: 1.05rem;
}
.media-tag b { display: block; font-size: 2rem; font-weight: 400; }

/* Texto de páginas de servicio */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--red); }
.intro-service { display: flex; gap: 28px; align-items: center; margin-bottom: 30px; }
.intro-service img { width: 110px; height: 110px; flex: none; }
.intro-service p { font-size: 1.15rem; margin: 0; }
.figure { margin: 34px 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.figure-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.text-img { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center; margin: 34px 0; }
.text-img.reverse > :first-child { order: 2; }
.text-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.highlight {
  background: linear-gradient(135deg, #fff 0%, #fff6f6 100%); border-left: 4px solid var(--red);
  padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; margin: 30px 0; box-shadow: var(--shadow);
}
.highlight p:last-child { margin: 0; }
.big-stat { font-family: var(--font-head); font-size: 3rem; color: var(--red); line-height: 1; display: block; margin-bottom: 6px; }

/* Pasos de proceso */
.steps { list-style: none; margin: 30px 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps > li {
  counter-increment: step; position: relative; padding: 26px 26px 22px 92px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
  width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(209,5,13,.35);
}
.steps h3 { margin-bottom: .35em; }
.steps p:last-child { margin-bottom: 0; }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--text);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-media { position: relative; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%); }
.card-ico {
  position: absolute; right: 16px; bottom: -26px; z-index: 2; width: 62px; height: 62px; background: #fff;
  border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
}
.card-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; padding-right: 60px; }
.card p { font-size: .98rem; flex: 1; }
.card .more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.card .more .icon { transition: transform .25s; }
.card:hover .more .icon { transform: translateX(5px); }
.cards-related { grid-template-columns: repeat(4, 1fr); }
.cards-related .card-body { padding: 18px 18px 20px; }
.cards-related h3 { font-size: 1.25rem; padding-right: 0; }

/* Servicios adicionales (iconos) */
.extras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.extra {
  text-align: center; padding: 28px 16px; border-radius: var(--radius); background: #fff; color: var(--ink);
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.extra:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red); color: var(--red); }
.extra img { width: 82px; height: 82px; margin: 0 auto 14px; }
.extra span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; line-height: 1.2; display: block; }

/* Bloques de servicios adicionales (página) */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:last-of-type { border-bottom: 0; }
.service-block:nth-of-type(even) > :first-child { order: 2; }
.service-block img.photo { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.service-block .head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.service-block .head img { width: 64px; height: 64px; }
.service-block h2 { margin: 0; }

/* Cifras / ventajas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 26px 14px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 2.8rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Proceso en portada */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: p; }
.process li { list-style: none; position: relative; text-align: center; padding: 30px 18px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); counter-increment: p; }
.process li::before {
  content: counter(p); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-head); font-size: 1.6rem; box-shadow: 0 8px 18px rgba(209,5,13,.35);
}
.process h3 { font-size: 1.3rem; margin-bottom: .3em; }
.process p { font-size: .95rem; margin: 0; }
.process { padding: 0; margin: 0; }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; margin: 0; }
.review::before { content: "\201C"; position: absolute; right: 22px; top: -8px; font-size: 6rem; font-family: Georgia, serif; color: rgba(209,5,13,.12); line-height: 1; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.review p { font-style: italic; margin: 10px 0 14px; }
.review footer { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.rating-summary .score { font-family: var(--font-head); font-size: 2.4rem; color: var(--ink); line-height: 1; }

/* Banda de llamada a la acción */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--red-deep) 0%, var(--red) 55%, #e8262d 100%);
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border-radius: 50%; border: 50px solid rgba(255,255,255,.07); box-shadow: 0 0 0 60px rgba(255,255,255,.04);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 20px; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-band .btn-red { background: #fff; color: var(--red); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.cta-band .btn-red:hover { background: var(--ink); color: #fff; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); transition: transform .3s, box-shadow .3s, border-color .3s;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); color: var(--text); }
.contact-card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #fff1f1; color: var(--red); }
.contact-card .ico .icon { width: 26px; height: 26px; }
.contact-card.wa .ico { background: #e8faef; color: #1aa851; }
.contact-card h3 { margin: 4px 0 0; }
.contact-card .value { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); line-height: 1.25; word-break: break-word; }
.contact-card small { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.contact-tip { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: #e8faef; border: 1px solid #c3efd3; margin-bottom: 34px; }
.contact-tip .icon { width: 34px; height: 34px; color: #1aa851; }
.contact-tip p { margin: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 500; color: var(--ink-2); }

/* Mapa con carga bajo demanda (sin cookies de terceros hasta que se pulsa) */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #ddd; aspect-ratio: 16 / 7; min-height: 320px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff;
  background:
    linear-gradient(rgba(20,20,20,.72), rgba(20,20,20,.72)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px),
    linear-gradient(135deg, #4a4a4a, #2a2a2a);
}
.map-placeholder .pin { width: 56px; height: 56px; color: var(--red); margin: 0 auto 10px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.map-placeholder h3 { color: #fff; margin-bottom: .2em; }
.map-placeholder p { color: rgba(255,255,255,.85); margin-bottom: 16px; }
.map-placeholder small { display: block; margin-top: 12px; font-size: .8rem; color: rgba(255,255,255,.65); }
.map-placeholder .btn-row { justify-content: center; }

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.site-footer { background: #0f0f0f; color: #b9b9b9; font-size: .95rem; border-top: 4px solid var(--red); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding: 64px 20px 44px; }
.footer-logo { width: 230px; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-list a { display: inline-flex; gap: 8px; align-items: center; }
.footer-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { color: var(--red); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1f1f1f; color: #fff; transition: background .25s, transform .25s; }
.social a:hover { background: var(--red); transform: translateY(-3px); }
.social .icon { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid #222; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 20px; font-size: .85rem; }
.site-footer .hours td { border-color: #2a2a2a; }
.site-footer .hours td:last-child { color: #fff; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }

/* WhatsApp flotante + barra de acciones móvil */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 32px; height: 32px; }
.wa-float .tip {
  position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 30px;
  box-shadow: var(--shadow); font-size: .9rem; opacity: 0; transform: translateX(10px); transition: .25s; pointer-events: none;
}
.wa-float:hover .tip { opacity: 1; transform: none; }
.mobile-bar { display: none; }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Páginas legales */
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal ul li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--soft); }

/* 404 */
.notfound { text-align: center; padding: 100px 20px; }
.notfound .code { font-family: var(--font-head); font-size: 8rem; color: var(--red); line-height: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .brand { width: 250px; }
  .top-icons a { width: 52px; height: 52px; }
  .nav-cta .btn span { display: none; }
  .cards-related { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { background: linear-gradient(180deg, var(--red) 0%, var(--red) 78%, var(--white) 78%); }
  .topbar-inner { grid-template-columns: 1fr; justify-items: center; padding-top: 12px; }
  .top-icons, .top-info { display: none; }
  .brand { width: 210px; }
  .nav-inner { justify-content: space-between; min-height: 58px; }
  .nav-logo { position: static; width: 0; opacity: 0; }
  .mainnav.is-stuck .nav-logo { width: 64px; opacity: 1; }
  .eyebrow { letter-spacing: .12em; font-size: .85rem; }
  .nav-logo img { height: 40px; }
  .nav-cta { display: none; }
  .nav-quick { display: flex; gap: 8px; margin-left: auto; }
  .nav-quick a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
  .nav-quick a.wa { background: var(--wa); color: #fff; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 50px;
    padding: 10px 16px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; cursor: pointer;
  }
  .burger { width: 18px; height: 12px; position: relative; display: inline-block; }
  .burger::before, .burger::after, .burger i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
  .burger::before { top: 0; } .burger i { top: 5px; } .burger::after { bottom: 0; }
  .nav-open .burger::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .burger::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-open .burger i { opacity: 0; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    padding: 8px 14px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.15); max-height: calc(100vh - 140px); overflow: auto;
    display: none;
  }
  .nav-open .menu { display: flex; animation: drop .25s ease; }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
  .menu a, .menu button { padding: 14px 10px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .menu > li > a::after, .menu > li > button::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; min-width: 0; }
  .has-sub.open .submenu { display: block; transform: none; }
  .has-sub:hover .submenu { transform: none; }
  .submenu a { justify-content: flex-start; font-size: 1rem; }

  .hero { min-height: 300px; }
  .hero-home { min-height: 520px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero .lead { font-size: 1.05rem; }
  .section { padding: 60px 0; }
  .split, .text-img, .service-block { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse > :first-child, .text-img.reverse > :first-child, .service-block:nth-of-type(even) > :first-child { order: 0; }
  .media::before { inset: 12px -10px -12px 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn-row { justify-content: center; }

  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #111; box-shadow: 0 -6px 20px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-head); }
  .mobile-bar a .icon { width: 22px; height: 22px; }
  .mobile-bar a.wa { background: var(--wa); }
  .mobile-bar a.call { background: var(--red); }
}

@media (max-width: 640px) {
  h2 { font-size: 1.65rem; }
  .container { padding: 0 16px; }
  .brand { width: 180px; }
  .cards, .cards-related, .extras, .contact-grid, .figure-row { grid-template-columns: 1fr; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .extras .extra:last-child { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat b { font-size: 2.2rem; }
  .intro-service { flex-direction: column; align-items: flex-start; gap: 16px; }
  .intro-service img { width: 80px; height: 80px; }
  .steps > li { padding: 80px 20px 20px; }
  .steps > li::before { left: 20px; top: 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; }
  .map-wrap { aspect-ratio: auto; min-height: 380px; }
  .btn { padding: .75em 1.2em; font-size: 1.02rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .media-tag { left: 10px; }
}
