/* PYABSA — Perforaciones y Ademes del Bajío. Estilo inspirado en la referencia aprobada:
   blanco / gris claro / negro, acento azul, titulares pesados, botones tipo píldora. */
:root {
  --bg: #ffffff;
  --gray: #f2f2f2;
  --gray-2: #e4e4e4;
  --ink: #1c1c1e;
  --muted: #5d6066;
  --black: #0b0b0c;
  --on-dark: #ffffff;
  --on-dark-muted: #c9ccd1;
  --accent: #1467c0;
  --accent-dark: #0e4f95;
  --destructive: #b3261e;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-control: 9999px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--black); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Kicker con estrella, como en la referencia */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 13px; height: 13px; background: var(--accent); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.section--dark .kicker, .hero .kicker { color: var(--on-dark); }
.accent { color: var(--accent); }
.hero .accent, .cta .accent, .section--dark .accent { color: #4d9be8; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-control); font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; line-height: 1.2; }
.btn::after { content: "\2197"; font-size: 1.05em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2a2a2d; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gray-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--plain::after { content: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; line-height: 1.15; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: var(--radius-control); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--gray); }
.nav .btn { margin-left: 8px; padding: 11px 20px; }
.nav .btn:hover { background: var(--accent-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 960px) {
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--gray-2); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; color: #fff; min-height: min(88vh, 820px); display: flex; align-items: center; text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,12,.72) 0%, rgba(5,8,12,.45) 45%, rgba(5,8,12,.8) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-control); padding: 7px 16px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { max-width: 15ch; margin: 0 auto 18px; }
.hero p { max-width: 56ch; margin: 0 auto 30px; color: #e3e6ea; font-size: 1.08rem; }
.hero .actions { justify-content: center; }
.page-hero { min-height: 52vh; }

/* Quiénes somos */
.about-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: end; margin-bottom: 56px; }
.about-media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.about-media img:first-child { aspect-ratio: 16 / 10; }
.about-media img:last-child { aspect-ratio: 1 / 1; margin-bottom: 64px; }
.about h2 { max-width: 20ch; margin-bottom: 22px; }
.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin: 34px 0; }
.big-stat { display: flex; align-items: center; gap: 12px; }
.big-stat b { font-family: var(--font-head); font-size: clamp(3.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.big-stat b i { color: var(--accent); font-style: normal; }
.big-stat span { font-size: 1.05rem; line-height: 1.3; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px); margin-top: 2px; }
.section--dark .checks li::before { border-color: #fff; background: radial-gradient(circle, #fff 0 3px, transparent 4px); }
@media (max-width: 720px) { .about-media { grid-template-columns: 1fr; } .about-media img:last-child { display: none; } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat b i { color: var(--accent); font-style: normal; }
.stat span { color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Ventajas con icono */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; margin-top: 48px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.feature svg { width: 52px; height: 52px; color: var(--accent); }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Servicios destacados (sección oscura numerada) */
.svc { padding: 48px 0; border-top: 1px solid #26262a; }
.svc:first-of-type { border-top: 0; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.svc__tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.svc__tag svg { width: 26px; height: 26px; }
.svc__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.6rem, 8vw, 6rem); line-height: .9; letter-spacing: -0.05em; }
.svc__num small { font-size: .5em; font-weight: 700; margin-left: 6px; }
.svc img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; }
.svc__body { display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: center; margin-top: 30px; }
.svc__body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; color: #fff; }
.svc__body .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; color: #fff; }
.circle-link { width: 200px; height: 200px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; transition: transform .25s; }
.circle-link::before { content: "\2197"; color: var(--accent); font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.circle-link:hover { transform: scale(1.04); }
@media (max-width: 760px) { .svc__body { grid-template-columns: 1fr; } .circle-link { width: 150px; height: 150px; font-size: 1rem; } .svc__body .checks { grid-template-columns: 1fr; } .svc img { aspect-ratio: 4 / 3; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 118px; height: 2px; background: var(--gray-2); }
.step { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.step__icon { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step__icon svg { width: 44px; height: 44px; color: var(--ink); }
.step__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin: 0 auto 26px; position: relative; z-index: 1; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 4rem; color: #e6e6e6; line-height: 1; margin-top: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } .step__n { order: -1; font-size: 2.6rem; margin: 0 0 10px; color: #d9d9d9; } .step__dot { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Tarjetas de obra */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row h2 { max-width: 18ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; border: 1px solid var(--gray-2); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.card__media { aspect-ratio: 4 / 3; background: var(--black); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; background: linear-gradient(140deg, #101215 0%, #1b2b40 100%); }
.card__media--empty b { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.card__media--empty span { color: var(--on-dark-muted); font-size: .9rem; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card__body h3 { font-size: 1.15rem; line-height: 1.25; }
.card__body p { color: var(--muted); font-size: .92rem; }
.section--gray .card { border-color: transparent; }

/* Obras en texto, una tarjeta por obra (al estilo de ecoperforaciones.com) */
.ob { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-2); border-radius: var(--radius-lg); overflow: hidden; }
.ob__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--gray); border-bottom: 3px solid var(--accent); }
.ob[data-kind="reposicion"] .ob__top { border-bottom-color: var(--accent-dark); }
.ob[data-kind="rehab"] .ob__top { border-bottom-color: var(--black); }
.ob__type { font-family: var(--font-head); font-weight: 700; font-size: .76rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ob__top svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.ob[data-kind="rehab"] .ob__top svg { color: var(--black); }
.ob__body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.ob__body h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.02em; }
.ob__body p { color: var(--muted); font-size: .92rem; margin: 0; }
.section--gray .ob { border-color: transparent; }
/* Filtros */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { border: 1px solid var(--gray-2); background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: var(--radius-control); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.status { color: var(--muted); padding: 24px 0; }

/* Servicios (página) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: #141416; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.svc-card div { padding: 22px 24px 26px; }
.svc-card .n { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: .9rem; letter-spacing: .06em; }
.svc-card h3 { color: #fff; margin: 6px 0 8px; font-size: 1.3rem; }

/* Clientes */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.logo-tile { background: #fff; border-radius: var(--radius-md); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 18px; }
.logo-tile img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sector { background: #fff; border-radius: var(--radius-lg); padding: 34px; }
.sector h3 { margin-bottom: 10px; }
.sector p { color: var(--muted); }
@media (max-width: 760px) { .sectors { grid-template-columns: 1fr; } }

/* Llamado a la acción */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(6,9,14,.74); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin: 0 auto 30px; }
.cta .actions { justify-content: center; align-items: center; }
.round-icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.round-icon svg { width: 24px; height: 24px; }

/* Detalle de obra */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.detail__rows { background: var(--gray); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; }
.detail__rows div { border-bottom: 1px solid var(--gray-2); padding-bottom: 14px; }
.detail__rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail__rows dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.detail__rows dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.gallery { display: grid; gap: 16px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; max-height: 70vh; object-fit: contain; background: var(--gray); border-radius: var(--radius-lg); }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.back { display: inline-flex; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 500; margin-bottom: 24px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* Formularios */
.form-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.info-list svg { width: 24px; height: 24px; color: var(--accent); margin-top: 3px; }
.info-list b { display: block; font-family: var(--font-head); }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--accent); }
.form-card { background: var(--gray); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d4d6da; border-radius: var(--radius-md); padding: 13px 15px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field .help { color: var(--muted); font-size: .85rem; }
.field .err, .form-error { color: var(--destructive); font-size: .88rem; }
.req { color: var(--accent); }
.thanks { background: #fff; border-radius: var(--radius-md); padding: 28px; font-size: 1.05rem; }
.thanks b { display: block; font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }

/* Aviso de privacidad */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #34363b; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* Pie */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo-chip { background: #fff; border-radius: var(--radius-md); padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.site-footer .logo-chip img { height: 48px; }
.site-footer .legal-row { border-top: 1px solid #26262a; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---- Clientes dentro de Obras (18/11/2026) ---- */
.clients-group { font-size: 1.15rem; margin: 0 0 16px; }
.clients-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clients-more b { margin-right: 4px; font-family: var(--font-head); }
.clients-more span { padding: 8px 14px; border-radius: var(--radius-control); background: var(--gray); font-size: .9rem; font-weight: 500; }
@media (hover: none) { .logo-tile img { filter: none; opacity: 1; } }
@media (max-width: 600px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 10px; } .logo-tile { padding: 12px; } }
/* ---- Logos de clientes: altura fija para Safari/iPhone (18/11/2026). Con aspect-ratio + max-height:100% Safari dejaba que el logo se saliera del cuadro ---- */
.logo-tile { aspect-ratio: auto; height: 120px; min-width: 0; overflow: hidden; }
.logo-tile img { max-height: 84px; }
@media (max-width: 600px) { .logo-tile { height: 96px; } .logo-tile img { max-height: 66px; } }