:root {
  --navy: #0B1B35;
  --navy-light: #12264a;
  --amber: #FFB300;
  --amber-dark: #F59F00;
  --amber-soft: #FFF8E1;
  --green: #2E7D32;
  --text: #1c2b45;
  --muted: #5A6B82;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(11, 27, 53, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 78px 0; }
.section-title { font-size: 2.1rem; font-weight: 800; color: var(--navy); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 44px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(11,27,53,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; }
.brand-logo { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { font-weight: 600; font-size: 0.97rem; color: var(--navy); transition: color 0.2s; }
.menu a:hover { color: var(--amber-dark); }
.cta-phone { background: var(--amber); color: #221a03 !important; padding: 9px 16px; border-radius: 999px; font-weight: 700 !important; }
.cta-phone:hover { background: var(--amber-dark); color: #221a03 !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: 0.3s; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: transform 0.15s, background 0.2s; }
.btn-primary { background: var(--amber); color: #221a03; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- HERO ---------- */
.hero { background: linear-gradient(160deg, #FFF9E6 0%, #EFF6E3 55%, #dff0e0 100%); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.badge { display: inline-block; background: var(--amber); color: #221a03; font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-text h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; color: var(--navy); font-weight: 800; }
.hero-text p { margin: 20px 0 28px; font-size: 1.12rem; color: var(--navy-light); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { border-left: 3px solid var(--amber); padding-left: 14px; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid #eef1f6; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,27,53,0.15); }
.card img { border-radius: 12px; width: 100%; height: 190px; object-fit: cover; }
.card h3 { margin: 18px 0 8px; color: var(--navy); font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.servicios .card { text-align: center; }

/* ---------- BENEFICIOS ---------- */
.beneficios { background: var(--bg-soft); }
.beneficios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.beneficio { text-align: center; padding: 20px; }
.beneficio img { width: 220px; margin: 0 auto 22px; }
.beneficio h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 8px; }
.beneficio p { color: var(--muted); }

/* ---------- GALERIA ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(11,27,53,0.85)); color: #fff; font-weight: 600; font-size: 0.95rem; }

/* ---------- OFICINAS ---------- */
.oficinas { background: var(--navy); color: #eaf0fb; }
.oficinas .section-title, .oficinas .section-sub { color: #fff; }
.oficinas .section-sub { color: #b9c7dd; }
.oficinas-grid { grid-template-columns: repeat(4, 1fr); }
.oficina { background: var(--navy-light); border: 1px solid rgba(255,255,255,0.10); color: #eaf0fb; }
.oficina h3 { color: var(--amber); }
.oficina .dir { color: #c3d0e6; margin: 10px 0 14px; }
.oficina a { display: block; color: #fff; font-weight: 600; margin-top: 6px; }
.oficina a:hover { color: var(--amber); }

/* ---------- CONTACTO ---------- */
.contacto { background: var(--amber-soft); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contacto-info .section-title { text-align: left; }
.contacto-info p { color: var(--navy-light); margin: 14px 0 22px; }
.contacto-lineas { display: flex; flex-direction: column; gap: 12px; }
.contacto-lineas a { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.contacto-lineas a:hover { color: var(--amber-dark); }
.contacto-lineas span { color: var(--muted); }
.contacto-form { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contacto-form input, .contacto-form select, .contacto-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #dde3ec; border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg-soft);
}
.contacto-form textarea { min-height: 100px; resize: vertical; }
.contacto-form input:focus, .contacto-form select:focus, .contacto-form textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }
.form-msg { font-weight: 600; text-align: center; min-height: 22px; }

/* ---------- FOOTER ---------- */
.footer { background: #07122b; color: #b9c7dd; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 300px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.footer-col a, .footer-social a { display: block; color: #b9c7dd; margin-bottom: 9px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--amber); }
.social-icons { display: flex; gap: 10px; margin-bottom: 16px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--navy-light); border-radius: 10px; font-weight: 800; color: #fff !important; font-size: 1.05rem; transition: background 0.2s, transform 0.2s; }
.social-icons a:hover { background: var(--amber); color: #221a03 !important; transform: translateY(-3px); }
.footer-phone { font-weight: 700; color: var(--amber) !important; }
.footer-bottom { border-top: 1px solid #12304a; margin-top: 40px; padding: 20px 0; text-align: center; color: #7b8aa5; font-size: 0.9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .oficinas-grid { grid-template-columns: repeat(2, 1fr); }
  .beneficios-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
@media (max-width: 620px) {
  .grid, .oficinas-grid, .beneficios-grid, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .menu-toggle { display: flex; }
  .menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: #fff; transition: opacity 0.25s, visibility 0.25s; opacity: 0; visibility: hidden;
  }
  .menu.open { opacity: 1; visibility: visible; }
  .menu a { font-size: 1.3rem; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}