:root {
  --blue-950: #003767;
  --blue-800: #005ca8;
  --blue-600: #008fe8;
  --cyan-400: #18dff2;
  --ink: #0a2135;
  --muted: #526778;
  --surface: #ffffff;
  --surface-soft: #f4f9fd;
  --line: #dbe8f1;
  --shadow: 0 18px 50px rgba(0, 69, 119, .12);
  --radius: 24px;
  --header-h: 76px;
}

* { 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, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 36px)); }
.section { padding: 96px 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(219,232,241,.85); }
.nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: min(300px, 55vw); }
.brand img { width: 100%; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { text-decoration: none; font-weight: 700; font-size: .95rem; color: #25455f; }
.nav-menu a:hover { color: var(--blue-800); }
.nav-cta { background: var(--blue-800); color: #fff !important; padding: 10px 16px; border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 9px; background: var(--blue-950); display: block; margin: 5px 0; }

.hero { position: relative; overflow: hidden; padding-top: 76px; background: radial-gradient(circle at 78% 28%, rgba(24,223,242,.18), transparent 28%), linear-gradient(180deg, #f7fbff 0%, #fff 100%); }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -260px; top: -140px; background: rgba(0,143,232,.08); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; color: var(--blue-800); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 5.3vw, 5.2rem); letter-spacing: -.055em; margin-bottom: 24px; max-width: 850px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 720px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 50px; padding: 13px 22px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 900; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-950), var(--blue-600)); color: #fff; box-shadow: 0 12px 28px rgba(0,92,168,.22); }
.btn-secondary { background: #fff; color: var(--blue-950); border-color: var(--line); }
.btn-whatsapp { background: #25d366; color: #073b1c; min-width: 220px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; color: #34586f; font-weight: 700; font-size: .93rem; }
.hero-visual { display: grid; place-items: center; }
.logo-orb { width: min(470px, 100%); aspect-ratio: 1; border-radius: 38% 62% 62% 38% / 44% 40% 60% 56%; display: grid; place-items: center; background: linear-gradient(145deg, #e9f7ff, #fff); box-shadow: var(--shadow); transform: rotate(-3deg); padding: 24px; }
.logo-orb img { transform: rotate(3deg); }

.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.07rem; margin-bottom: 0; }
.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: var(--surface-soft); border: 1px solid #e6f0f7; border-radius: var(--radius); padding: 26px; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card p { color: var(--muted); margin: 0; }
.service-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: #fff; font-size: 1.5rem; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(0,92,168,.08); }

.gallery-section { background: linear-gradient(180deg, var(--surface-soft), #fff); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 20px; min-height: 260px; background: #dceef9; box-shadow: 0 12px 32px rgba(0,74,128,.09); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; inset: auto 12px 12px 12px; background: rgba(1,34,59,.8); backdrop-filter: blur(8px); color: #fff; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.gallery-empty { grid-column: 1/-1; min-height: 260px; border: 2px dashed #b8d2e5; border-radius: 24px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; background: rgba(255,255,255,.7); }

.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.advantages { background: #062a47; color: #fff; }
.advantages .section-heading p { color: #c1d7e8; }
.advantages .eyebrow { color: #66e9f6; }
.advantage-list { display: grid; gap: 14px; }
.advantage-list > div { display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 18px; }
.advantage-list strong { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-950); font-size: 1.1rem; }
.advantage-list span { color: #d6e7f3; }
.advantage-list b { color: #fff; }

.faq { background: #fff; }
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; background: #fff; }
summary { cursor: pointer; list-style: none; font-weight: 900; padding: 20px 34px 20px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.6rem; color: var(--blue-800); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 20px; }

.contact { background: linear-gradient(180deg, #fff, #f1f9fe); }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 38px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); border: 1px solid #e5eef5; }
.contact-card h2 { margin-bottom: 10px; }
.contact-card p { margin: 0; color: var(--muted); max-width: 680px; }

.site-footer { background: #031d32; color: #bcd2e2; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner img { width: 220px; filter: brightness(0) invert(1); opacity: .9; }
.footer-inner p { margin: 0; font-size: .9rem; }

.whatsapp-float { position: fixed; z-index: 1200; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(4,75,33,.28); transition: transform .18s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 35px; height: 35px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .section { padding: 76px 0; }
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; left: 18px; right: 18px; top: 76px; display: grid; gap: 4px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
  .nav-menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-menu a { padding: 12px 14px; border-radius: 12px; }
  .nav-cta { text-align: center; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { order: -1; }
  .logo-orb { width: min(360px, 82vw); }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .section { padding: 62px 0; }
  .brand { width: 235px; max-width: 70vw; }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .trust-row { display: grid; gap: 8px; }
  .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px; }
  .gallery-item { min-height: 220px; }
  .contact-card { padding: 26px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .whatsapp-float { width: 58px; height: 58px; }
}

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

/* --- Modo de publicación -------------------------------------------------- */
.maintenance-only { display: none; }
html[data-site-mode="maintenance"] .live-only { display: none !important; }
html[data-site-mode="maintenance"] .maintenance-only { display: block; }

/* --- Página provisoria de mantenimiento --------------------------------- */
.maintenance-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(24,223,242,.16), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(0,143,232,.14), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf7fd 100%);
  padding: 48px 18px;
}
.maintenance-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 54px);
}
.maintenance-logo { width: min(240px, 58vw); margin: 0 auto 24px; }
.maintenance-shell h1 { font-size: clamp(2.15rem, 7vw, 4.2rem); margin-bottom: 18px; }
.maintenance-lead { color: var(--muted); font-size: 1.08rem; max-width: 650px; margin: 0 auto 26px; }
.maintenance-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.maintenance-services span { padding: 9px 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; color: var(--blue-950); }
.maintenance-sec { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; text-align: left; max-width: 570px; margin: 0 auto 26px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.maintenance-sec img { width: 120px; }
.maintenance-sec p { margin: 0; color: var(--muted); }
.maintenance-sec strong { color: var(--ink); }
.maintenance-whatsapp { min-width: min(360px, 100%); }
.maintenance-phone { margin: 14px 0 0; color: var(--muted); }

/* --- Galería/tarjetas de servicios -------------------------------------- */
.service-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-detail-card { overflow: hidden; border: 1px solid #e1edf5; border-radius: 26px; background: #fff; box-shadow: 0 14px 34px rgba(0,74,128,.08); }
.service-photo { min-height: 250px; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(145deg, #e9f7ff, #d8effa); color: #628398; font-weight: 900; letter-spacing: .02em; }
.service-photo small { font-weight: 700; }
.service-photo.has-image { padding: 0; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-content { padding: 26px; }
.service-detail-content h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 12px; }
.service-detail-content > p { color: var(--muted); margin: 0 0 18px; }
.service-detail-content ul { margin: 0; padding-left: 20px; color: #34586f; }
.service-detail-content li + li { margin-top: 7px; }
.service-kicker { display: inline-block; margin-bottom: 9px; color: var(--blue-800); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.service-sec-card { border-color: #b7d8e8; }

/* --- Certificación SEC --------------------------------------------------- */
.certification { background: linear-gradient(180deg, #f6fbfe, #fff); }
.certification-card { display: grid; grid-template-columns: 1fr 260px; gap: 54px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); }
.certification-card img { width: min(260px, 100%); justify-self: center; }
.certification-copy h2 { margin-bottom: 14px; }
.certification-copy p { color: var(--muted); font-size: 1.05rem; }
.certification-note { margin-bottom: 0; }

/* --- Zona de atención y mapa -------------------------------------------- */
.zone-section { background: #fff; }
.zone-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; }
.zone-copy p { color: var(--muted); font-size: 1.07rem; margin: 0 0 24px; }
.map-card { overflow: hidden; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-soft); min-height: 420px; }
.map-card iframe { width: 100%; height: 420px; display: block; border: 0; }

/* La galería de trabajos queda oculta hasta que existan fotografías. */
.gallery-section.gallery-is-empty { display: none; }

@media (max-width: 920px) {
  .service-gallery { grid-template-columns: 1fr; }
  .certification-card, .zone-grid { grid-template-columns: 1fr; }
  .certification-card { text-align: center; gap: 28px; }
  .certification-card img { order: -1; width: 210px; }
  .zone-copy { text-align: center; }
  .zone-copy .btn { width: auto; }
}

@media (max-width: 620px) {
  .maintenance-page { padding: 18px 12px; }
  .maintenance-shell { border-radius: 24px; }
  .maintenance-sec { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; }
  .maintenance-sec img { width: 88px; }
  .service-photo { min-height: 210px; }
  .service-detail-content { padding: 22px; }
  .map-card, .map-card iframe { min-height: 340px; height: 340px; }
  .zone-copy .btn { width: 100%; }
}
