*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --red:    #C62828;
      --dark:   #0D1B2A;
      --navy:   #152640;
      --light:  #F5F7FA;
      --gray:   #5C6B7A;
      --white:  #FFFFFF;
      --accent: #E53935;
    }

    body {
      font-family: 'Open Sans', sans-serif;
      color: var(--dark);
      background: var(--white);
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(13,27,42,0.97);
      backdrop-filter: blur(6px);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 48px;
      height: 72px;
    }
    nav .logo-wrap {
      display: flex; align-items: center; gap: 14px;
    }
    nav .logo-wrap img {
      height: 44px; width: auto;
    }
    nav .logo-text {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700;
      color: #9EAEC0;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      line-height: 1.3;
    }
    nav a.cta-nav {
      background: var(--red);
      color: var(--white);
      font-family: 'Montserrat', sans-serif;
      font-size: 13px; font-weight: 700;
      text-decoration: none;
      padding: 11px 28px;
      border-radius: 4px;
      letter-spacing: 0.06em;
      transition: background 0.2s;
    }
    nav a.cta-nav:hover { background: #b71c1c; }

    /* ── HERO ── */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex; align-items: center;
      overflow: hidden;
      padding-top: 72px;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background-image: url('/files/hero.jpg');
      background-size: cover;
      background-position: center top;
      filter: brightness(0.65);
    }
    .hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(105deg, rgba(13,27,42,0.65) 45%, rgba(13,27,42,0.35) 100%);
    }
    .hero-content {
      position: relative; z-index: 2;
      max-width: 720px;
      padding: 64px 80px;
    }
    .hero-tag {
      display: inline-block;
      background: var(--red);
      color: var(--white);
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 6px 16px;
      border-radius: 3px;
      margin-bottom: 28px;
    }
    .hero h1 {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(2rem, 4vw, 3.1rem);
      font-weight: 800;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 22px;
    }
    .hero h1 span { color: #EF9A9A; }
    .hero p {
      font-size: 1.05rem;
      color: #B0C4DE;
      line-height: 1.75;
      max-width: 560px;
      margin-bottom: 38px;
    }
    .hero-cta {
      display: inline-block;
      background: var(--red);
      color: var(--white);
      font-family: 'Montserrat', sans-serif;
      font-size: 14px; font-weight: 700;
      text-decoration: none;
      padding: 16px 40px;
      border-radius: 4px;
      letter-spacing: 0.07em;
      transition: background 0.2s, transform 0.15s;
    }
    .hero-cta:hover { background: #b71c1c; transform: translateY(-1px); }

    /* ── STATS STRIP ── */
    .stats {
      background: var(--red);
      display: flex; justify-content: center; flex-wrap: wrap;
      gap: 0;
    }
    .stat-item {
      flex: 1; min-width: 180px;
      padding: 28px 20px;
      text-align: center;
      border-right: 1px solid rgba(255,255,255,0.2);
    }
    .stat-item:last-child { border-right: none; }
    .stat-num {
      font-family: 'Montserrat', sans-serif;
      font-size: 2rem; font-weight: 800;
      color: var(--white);
    }
    .stat-label {
      font-size: 0.78rem; font-weight: 600;
      color: rgba(255,255,255,0.8);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-top: 4px;
    }

    /* ── SECTION ── */
    section { padding: 80px 0; }
    .container {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 40px;
    }
    .section-tag {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(1.6rem, 2.5vw, 2.2rem);
      font-weight: 800;
      color: var(--dark);
      margin-bottom: 20px;
      line-height: 1.2;
    }
    .section-lead {
      font-size: 1rem;
      color: var(--gray);
      line-height: 1.75;
      max-width: 640px;
    }
    .divider {
      width: 48px; height: 4px;
      background: var(--red);
      margin: 18px 0 32px;
      border-radius: 2px;
    }

    /* ── ABOUT ── */
    .about { background: var(--light); }
    .about-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }
    .about-right {
      display: flex; flex-direction: column; gap: 20px;
    }
    .about-feat {
      display: flex; gap: 16px; align-items: flex-start;
    }
    .feat-icon {
      width: 44px; height: 44px;
      background: var(--red);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .feat-icon svg { width: 22px; height: 22px; fill: white; }
    .feat-text h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.95rem; font-weight: 700;
      color: var(--dark); margin-bottom: 4px;
    }
    .feat-text p {
      font-size: 0.88rem; color: var(--gray); line-height: 1.6;
    }

    /* ── SERVICES ── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
      gap: 28px;
      margin-top: 48px;
    }
    .service-card {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.09);
      transition: transform 0.2s, box-shadow 0.2s;
      background: var(--white);
    }
    .service-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.13);
    }
    .card-img {
      height: 220px;
      background-size: cover;
      background-position: center;
      position: relative;
    }
    .card-img-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(13,27,42,0.65) 0%, transparent 55%);
    }
    .card-body {
      padding: 24px;
    }
    .card-num {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 0.2em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    .card-body h3 {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.05rem; font-weight: 700;
      color: var(--dark); margin-bottom: 10px;
    }
    .card-body p {
      font-size: 0.875rem;
      color: var(--gray);
      line-height: 1.65;
    }

    /* ── SAFETY ── */
    .safety {
      background: var(--navy);
      text-align: center;
      padding: 70px 0;
    }
    .safety .section-title { color: var(--white); }
    .safety .section-lead { color: #8BAABE; margin: 0 auto; text-align: center; }
    .safety .divider { margin: 18px auto 32px; }
    .safety-badges {
      display: flex; justify-content: center; flex-wrap: wrap; gap: 24px;
      margin-top: 40px;
    }
    .badge {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 22px 32px;
      min-width: 200px;
      text-align: center;
    }
    .badge-icon {
      font-size: 2rem; margin-bottom: 10px;
    }
    .badge h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem; font-weight: 700;
      color: var(--white); margin-bottom: 6px;
    }
    .badge p {
      font-size: 0.8rem; color: #8BAABE; line-height: 1.5;
    }

    /* ── CONTACT ── */
    .contact { background: var(--light); text-align: center; }
    .contact .section-tag,
    .contact .section-title,
    .contact .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
    .contact .divider { margin: 18px auto 32px; }
    .contact-box {
      display: inline-flex; align-items: center; gap: 14px;
      background: var(--white);
      border: 2px solid #E0E8F0;
      border-radius: 8px;
      padding: 18px 32px;
      margin-top: 20px;
      text-decoration: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .contact-box:hover {
      border-color: var(--red);
      box-shadow: 0 4px 16px rgba(198,40,40,0.12);
    }
    .contact-box svg { width: 22px; height: 22px; fill: var(--red); }
    .contact-box span {
      font-family: 'Montserrat', sans-serif;
      font-size: 1rem; font-weight: 700;
      color: var(--dark);
    }
    .cta-large {
      display: inline-block;
      background: var(--red);
      color: var(--white);
      font-family: 'Montserrat', sans-serif;
      font-size: 15px; font-weight: 700;
      text-decoration: none;
      padding: 18px 48px;
      border-radius: 5px;
      letter-spacing: 0.07em;
      margin-top: 32px;
      transition: background 0.2s;
    }
    .cta-large:hover { background: #b71c1c; }

    /* ── FOOTER ── */
    footer {
      background: var(--dark);
      padding: 36px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }
    footer .logo-wrap { display: flex; align-items: center; gap: 12px; }
    footer .logo-wrap img { height: 36px; }
    footer .logo-wrap span {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 600;
      color: #8BAABE; letter-spacing: 0.12em; text-transform: uppercase;
    }
    footer p {
      font-size: 0.8rem; color: #4E6070;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      nav { padding: 0 20px; }
      .hero-content { padding: 48px 24px; }
      .about-inner { grid-template-columns: 1fr; gap: 40px; }
      .container { padding: 0 20px; }
      footer { flex-direction: column; text-align: center; }
    }

/* ── GALLERY PAGES (antes/después) ── */
.gallery-header {
  padding: 140px 0 20px;
  background: var(--light);
  scroll-margin-top: 88px;
}
.gallery-header .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}
.gallery-header .back-link:hover { text-decoration: underline; }
/* Banners de cada servicio: la mitad del espacio superior que el banner intro */
.gallery-header:not(#top) {
  padding-top: 70px;
}

.gallery-section { padding-top: 20px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--light);
  display: block;
}

/* ── SERVICE CARD AS LINK (home page) ── */
a.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── GALLERY JUMP LINKS (botones de categoría) ── */
.gallery-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.gallery-jump-links a {
  display: inline-block;
  background: var(--white);
  border: 2px solid #E0E8F0;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.gallery-jump-links a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}