/* =========================================================
   Escobar Vial — estilos
   ========================================================= */
:root {
  --yellow: #fcc236;
  --yellow-600: #f3b007;
  --ink: #15130f;
  --ink-2: #1f1c17;
  --ink-3: #2a261f;
  --sand: #f6f3ee;
  --sand-2: #ece6dc;
  --white: #ffffff;
  --text: #3a352d;
  --muted: #7a7266;
  --line: rgba(0, 0, 0, .08);
  --line-dark: rgba(255, 255, 255, .1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(20, 16, 8, .25);
  --shadow-lg: 0 30px 60px -20px rgba(20, 16, 8, .35);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--yellow-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.125rem; color: var(--muted); }
.section--dark .lead { color: rgba(255, 255, 255, .65); }
.text-yellow { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(252, 194, 54, .7); }
.btn--primary:hover { background: var(--yellow-600); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .85rem; border-bottom: 1px solid var(--line-dark); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--yellow); }
.topbar svg { width: 15px; height: 15px; color: var(--yellow); }
.topbar__left, .topbar__right { display: flex; gap: 22px; align-items: center; }
@media (max-width: 760px) { .topbar__left a:nth-child(n+2), .topbar__right { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 19, 15, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { height: 26px; width: auto; }
@media (max-width: 400px) { .logo img { height: 21px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 16px; color: rgba(255, 255, 255, .8);
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 14px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--white); align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 12px 16px 24px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 16px 8px; border-bottom: 1px solid var(--line-dark); font-size: 1.3rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--yellow); }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 19, 15, .94) 0%, rgba(21, 19, 15, .72) 45%, rgba(21, 19, 15, .25) 100%),
              linear-gradient(0deg, rgba(21, 19, 15, .6), transparent 40%);
}
.hero > .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 130px; }
.hero__content { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .8); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-dark); background: rgba(21, 19, 15, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__badges ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__badges li {
  display: flex; align-items: center; gap: 12px; padding: 20px 18px; font-size: .92rem; color: rgba(255, 255, 255, .85);
  border-right: 1px solid var(--line-dark);
}
.hero__badges li:last-child { border-right: 0; }
.hero__badges svg { width: 26px; height: 26px; color: var(--yellow); flex: none; }
.hero__dots { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); padding: 0; transition: all .3s; }
.hero__dots button.is-active { background: var(--yellow); height: 28px; border-radius: 6px; }
@media (max-width: 900px) {
  .hero__badges ul { grid-template-columns: repeat(2, 1fr); }
  .hero__badges li:nth-child(2) { border-right: 0; }
  .hero__badges li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .hero > .container { padding-bottom: 190px; }
  .hero__dots { display: none; }
}
@media (max-width: 480px) { .hero__badges li { padding: 14px 12px; font-size: .8rem; } .hero__badges svg { width: 20px; height: 20px; } }

/* Page hero (interiores) */
.page-hero { position: relative; padding: clamp(90px, 13vw, 160px) 0 clamp(60px, 8vw, 100px); background: var(--ink) center/cover no-repeat; color: var(--white); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 19, 15, .95), rgba(21, 19, 15, .6)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { max-width: 620px; color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--yellow); }
.page-hero--servicios { background-image: url("../img/hero-compactacion.webp"); }
.page-hero--productos { background-image: url("../img/platea-hormigon.webp"); }
.page-hero--contacto { background-image: url("../img/obra-1.webp"); }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Service cards (home) ---------- */
.service-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--white);
  isolation: isolate; box-shadow: var(--shadow);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(21, 19, 15, .95) 10%, rgba(21, 19, 15, .15) 70%); }
.service-card:hover img { transform: scale(1.07); }
.service-card__body { padding: 30px; }
.service-card__num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--yellow); letter-spacing: .15em; }
.service-card h3 { color: var(--white); font-size: 2rem; margin: 6px 0 10px; }
.service-card p { color: rgba(255, 255, 255, .75); font-size: .95rem; margin-bottom: 18px; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--yellow); }
.service-card__link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(5px); }

/* ---------- About ---------- */
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; right: -20px; bottom: 40px; background: var(--yellow); color: var(--ink);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.about__badge strong { display: block; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; }
.about__badge span { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) { .about__badge { right: 12px; bottom: 12px; padding: 14px 18px; } .about__badge strong { font-size: 2.4rem; } }
.checklist { display: grid; gap: 12px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--yellow-600); margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--ink-2); padding: 34px 26px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.stat span { color: rgba(255, 255, 255, .7); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { padding: 24px 18px; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process__step {
  position: relative; padding: 34px 26px 28px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); margin-bottom: 22px; }
.process__icon svg { width: 28px; height: 28px; }
.process__step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--sand-2); line-height: 1;
}
.process__step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: #000 center/cover;
  box-shadow: var(--shadow-lg);
}
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .35); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: background .3s;
}
.video__play:hover { background: rgba(0, 0, 0, .2); }
.video__play span.icon {
  width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(252, 194, 54, .6); animation: pulse 2.2s infinite;
}
.video__play svg { width: 32px; height: 32px; margin-left: 4px; }
.video__play small { font-weight: 600; letter-spacing: .05em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 194, 54, .55); } 70% { box-shadow: 0 0 0 22px rgba(252, 194, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 194, 54, 0); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); border: 0; padding: 0; background: var(--sand-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left;
  color: var(--white); font-weight: 600; font-size: .9rem; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent);
  opacity: 0; transform: translateY(10px); transition: all .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 140px; gap: 10px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 9, 7, .94); display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; animation: fade .3s; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 500; }
.lightbox__btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: var(--white); display: grid; place-items: center; transition: background .2s;
}
.lightbox__btn:hover { background: var(--yellow); color: var(--ink); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); }
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; bottom: -40px; width: 340px;
  background: url("../img/isotipo.png") center/contain no-repeat; opacity: .12; transform: rotate(-8deg);
}
.cta-band .grid-2 { position: relative; z-index: 1; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0 0 22px; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Testimonials / FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 400; transition: transform .3s, background .3s;
}
.faq details[open] summary::after { content: "−"; background: var(--yellow); }
.faq details > div { padding: 0 26px 22px; color: var(--muted); }

/* ---------- Servicios (página) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; color: var(--text); transition: all .25s; display: inline-flex; align-items: center; gap: 10px;
}
.tab svg { width: 18px; height: 18px; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab.is-active svg { color: var(--yellow); }

.svc-group { display: none; }
.svc-group.is-active { display: block; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.svc-group__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.svc-group__intro h2 { margin: 0; }
.svc-group__intro p { max-width: 520px; margin: 0; color: var(--muted); }

.svc-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 28px; border: 1px solid var(--line);
}
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media { position: relative; min-height: 340px; }
.svc-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-block__body { padding: clamp(28px, 4vw, 48px); }
.svc-block__body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 18px 0 28px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.svc-list li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; margin-top: 9px; flex: none; transform: rotate(45deg); }
@media (max-width: 900px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
  .svc-block__media { min-height: 240px; }
}
@media (max-width: 480px) { .svc-list { grid-template-columns: 1fr; } }

/* Alquileres (tabla de equipos) */
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.equip__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--white);
  transition: border-color .25s, transform .25s var(--ease);
}
.equip__item:hover { border-color: var(--yellow); transform: translateY(-3px); }
.equip__item div { display: flex; flex-direction: column; }
.equip__item strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; }
.equip__item small { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.equip__item a {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(252, 194, 54, .12); color: var(--yellow); transition: all .25s;
}
.equip__item a:hover { background: var(--yellow); color: var(--ink); }
.equip__item a svg { width: 20px; height: 20px; }
.equip-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: rgba(255, 255, 255, .75); font-size: .9rem; font-weight: 500; transition: all .2s;
}
.chip:hover { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.chip.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.calc__form { padding: clamp(28px, 4vw, 48px); }
.calc__result { background: var(--ink); color: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.calc__result h3 { color: var(--white); }
.calc__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 7vw, 4.6rem); color: var(--yellow); line-height: 1; }
.calc__big small { font-size: .45em; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.calc__rows { display: grid; gap: 10px; margin: 18px 0 0; }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-dark); font-size: .95rem; color: rgba(255, 255, 255, .75); }
.calc__rows strong { color: var(--white); }
.calc__note { font-size: .8rem; color: rgba(255, 255, 255, .5); margin: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: var(--sand);
  font: inherit; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow-600); background: var(--white); box-shadow: 0 0 0 4px rgba(252, 194, 54, .2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field input[type="range"] { padding: 0; background: transparent; border: 0; accent-color: var(--yellow-600); height: 28px; }
.field input[type="range"]:focus { box-shadow: none; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { min-width: 74px; text-align: right; font-weight: 700; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--sand-2); background: var(--sand); font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-status { margin-top: 14px; font-size: .92rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.is-error { display: block; background: #fdecea; color: #8a1c12; }
.form-status.is-ok { display: block; background: #eaf7ee; color: #1c5b2e; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--yellow); }
.contact-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; flex: none; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card strong { color: var(--ink); font-weight: 600; word-break: break-word; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.send-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .send-actions { grid-template-columns: 1fr; } }
.map { border-radius: var(--radius-lg); overflow: hidden; height: 420px; background: var(--sand-2); position: relative; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map__load {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  background: var(--ink) url("../img/obra-3.webp") center/cover; color: var(--white); text-align: center; padding: 24px; border: 0; width: 100%;
}
.map__load::before { content: ""; position: absolute; inset: 0; background: rgba(21, 19, 15, .78); }
.map__load > * { position: relative; }
.hours { display: grid; gap: 6px; margin-top: 4px; font-size: .95rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Productos ---------- */
.product {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__tag { position: absolute; top: 14px; left: 14px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.product__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.7rem; margin-bottom: 8px; }
.product__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.product__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 20px; color: var(--ink); }
.product__price strong { font-family: var(--font-head); font-size: 1.5rem; }
.product__price span { color: var(--muted); font-size: .85rem; }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product__actions .btn { padding: 12px 14px; font-size: .88rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding-top: clamp(60px, 8vw, 96px); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer h4 { color: var(--white); font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 20px; }
.footer__brand img { height: 26px; width: auto; margin-bottom: 20px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--yellow); }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 4px; }
.footer__contact a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--white); transition: all .25s; }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
}
.wa-float__bubble {
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 500; opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); pointer-events: none;
}
.wa-float.show-bubble .wa-float__bubble { opacity: 1; transform: none; }
.wa-float__btn {
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease);
}
.wa-float__btn:hover { transform: scale(1.08); }
.wa-float__btn svg { width: 32px; height: 32px; }
@media (max-width: 600px) { .wa-float { right: 14px; bottom: 14px; } .wa-float__bubble { display: none; } }

.to-top {
  position: fixed; right: 30px; bottom: 92px; z-index: 140; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--yellow); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .to-top { right: 23px; bottom: 84px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.page-hero .hero__actions { margin-top: 28px; }
.equip__item[hidden] { display: none; }

/* =========================================================
   Ajustes responsive (tablet / mobile)
   ========================================================= */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.product__price { flex-direction: column; align-items: flex-start; gap: 2px; }
.product__price strong { white-space: nowrap; }
.product__actions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Tablet: la 3ª tarjeta de servicios ocupa todo el ancho en vez de quedar huérfana */
@media (min-width: 601px) and (max-width: 900px) {
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-3 > .service-card:last-child:nth-child(odd) { min-height: 340px; }
}

@media (max-width: 900px) {
  .about__media img { aspect-ratio: 4 / 3; }
  .about__badge { right: 16px; }
  .contact-grid > :first-child h2 { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
  :root { --header-h: 64px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  h3 { font-size: 1.35rem; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 1.02rem; }
  .eyebrow { font-size: .88rem; letter-spacing: .14em; margin-bottom: 10px; }
  .eyebrow::before { width: 20px; }
  .btn { padding: 13px 22px; font-size: .95rem; }

  .topbar { font-size: .8rem; }
  .topbar .container { min-height: 34px; }

  .hero__lead { margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero > .container { padding-top: 56px; padding-bottom: 170px; }
  .hero__badges li { gap: 8px; line-height: 1.3; }

  .page-hero { padding: 64px 0 48px; }
  .page-hero p { font-size: 1rem; }
  .breadcrumb { margin-bottom: 12px; font-size: .82rem; }

  .service-card { min-height: 360px; }
  .service-card__body { padding: 24px; }
  .service-card h3 { font-size: 1.7rem; }

  .checklist { margin: 20px 0 26px; font-size: .95rem; }
  .stat { padding: 22px 16px; }
  .stat strong { font-size: 2.3rem; }
  .stat span { font-size: .85rem; line-height: 1.4; display: block; }
  .process__step { padding: 26px 22px 22px; }
  .process__icon { width: 50px; height: 50px; margin-bottom: 16px; }

  .cta-band { padding: 34px 22px; }
  .cta-band::after { width: 200px; right: -60px; }
  .cta-band .grid-2 { gap: 18px; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }

  .faq summary { padding: 18px 54px 18px 18px; font-size: 1rem; line-height: 1.4; }
  .faq summary::after { right: 14px; }
  .faq details > div { padding: 0 18px 18px; font-size: .95rem; }

  /* Pestañas de servicios: fila deslizable */
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 30px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 16px; font-size: .9rem; }
  .svc-group__intro { margin-bottom: 24px; }
  .svc-block { margin-bottom: 20px; }
  .svc-block__media { min-height: 200px; }
  .svc-block__body h3 { font-size: 1.7rem; }
  .svc-list { margin: 14px 0 22px; font-size: .93rem; }
  .svc-block .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .svc-block .hero__actions .btn { width: auto; flex: 1 1 140px; }

  .equip { grid-template-columns: 1fr; gap: 10px; }
  .equip__item { padding: 14px 16px; }
  .equip__item strong { font-size: 1.1rem; }
  .equip-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 6px; scrollbar-width: none; }
  .equip-filter::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .calc__form, .calc__result { padding: 24px 20px; }
  .seg span { padding: 9px 13px; font-size: .88rem; }

  .products { gap: 18px; }
  .product__body { padding: 22px 20px; }
  .product__body h3 { font-size: 1.5rem; }
  .product__price { margin-bottom: 16px; }

  .form-card { padding: 24px 20px; }
  .contact-card { padding: 16px; gap: 14px; }
  .contact-card__icon { width: 44px; height: 44px; border-radius: 12px; }
  .contact-card strong { font-size: .93rem; }
  .map { height: 320px; }

  .footer { font-size: .92rem; }
  .footer__grid { padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 560px) {
  .process { gap: 12px; }
  .process__step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px 18px; }
  .process__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; margin: 0; }
  .process__icon svg { width: 24px; height: 24px; }
  .process__step h3 { margin: 4px 0 4px; font-size: 1.25rem; }
  .process__step::before { font-size: 1.6rem; top: 16px; right: 18px; }
}
