/* ===========================================================
   Gráfica MZ — Hoja de estilos
   Basada en el Sistema de Diseño (Fase 1)
   Mobile First
   =========================================================== */

:root {
  /* Colores de marca */
  --brand: #1c3a5e;
  --coral: #f26a4b;
  --sky: #2ba9e0;
  --amber: #fbb315;

  /* Neutros */
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --ink: #1c2b3a;
  --muted: #5b6b7b;
  --border: #e2e8ee;

  /* Tipografías */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Radios */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --header-h: 68px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--brand); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Compensa el header fijo al saltar a secciones */
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(242,106,75,.35); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo-img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font-weight: 500; color: var(--ink); padding: 8px 14px; border-radius: var(--radius-pill); }
.nav-link:hover { color: var(--brand); background: var(--surface-alt); }
.nav-cta { margin-left: 8px; padding: 10px 20px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; background: var(--surface); overflow: hidden; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: 36px; font-weight: 800; }
.hero h1 .accent { color: var(--coral); }
.lead { font-size: 18px; color: var(--muted); margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; height: 220px; display: none; }
.shape { position: absolute; border-radius: var(--radius-lg); }
.shape-navy { width: 160px; height: 160px; background: var(--brand); top: 0; right: 40px; }
.shape-coral { width: 110px; height: 110px; background: var(--coral); top: 60px; right: 150px; transform: rotate(45deg); border-radius: 12px; }
.shape-sky { width: 110px; height: 110px; background: var(--sky); top: 90px; right: 10px; transform: rotate(45deg); border-radius: 12px; }
.shape-amber { width: 90px; height: 90px; background: var(--amber); top: 130px; right: 110px; }

/* Beneficios */
.benefits { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
.benefit { background: var(--surface-alt); border-radius: var(--radius-md); padding: 20px; }
.benefit h3 { font-size: 17px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.section h2 { font-size: 28px; font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 12px; }

/* Cards de servicios */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28,58,94,.10); }
.card-tag { width: 44px; height: 6px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.note { margin-top: 32px; background: var(--brand); color: #fff; padding: 20px 24px; border-radius: var(--radius-lg); font-size: 15px; }
.note strong { color: var(--amber); }

/* Nosotros */
.nosotros-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.nosotros-grid h2 { font-size: 28px; margin: 10px 0 16px; }
.nosotros-grid p { color: var(--muted); margin-bottom: 14px; }
.nosotros-grid p strong { color: var(--ink); }
.mv { display: grid; gap: 16px; }
.mv-item { background: var(--surface); border-left: 4px solid var(--sky); border-radius: var(--radius-md); padding: 18px 20px; }
.mv-item h3 { font-size: 17px; margin-bottom: 6px; }
.mv-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* Contacto */
.contacto-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.contacto-info h2 { font-size: 28px; margin: 10px 0 14px; }
.contacto-info > p { color: var(--muted); margin-bottom: 18px; }
.contact-list { list-style: none; margin-bottom: 22px; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.contact-list a { color: var(--sky); font-weight: 500; }

.contact-form { background: var(--surface-alt); padding: 26px; border-radius: var(--radius-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.field textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #cdd8e4; padding: 48px 0 0; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-logo { height: 40px; background: #fff; padding: 8px 12px; border-radius: var(--radius-md); margin-bottom: 12px; }
.footer-tag { font-family: var(--font-display); color: #fff; font-weight: 600; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover { color: var(--amber); }
.footer-contact p { font-size: 14px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding: 18px 0; text-align: center; font-size: 13px; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===========================================================
   RESPONSIVE — Tablet / Desktop
   =========================================================== */
@media (min-width: 720px) {
  .hero h1 { font-size: 48px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .contacto-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 40px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-art { display: block; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Menú móvil ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: 0 12px 24px rgba(28,58,94,.12);
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
