:root {
  --navy: #0b2a59;
  --navy-2: #123a70;
  --blue: #1266cf;
  --blue-dark: #0e55ad;
  --green: #16b95f;
  --text: #172b4d;
  --muted: #5e6f85;
  --line: #dce4ee;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(10, 42, 89, .10);
  --radius: 20px;
  --header-h: 122px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
section[id], header[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid rgba(18,102,207,.25); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: var(--header-h); display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; width: 150px; align-items: center; }
.brand img { width: 150px; height: auto; object-fit: contain; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 34px; font-weight: 650; font-size: .96rem; }
.main-nav a, .site-footer a { transition: color .18s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--navy); transition: .2s ease; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(18,102,207,.28);
  outline-offset: 3px;
}
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 24px rgba(18,102,207,.20); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(18,102,207,.26); }
.button-whatsapp-outline { color: var(--text); border-color: #cbd7e5; background: #fff; }
.button-whatsapp-outline .wa-mark { color: var(--green); font-size: 1.15rem; margin-right: 8px; line-height: 1; }
.button-full { width: 100%; border: 0; }

.hero { padding: 76px 0 58px; background: linear-gradient(90deg, #fff 0 52%, #f3f6fa 52% 100%); }
.hero-grid { display: grid; grid-template-columns: .98fr 1.02fr; gap: 64px; align-items: center; }
.hero-copy h1 { margin: 0 0 24px; max-width: 650px; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.55rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-lead { margin: 0; max-width: 620px; font-size: 1.16rem; color: #405775; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 0; color: #536a86; font-size: .92rem; }
.hero-media { position: relative; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); background: #e7edf4; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 18px; bottom: 18px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--text); font-size: .82rem; font-weight: 750; box-shadow: 0 6px 18px rgba(0,0,0,.10); }

.trust-strip { padding: 0 0 16px; background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(10,42,89,.05); }
.trust-grid > div { min-height: 100px; padding: 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { color: var(--navy); font-size: .95rem; }
.trust-grid span { margin-top: 2px; color: var(--muted); font-size: .84rem; }

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading-left { margin-left: 0; text-align: left; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2, .profile-grid h2, .contact-copy h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child, .profile-grid > div > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }

.card-grid { display: grid; gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.info-card, .value-card { position: relative; min-height: 225px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.info-card:hover, .value-card:hover { transform: translateY(-3px); border-color: #c5d5e8; box-shadow: var(--shadow); }
.card-number, .value-card > span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #edf4ff; color: var(--blue); font-weight: 850; font-size: .8rem; }
.info-card h3, .value-card h3 { margin: 24px 0 10px; color: var(--navy); font-size: 1.18rem; }
.info-card p, .value-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.section-footnote { margin: 28px auto 0; max-width: 820px; color: var(--muted); text-align: center; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.benefit-grid article { min-height: 220px; padding: 30px; background: #fff; }
.benefit-grid span { color: var(--blue); font-weight: 850; font-size: .82rem; }
.benefit-grid h3 { margin: 22px 0 10px; color: var(--navy); }
.benefit-grid p { margin: 0; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { margin: 0; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.work-card img { width: 100%; height: 460px; object-fit: cover; }
.work-card:first-child img { object-position: center 44%; }

/* La foto grafito tiene un encuadre más ancho que las demás.
   Se muestra completa para evitar recortes del marco. */
.work-card--contain img {
  object-fit: contain;
  object-position: center center;
  background: #f2f5f9;
}

.work-card figcaption { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.work-card strong { color: var(--navy); font-size: 1.05rem; }
.work-card span { color: var(--muted); font-size: .92rem; }

.profile-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 54px; align-items: center; }
.profile-grid > div > p { margin-bottom: 0; }
.profile-grid .muted { font-size: .9rem; }
.profile-media { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(10,42,89,.06); }
.profile-media img { width: 100%; }
.profile-media figcaption { margin-top: 12px; color: var(--muted); text-align: center; font-size: .86rem; }

.section-process { background: var(--navy); color: #fff; }
.section-heading-light h2, .section-heading-light p { color: #fff; }
.section-heading-light > p:last-child { color: #c7d6e9; }
.eyebrow-light { color: #8fc3ff !important; }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-grid li { min-height: 220px; padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.06); }
.process-grid span { color: #8fc3ff; font-weight: 850; }
.process-grid h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.process-grid p { margin: 0; color: #c9d5e5; font-size: .92rem; }
.process-note { margin-top: 22px; padding: 24px 26px; border-left: 4px solid #59a6ff; border-radius: 10px; background: rgba(255,255,255,.08); }
.process-note strong { font-size: 1.02rem; }
.process-note p { margin: 6px 0 0; color: #d4deea; font-size: .93rem; }

.guarantee-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; }
.guarantee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guarantee-cards article { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); }
.guarantee-cards strong { display: block; color: var(--blue); font-size: 3.2rem; line-height: 1; }
.guarantee-cards h3 { margin: 12px 0 8px; color: var(--navy); }
.guarantee-cards p { margin: 0; color: var(--muted); font-size: .91rem; }
.guarantee-terms { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted); }
.guarantee-terms > p { margin-top: 0; }
.guarantee-terms dl { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guarantee-terms dl > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.guarantee-terms dt { color: var(--navy); font-weight: 800; }
.guarantee-terms dd { margin: 5px 0 0; }

.faq-wrap { display: grid; grid-template-columns: .65fr 1.35fr; gap: 58px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 44px 22px 0; color: var(--navy); font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: -8px 40px 20px 0; color: var(--muted); }

.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.contact-link { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contact-link:hover { border-color: #9bc0ee; box-shadow: 0 8px 20px rgba(10,42,89,.06); }
.contact-link strong { color: var(--green); font-size: .85rem; }
.contact-link span { color: var(--navy); font-weight: 750; }
.contact-meta { margin: 16px 0 0 !important; color: var(--muted) !important; font-size: .91rem !important; }
.contact-meta a { color: var(--navy); font-weight: 700; }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); box-shadow: 0 16px 38px rgba(10,42,89,.07); }
.form-card h3 { margin: 0; color: var(--navy); font-size: 1.45rem; }
.form-card > p { margin: 6px 0 24px; color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--navy); font-size: .88rem; font-weight: 750; }
.form-full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cbd6e4; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--text); font-weight: 400; }
textarea { resize: vertical; min-height: 120px; }
.form-card .button { margin-top: 18px; }
.form-note { margin: 12px 0 0 !important; text-align: center; font-size: .82rem; }

.site-footer { padding: 60px 0 24px; background: #081f42; color: #d9e2ef; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.footer-brand { margin: 0 0 10px; color: #fff; font-size: 1.3rem; font-weight: 850; }
.site-footer p { max-width: 500px; color: #adbed2; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: .9rem; }
.site-footer nav, .footer-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-cta { margin-top: 8px; color: #8fc3ff; font-weight: 750; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .82rem; }
.footer-bottom p { margin: 0; }

.floating-whatsapp { position: fixed; z-index: 90; right: 18px; bottom: 18px; min-height: 52px; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; color: #fff; background: var(--green); box-shadow: 0 12px 28px rgba(22,185,95,.28); }
.floating-whatsapp:hover { transform: translateY(-1px); }
.floating-whatsapp .wa-mark { font-size: 1.15rem; line-height: 1; }

@media (max-width: 1020px) {
  :root { --header-h: 96px; }
  .header-inner { grid-template-columns: 140px auto auto; gap: 16px; }
  .brand, .brand img { width: 124px; }
  .main-nav { gap: 18px; font-size: .9rem; }
  .hero { padding-top: 58px; }
  .hero-grid { gap: 38px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 5.7vw, 3.8rem); }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .guarantee-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-heading-left { max-width: 780px; }
}

@media (max-width: 780px) {
  :root { --header-h: 82px; }
  .container { width: min(100% - 28px, 1180px); }
  .site-header { min-height: var(--header-h); }
  .header-inner { position: relative; min-height: var(--header-h); grid-template-columns: 118px 1fr auto; }
  .brand, .brand img { width: 110px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 18px 30px rgba(10,42,89,.10); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 8px; }
  .main-nav a:hover { background: var(--soft); }
  .hero { padding: 46px 0 34px; background: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-media { border-radius: 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 34px; text-align: left; }
  .card-grid-3, .benefit-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card img { height: 420px; }
  .contact-actions, .form-grid, .guarantee-cards, .guarantee-terms dl { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .card-grid-3, .card-grid-4, .benefit-grid, .process-grid { grid-template-columns: 1fr; }
  .work-card img { height: 360px; }
  .profile-media { padding: 10px; }
  .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: 1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .floating-whatsapp { right: 12px; bottom: 12px; padding: 12px 14px; }
  .floating-whatsapp strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* V4: media de trabajos, cobertura y formulario */
.work-card video { width:100%; height:460px; object-fit:cover; background:#0b1d36; display:block; }
.coverage-box { margin-top:18px; padding:15px 17px; border:1px solid var(--line); border-radius:14px; background:var(--soft); display:flex; flex-direction:column; gap:3px; }
.coverage-box strong { color:var(--navy); font-size:.88rem; }
.coverage-box span { color:var(--muted); font-size:.92rem; }
@media (max-width: 1050px) and (min-width: 781px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:780px){ .work-card video{height:420px;} }
@media (max-width:520px){ .work-card video{height:360px;} }

/* Estado de envío del formulario */
.form-status { margin-top: 14px; min-height: 1.5em; font-size: .95rem; line-height: 1.5; color: #52647a; }
.form-status-success { padding: 14px 16px; border: 1px solid #b8dfc7; border-radius: 12px; background: #f2fbf5; color: #194f2d; }
.form-status-error { padding: 14px 16px; border: 1px solid #f0c2c2; border-radius: 12px; background: #fff6f6; color: #7a2424; }
.form-status-error a { font-weight: 700; text-decoration: underline; }
.form-card button[disabled] { opacity: .7; cursor: wait; }
