
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-alt: #e9eef2;
  --ink: #18212b;
  --muted: #5c6670;
  --primary: #f29b2f;
  --secondary: #243447;
  --accent: #f4bc63;
  --accent-soft: rgba(242, 155, 47, 0.14);
  --topbar: #1f2d3d;
  --nav-bg: rgba(255,255,255,0.9);
  --hero-bg: linear-gradient(125deg, #1f2d3d 0%, #27384d 52%, #f29b2f 100%);
  --hero-card-bg: rgba(255,255,255,0.1);
  --ring: rgba(36,52,71,0.12);
  --shadow-xl: 0 24px 80px rgba(20, 32, 46, 0.16);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.09);
  --radius-lg: 30px;
  --radius-md: 26px;
  --hero-after: radial-gradient(circle at 16% 20%, rgba(255,255,255,.16), transparent 0 24%), linear-gradient(115deg, transparent 0 56%, rgba(255,255,255,.06) 56% 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.3) 0%, transparent 18%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
iframe { display: block; width: 100%; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.topbar {
  background: var(--topbar);
  color: #fff;
  font-size: .92rem;
}
.topbar .container,
.nav-inner,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-strip,
.hero-actions,
.stats,
.nav-links,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}
.topbar .container { padding: .7rem 0; flex-wrap: wrap; }
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
}
.nav-inner { padding: 1rem 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand span {
  max-width: 25rem;
  line-height: 1.15;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  padding: .15rem;
  box-shadow: var(--shadow-sm);
}
.nav-links a {
  padding: .55rem .95rem;
  border-radius: 999px;
  transition: background-color .25s ease, transform .25s ease, color .25s ease;
}
.nav-links a:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.lang-link,
.button,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  font-weight: 700;
}
.lang-link {
  padding: .6rem 1rem;
  background: var(--accent-soft);
  color: var(--secondary);
}
.button {
  padding: .95rem 1.3rem;
}
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}
.button-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.08);
}
.pill {
  padding: .55rem .95rem;
  background: var(--accent-soft);
  color: var(--secondary);
}
.hero {
  padding: 4rem 0 2.5rem;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--hero-bg);
  color: #fff;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-after);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem;
}
.hero-copy {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 800;
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  line-height: 1.08;
  letter-spacing: -.03em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.1rem; }
.lead {
  max-width: 64ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,.86);
}
.stats {
  margin-top: .4rem;
}
.stat {
  min-width: 122px;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.stat strong {
  display: block;
  font-size: 1.15rem;
}
.stat span {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: .92rem;
}
.hero-media {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--hero-card-bg);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 28px;
  background: rgba(255,255,255,.1);
  filter: blur(2px);
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section {
  padding: 1.2rem 0 1.6rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head p {
  margin: .6rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}
.highlight,
.card,
.process-card,
.contact-card,
.cta-banner,
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: 1px solid var(--ring);
  box-shadow: var(--shadow-sm);
}
.highlight,
.contact-card,
.cta-banner {
  border-radius: var(--radius-md);
  padding: 1.35rem;
}
.highlight ul {
  margin: 0;
  padding-left: 1.1rem;
}
.highlight li + li {
  margin-top: .55rem;
}
.card-grid,
.mini-grid,
.faq-list {
  display: grid;
  gap: 1rem;
}
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.faq-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.card img {
  aspect-ratio: 1.22;
  object-fit: cover;
}
.card h3,
.card p,
.card .pill {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); }
.card .pill {
  margin-top: .25rem;
  margin-bottom: 1.15rem;
}
.process-card,
.faq-item {
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.process-card h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--secondary);
  margin-bottom: .9rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  gap: 1rem;
  align-items: stretch;
}
.map-frame {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe {
  min-height: 100%;
}
.faq-item p,
.contact-card p,
.cta-banner p {
  margin: .55rem 0 0;
  color: var(--muted);
}
.footer {
  padding: 2.5rem 0 3rem;
}
.footer-grid {
  align-items: start;
}
.footer-col {
  flex: 1;
  min-width: 220px;
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--ring);
}
.footer-col p,
.footer-col small {
  color: var(--muted);
}
.page-hero {
  padding: 2rem 0 .6rem;
}
.page-hero .highlight {
  background: var(--surface);
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    min-height: 320px;
  }
  .section-head,
  .footer-grid,
  .topbar .container,
  .nav-inner {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .container {
    width: min(100% - 1.2rem, 1180px);
  }
  .hero {
    padding-top: 2.5rem;
  }
  .hero-grid {
    padding: 1.35rem;
    gap: 1.25rem;
  }
  .button,
  .lang-link,
  .pill,
  .nav-links a {
    width: 100%;
  }
  .stats {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.hero-card::before {{
  content: "";
  position: absolute;
  inset: auto -6% -18% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}}
.card h3 {{
  color: var(--secondary);
}}

/* Ajustes de auditoría */
img{max-width:100%;height:auto;object-fit:contain}
.hero img,.page-hero img,.service-card img,.zone-card img,.gallery img,.card img,.cover-image img,.image-frame img{
  width:100%;height:auto;object-fit:contain;background:#fff;border-radius:16px;
}
.gallery,.image-grid{display:grid;gap:1rem}
.gallery img,.image-grid img{aspect-ratio:4/3;padding:.4rem;border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.06)}
figure, .media-frame, .image-frame{margin:0;background:#fff;border-radius:18px;overflow:hidden;padding:.35rem;border:1px solid rgba(0,0,0,.08)}
