/* ==========================================================================
   LOGÍSTICA HERNÁNDEZ — Hoja de estilos principal
   Índice:
   1. Variables y reset
   2. Utilidades y layout
   3. Tipografía
   4. Botones
   5. Header / navegación
   6. Hero
   7. Secciones generales (confianza, nosotros, servicios, galería, por qué)
   8. CTA + Footer
   9. WhatsApp flotante
   10. Formulario de contacto
   11. Página ubicación
   12. Animaciones
   13. Responsive
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Variables y reset
   ------------------------------------------------------------------------- */
:root {
  --navy-deep: #0a1f3d;
  --navy: #123a66;
  --navy-light: #1c5a8a;
  --graphite: #2b2f36;
  --gray-900: #1c1f24;
  --gray-600: #5b6472;
  --gray-300: #c9d2dc;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --accent: #d21419;
  --accent-dark: #a80f13;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 61, 0.16);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 84px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------
   2. Utilidades y layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--gray-100); }
.section--navy { background: var(--navy-deep); color: #fff; }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
.section--navy .section-title,
.on-dark .section-title { color: #fff; }

.section-text {
  font-size: 17px;
  color: var(--gray-600);
  margin-top: 16px;
}
.section--navy .section-text,
.on-dark .section-text { color: #c7d3e0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }

/* -------------------------------------------------------------------------
   4. Botones
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 106, 26, 0.30);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 14px 30px rgba(255, 106, 26, 0.38); transform: translateY(-2px); }

.btn-primary {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 31, 61, 0.25);
}
.btn-primary:hover { background: #081733; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}
.btn-outline:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); border-color: #fff; transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--navy-deep);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; }

/* -------------------------------------------------------------------------
   5. Header / navegación
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 31, 61, 0);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header.is-scrolled {
  background: rgba(10, 31, 61, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  height: 72px;
}
.site-header.is-inner {
  background: var(--navy-deep);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-plate {
  display: inline-flex;
  align-items: center;
  /* background: #fff; */
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-logo { height: 100px; width: auto; display: block; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { height: 100px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}
.brand-name--accent { color: var(--accent); }

.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
.main-nav a.is-active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 28, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 998;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  /* Espacio reservado fijo para que las tarjetas de .trust-strip (que se
     sobreponen con margin-top negativo) nunca tapen los botones del hero,
     sin importar la altura del contenido o del viewport. min-height es un
     mínimo, así que si el contenido + este padding no caben, la sección
     simplemente crece: nunca se produce superposición. */
  padding-bottom: 150px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/camion-negro.webp?v=1.0');
  background-size: cover;
  background-position: center 38%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,14,28,0.75) 0%, rgba(8,20,38,0.55) 45%, rgba(6,14,28,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  /* Centra verticalmente el contenido dentro del hero, pero si el contenido
     es más alto que el espacio disponible (viewports muy bajos), los
     márgenes automáticos colapsan a 0 en vez de desbordarse hacia arriba
     y taparía el header fijo: el contenido simplemente arranca desde
     padding-top. */
  margin-top: auto;
  margin-bottom: auto;
  padding-top: var(--header-h);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: #fff;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.hero-subtitle {
  margin-top: 22px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-scroll {
  position: absolute;
  bottom: 100px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero-scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
}

/* -------------------------------------------------------------------------
   7. Secciones generales
   ------------------------------------------------------------------------- */

/* Confianza / indicadores */
.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -76px;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: #fff; }
.trust-card h2, .trust-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-deep); }
.trust-card p { font-size: 14.5px; color: var(--gray-600); }

/* Nosotros (split) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(10,31,61,0.9);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--accent);
}
.about-list { margin-top: 28px; display: grid; gap: 16px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-600);
}
.about-list .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.about-list .check svg { width: 12px; height: 12px; stroke: #fff; }

/* Tarjetas de servicio */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,31,61,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-icon {
  position: absolute;
  top: 16px; left: 16px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.service-card-icon svg { width: 22px; height: 22px; stroke: var(--navy-deep); }
.service-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h2, .service-card-body h3 { font-size: 19px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.service-card-body p { font-size: 14.5px; color: var(--gray-600); flex: 1; }
.service-card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.service-card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

.services-footer { display: flex; justify-content: center; margin-top: 50px; }

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,14,28,0.55));
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* Por qué elegirnos */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-card { text-align: left; }
.why-card h3 { font-size: 17.5px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: rgba(255,255,255,0.72); }
.why-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}

/* -------------------------------------------------------------------------
   8. CTA + Footer
   ------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  color: #fff;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('../img/camion-negro.webp');
  background-size: cover;
  background-position: center 42%;
}
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,14,28,0.92), rgba(10,31,61,0.65)); }
.cta-content { position: relative; z-index: 2; max-width: 620px; }
.cta-content h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; }
.cta-content p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.85); }
.cta-content .btn-group { margin-top: 34px; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 48px;
}
.brand--footer { margin-bottom: 18px; }
.footer-slogan { font-size: 14.5px; color: rgba(255,255,255,0.65); max-width: 280px; line-height: 1.7; }
.footer-col h3 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-address { font-size: 14.5px; color: rgba(255,255,255,0.72); line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,0.5); }

/* -------------------------------------------------------------------------
   9. WhatsApp flotante
   ------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
}
.whatsapp-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}
.whatsapp-btn:hover { transform: scale(1.07); }

.whatsapp-menu {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 250px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.whatsapp-menu.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.whatsapp-menu-title { font-size: 13px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.whatsapp-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gray-100);
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--gray-600);
  transition: background var(--transition);
}
.whatsapp-menu-item:hover { background: #e7f9ee; }
.whatsapp-menu-item strong { color: var(--navy-deep); font-size: 14.5px; }

/* -------------------------------------------------------------------------
   10. Formulario de contacto
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid rgba(10,31,61,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--gray-900);
  background: #fbfcfd;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 4px rgba(28, 90, 138, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #e0552f; }
.field-error { display: none; color: #d3491f; font-size: 12.5px; margin-top: 6px; }
.form-group.has-error .field-error { display: block; }

/* honeypot oculto */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-alert {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  margin-bottom: 24px;
  font-weight: 500;
}
.form-alert--success { background: #e6f7ed; color: #1c7a41; border: 1px solid #b7e6c6; }
.form-alert--error { background: #fdecea; color: #b3401d; border: 1px solid #f6c6ba; }

.contact-side { display: grid; gap: 20px; }
.contact-info-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h2 { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row .icon-badge { margin-bottom: 0; width: 42px; height: 42px; background: rgba(255,255,255,0.12); flex: none; }
.contact-info-row .icon-badge svg { width: 20px; height: 20px; }
.contact-info-row a, .contact-info-row span { font-size: 14.5px; color: rgba(255,255,255,0.88); }

.contact-info-card--light {
  background: var(--gray-100);
  color: var(--gray-900);
  border: 1px solid rgba(10,31,61,0.06);
}
.contact-info-card--light h2 { color: var(--navy-deep); }
.contact-info-card--light .contact-info-row a,
.contact-info-card--light .contact-info-row span { color: var(--gray-600); }
.contact-info-card--light .icon-badge { background: linear-gradient(135deg, var(--navy-deep), var(--navy-light)); }

/* -------------------------------------------------------------------------
   11. Página ubicación
   ------------------------------------------------------------------------- */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 76px) 0 76px;
  color: #fff;
  overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; background-image: url('../img/camion-rojo.webp'); background-size: cover; background-position: center 40%; }
.page-header-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,14,28,0.90), rgba(10,31,61,0.72)); }
.page-header-inner { position: relative; z-index: 2; max-width: 720px; }
.page-header h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
.page-header p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.85); }

.brand-mark-section .container { display: flex; justify-content: center; }
.brand-mark-section img { width: 460px; max-width: 100%; height: auto; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10,31,61,0.06);
}
.map-card iframe { width: 100%; height: 460px; border: 0; display: block; }

.location-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

/* -------------------------------------------------------------------------
   12. Animaciones
   ------------------------------------------------------------------------- */
/* El estado oculto solo aplica si JS confirmó que puede revelar el
   contenido (clase .js en <html>). Sin JS, todo permanece visible. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js [data-animate].in-view { opacity: 1; transform: translateY(0); }
.js [data-animate="fade"] { transform: none; }
[data-animate-delay="1"] { transition-delay: 0.08s; }
[data-animate-delay="2"] { transition-delay: 0.16s; }
[data-animate-delay="3"] { transition-delay: 0.24s; }
[data-animate-delay="4"] { transition-delay: 0.32s; }

.hero-badge, .hero h1, .hero-subtitle, .hero-actions {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.45s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate], .hero-badge, .hero h1, .hero-subtitle, .hero-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------
   13. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(84vw, 340px);
    background: var(--navy-deep);
    flex-direction: column;
    padding: 110px 28px 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .header-cta { display: none; }

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

  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .location-layout { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item--wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 92vh; padding-bottom: 100px; }
  .hero-actions .btn, .btn-group .btn { width: 100%; }
  .hero-actions, .btn-group { flex-direction: column; }
  .trust-strip { margin-top: -50px; }
  .grid-4 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 36px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .whatsapp-menu { width: 220px; }
  .cta-section, .section--tight { padding: 64px 0; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
}
