:root {
  --navy: #0b2350;
  --navy-2: #12336f;
  --red: #d42a2f;
  --steel: #e9edf3;
  --text: #1c2433;
  --muted: #5b6577;
  --white: #fff;
  --radius: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--red); margin-bottom: .5rem;
}
.section { padding: 5rem 0; }
.section-intro { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-intro, .section-dark p { color: #d6deec; }
.section-light { background: var(--steel); }

/* Botones */
.btn {
  display: inline-block; background: var(--red); color: var(--white);
  padding: .85rem 1.5rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--red); cursor: pointer;
  font-size: 1rem; transition: background .2s, border-color .2s;
}
.btn:hover { background: #b31f24; border-color: #b31f24; }
.btn-ghost { background: transparent; border-color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-small { padding: .5rem 1rem; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 35, 80, .97); color: var(--white);
  border-bottom: 3px solid var(--red);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: var(--red); color: var(--white); font-size: 1.2rem;
}
.brand-name { font-size: 1.25rem; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a { text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { color: #ffb3b5; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center right;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,24,58,.95) 0%, rgba(8,24,58,.8) 45%, rgba(8,24,58,.25) 100%);
}
.hero-content { position: relative; padding: 5rem 0; max-width: 640px; margin-left: max(1.25rem, calc((100% - var(--max)) / 2)); }
.hero .lead { font-size: 1.15rem; color: #dbe3f1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Beneficios */
.benefits { background: var(--steel); padding: 2.5rem 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.benefit { border-left: 4px solid var(--red); padding-left: 1rem; }
.benefit h3 { color: var(--navy); margin-bottom: .3rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid #dde3ec; border-radius: var(--radius);
  padding: 1.6rem; border-top: 4px solid var(--navy-2);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,35,80,.1); }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.split-media figcaption { font-size: .85rem; color: #aebbd3; margin-top: .6rem; }
figure { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .7rem; color: #e3e9f4; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--white);
  background: var(--red); width: 1.2rem; height: 1.2rem; border-radius: 50%;
  font-size: .75rem; display: grid; place-items: center; top: .2rem;
}

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--steel); aspect-ratio: 4 / 5; }
.gallery .g-wide { grid-column: span 3; aspect-ratio: 3 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem .8rem;
  color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(8,24,58,.85));
}

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin-bottom: .6rem; color: #e3e9f4; }
.placeholder { background: rgba(212,42,47,.25); padding: 0 .3rem; border-radius: 3px; }
.quote-form {
  background: var(--white); color: var(--text); padding: 2rem; border-radius: var(--radius);
  display: grid; gap: 1rem;
}
.quote-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.quote-form input, .quote-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #c8d0dc; border-radius: 6px; font-weight: 400;
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--navy-2); border-color: var(--navy-2); }
.form-note { font-size: .82rem; color: var(--muted) !important; margin: 0; }

/* Pie */
.site-footer { background: #071733; color: #aebbd3; padding: 1.8rem 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-inner p { margin: 0; }

/* Responsivo */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 67px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu .btn { margin-top: .8rem; text-align: center; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: auto; aspect-ratio: 16 / 9; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .hero { min-height: 70vh; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after { background: rgba(8,24,58,.82); }
  .section { padding: 3.5rem 0; }
}
.phones { list-style: none; padding: 0; margin: .4rem 0 0; }
.phones li { margin-bottom: .3rem; }
.phones a { color: var(--white); }
.phones a[href^="https://wa.me"] { color: #7ee2a0; font-weight: 600; }
