:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #ffffff;
  --text: #111827;
  --muted: #5b6473;
  --line: #e5e7eb;
  --primary: #0f2748;
  --accent: #d11f2f;
  --accent-soft: #ffe8ea;
  --shadow: 0 18px 45px rgba(15, 39, 72, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  color: var(--text);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  z-index: -1;
}

.site-shell::before {
  width: 340px;
  height: 340px;
  background: rgba(209, 31, 47, 0.08);
  top: 120px;
  left: -100px;
}

.site-shell::after {
  width: 420px;
  height: 420px;
  background: rgba(15, 39, 72, 0.08);
  top: 600px;
  right: -180px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sub {
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.1rem;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1,
.section h2,
.stats-grid h2,
.contact-section h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.08;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #173b69);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.visual-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.visual-card img,
.gallery-item img,
.coverage-media img,
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-photo {
  position: absolute;
  inset: 30px 48px 60px 10px;
}

.floating-card {
  position: absolute;
  width: 220px;
  height: 220px;
}

.floating-top {
  top: 0;
  right: 0;
}

.floating-bottom {
  bottom: 0;
  right: 34px;
}

.stats-strip {
  padding: 18px 0 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stats-grid article {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.stat-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.stats-grid h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.section {
  padding: 72px 0;
}

.split-section,
.coverage-grid,
.showcase-grid,
.footer-grid,
.contact-box {
  display: grid;
  gap: 28px;
}

.split-section {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.section-copy p,
.section-head p,
.coverage-card p,
.showcase-card p,
.contact-copy p,
.footer p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-panel {
  display: grid;
  gap: 16px;
}

.feature-box,
.coverage-card,
.showcase-card,
.contact-box,
.phone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 39, 72, 0.06);
}

.feature-box {
  padding: 24px;
}

.feature-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-box strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.coverage-section {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.coverage-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.coverage-card {
  padding: 34px;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.coverage-tags span {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.coverage-media {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-grid {
  grid-template-columns: repeat(3, 1fr);
}

.showcase-card {
  padding: 20px;
}

.showcase-card img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  margin-bottom: 16px;
  background: #f4f4f4;
}

.showcase-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.contact-box {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(15,39,72,0.03), rgba(209,31,47,0.03));
}

.phone-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  min-width: 240px;
  text-align: center;
}

.phone-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.phone-card strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
}

.footer {
  padding: 28px 0 40px;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.footer-phone {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}

.floating-call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ef3d4d);
  color: #fff;
  box-shadow: 0 16px 36px rgba(209, 31, 47, 0.28);
  z-index: 50;
  font-size: 1.4rem;
}

/* Fallback seguro: el contenido es visible por defecto.
   Solo se anima cuando JavaScript agrega la clase .has-js al documento. */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

html.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .coverage-grid,
  .showcase-grid,
  .contact-box,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-visual {
    min-height: 560px;
  }

  .main-photo {
    inset: 40px 20px 90px 0;
  }

  .floating-card {
    width: 190px;
    height: 190px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .nav-wrap {
    min-height: 78px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 480px;
  }

  .main-photo {
    inset: 42px 8px 100px 0;
  }

  .floating-card {
    width: 150px;
    height: 150px;
  }

  .floating-top {
    right: 4px;
  }

  .floating-bottom {
    right: 12px;
  }

  .contact-box,
  .coverage-card,
  .feature-box,
  .stats-grid article,
  .showcase-card {
    padding: 22px;
  }

  .phone-card {
    min-width: 100%;
  }
}
