/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ✅ SAFE RESPONSIVE DEFAULTS (no cambian estética) */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid rgba(22,95,169,0.45); outline-offset: 3px; }

/* ===== COLORES PRINCIPALES ===== */
:root {
  --azul-oscuro: #052449;
  --azul-petroleo: #024357;
  --azul-primario: #165fa9;
  --rojo-detalle: #c62828;
  --gris-texto: #555555;
  --gris-suave: #b3b3b3;
  --blanco: #ffffff;
}

/* ===== UTILIDADES ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: #666666;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn.primary { background-color: var(--azul-primario); color: var(--blanco); }
.btn.primary:hover { background-color: var(--azul-petroleo); }

.btn.ghost {
  background-color: transparent;
  color: #111111;
  border-color: #d0d0d0;
}

.btn.ghost:hover {
  border-color: var(--azul-primario);
  color: var(--azul-primario);
}

.btn-full { width: 100%; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(5, 36, 73, 0.96),
    rgba(2, 67, 87, 0.96)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative; /* ✅ para el menú desplegable en mobile */
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #eef3ff;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--azul-primario);
  transition: width 0.2s ease;
}

.main-nav a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  color: var(--blanco);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background-image:
    linear-gradient(
      to bottom,
      rgba(5, 36, 73, 0.72),
      rgba(2, 67, 87, 0.62),
      rgba(5, 36, 73, 0.78)
    ),
    url("img/principal-salalimpia.webp");
  background-size: cover;
  background-position: center;
}

.hero-content {
  padding: 80px 20px 100px 20px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-logo { height: 160px; width: auto; }

.hero h1 {
  font-size: clamp(2rem, 3.05vw, 2.98rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero p {
  max-width: 560px;
  font-size: 1.05rem;
  color: #dfe8ff;
  margin: 0 auto 28px auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--blanco);
}
.hero .btn.ghost:hover {
  border-color: var(--blanco);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== MARCAS ===== */
.marcas { background-color: #f5f5f7; padding: 60px 0; }
.marcas .section-title { font-size: 1.95rem; }
.marcas .section-subtitle { margin-bottom: 28px; }

.marcas-carousel { position: relative; overflow: hidden; margin-top: 14px; }
.marcas-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marcas-scroll 22s linear infinite;
}

.marca-item {
  min-width: 165px;
  min-height: 72px;
  border-radius: 18px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marca-item img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.marca-denso img { transform: scale(1.75); max-height: 78px !important; }
.marca-bosch img { max-height: 44px !important; transform: scale(1.0); }

.marca-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.marcas-track.paused { animation-play-state: paused; }

@keyframes marcas-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICIOS ===== */
.servicios { background-color: #f7f9fc; }

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.card {
  flex: 1 1 calc(25% - 24px);
  max-width: 280px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(198, 40, 40, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  padding: 18px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--rojo-detalle);
}

.card h3 { font-size: 1.05rem; font-weight: 600; color: var(--azul-primario); }
.card p { font-size: 0.95rem; color: var(--gris-texto); }

.envios-banner {
  margin-top: 40px;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--azul-petroleo), var(--azul-oscuro));
  color: #ffffff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.envios-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.envios-text h3 { font-size: 1.15rem; margin-bottom: 2px; }
.envios-text p { font-size: 0.92rem; color: #dfe8ff; }

/* ===== DESTACADO ===== */
.destacado {
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-petroleo));
  color: #f5f5f7;
}

.destacado-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.destacado-media {
  max-width: 520px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  background: transparent;
  padding: 0;
}

.video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.destacado-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 22px;
  background: #000;
  object-fit: cover; /* ✅ por si el video es vertical/whatsapp */
}

.destacado-content h2 { font-size: 2rem; margin-bottom: 16px; }
.destacado-content p { font-size: 0.98rem; color: #e3e8f5; margin-bottom: 10px; }

/* ===== EMPRESA (INDEX) ===== */
.empresa { background-color: #d3d7db; }

.empresa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.empresa-text h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111111;
}

.empresa-text p {
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.98rem;
  margin-bottom: 12px;
  max-width: 640px;
}

.empresa-media {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.empresa-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== CTA FINAL ===== */
.cta-final {
  text-align: center;
  background: radial-gradient(circle at top, #024357, #052449);
  color: var(--blanco);
}

.cta-content h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-content p { color: #e0e7ff; margin-bottom: 20px; }

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== CONTACTO (V3) ===== */
.contacto { background-color: #f7f9fc; }

.contacto-layout-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 10px; }
.contacto-info p { margin-bottom: 12px; color: rgba(17,17,17,0.70); }

.contacto-highlight {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(22,95,169,0.10), rgba(5,36,73,0.08));
  border: 1px solid rgba(5,36,73,0.10);
  margin: 14px 0 14px 0;
}

.contacto-highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(22, 95, 169, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.contacto-highlight-title {
  font-weight: 600;
  margin: 0;
  color: #111;
}

.contacto-highlight-sub {
  margin: 2px 0 0 0;
  color: rgba(17,17,17,0.70);
}

.contacto-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.contacto-card {
  background: #ffffff;
  border: 1px solid rgba(5, 36, 73, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  padding: 16px 16px;
}

.contacto-card-head { margin-bottom: 10px; }
.contacto-card h3 { margin-top: 6px; font-size: 1.05rem; color: #111; }

.contacto-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #eef3ff;
  background: linear-gradient(90deg, var(--azul-petroleo), var(--azul-oscuro));
}

.contacto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contacto-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid rgba(5,36,73,0.06);
}

.contacto-list li:first-child { border-top: 0; padding-top: 0; }

.contacto-list .k { font-weight: 600; color: rgba(17,17,17,0.75); }
.contacto-list .v { color: rgba(17,17,17,0.75); word-break: break-word; }

.muted { color: rgba(17,17,17,0.55); }

.contacto-address {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(5,36,73,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.contacto-address-title { font-weight: 600; margin-bottom: 4px; }
.contacto-address-sub { color: rgba(17,17,17,0.72); }

.contacto-right { display: grid; gap: 16px; }

.contacto-media-card {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(5, 36, 73, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.contacto-media-head { padding: 16px 16px 10px 16px; }
.contacto-media-head h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contacto-media-head p { color: rgba(17,17,17,0.65); margin: 0; }

.contacto-mapa iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.contacto-redes {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap; /* ✅ por si no entra */
}

.red-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: #ffffff;
  flex: 0 0 auto;
}

.red-icon img { width: 100%; height: 100%; object-fit: cover; }
.red-icon:hover { transform: translateY(-3px); opacity: 0.85; }
.red-icon-lg { width: 48px !important; height: 48px !important; }

.recruiting-box {
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(5, 36, 73, 0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.recruiting-box h3 { margin-bottom: 10px; }
.recruiting-box p { margin-bottom: 10px; color: rgba(17,17,17,0.75); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 20px 0;
  background-color: #041426;
  color: #e1e6f2;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-brand { font-weight: 500; }
.footer-copy { color: #9aa4bb; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #e1e6f2; }
.footer-links a:hover { color: var(--azul-primario); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float img { width: 32px; height: 32px; object-fit: contain; }
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* ===== NAV: ACTIVO ===== */
.main-nav a.is-active::after { width: 100%; }

/* ===== EMPRESA TIMELINE V2 ===== */
.empresa-timeline-v2 { background: #f5f5f7; }
.timeline-v2-container { max-width: 1100px; }

.empresa-header-v2 { text-align: center; margin-bottom: 64px; }

.empresa-header-v2 h1 {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #111111;
}

.empresa-intro-v2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.72);
}

.timeline-v2 {
  list-style: none;
  margin: 0 auto;
  padding: 10px 0 0 0;
  position: relative;
  max-width: 1040px;
}

.timeline-v2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(5, 36, 73, 0.14);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: start;
  padding: 20px 0;
  user-select: none;
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--azul-primario);
  box-shadow: 0 10px 22px rgba(22, 95, 169, 0.22);
}

.tl-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(22, 95, 169, 0.18);
}

.tl-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(5, 36, 73, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  padding: 18px 20px 18px 20px;
  min-height: 120px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  max-width: 100%;
  overflow: hidden; /* ✅ evita que contenido largo rompa el layout */
}

.tl-card::before {
  content: "";
  position: absolute;
  top: 26px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid rgba(5, 36, 73, 0.10);
  transform: rotate(45deg);
}

.tl-item:nth-child(odd) .tl-card {
  grid-column: 1;
  justify-self: end;
  margin-right: 10px;
}
.tl-item:nth-child(odd) .tl-card::before {
  right: -8px;
  border-left: 0;
  border-bottom: 0;
}

.tl-item:nth-child(even) .tl-card {
  grid-column: 3;
  justify-self: start;
  margin-left: 10px;
}
.tl-item:nth-child(even) .tl-card::before {
  left: -8px;
  border-right: 0;
  border-top: 0;
}

/* ===== Presente y futuro CENTRADO ===== */
.tl-item.tl-item-center {
  grid-template-columns: 1fr;
  padding: 28px 0 10px 0;
}

.tl-item.tl-item-center .tl-card {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin: 0 !important;
  width: min(820px, 100%);
  text-align: left;
}

/* sin “pico” */
.tl-item.tl-item-center .tl-card::before { display: none; }

.tl-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #eef3ff;
  background: linear-gradient(90deg, var(--azul-petroleo), var(--azul-oscuro));
  margin-bottom: 10px;
}

.tl-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
}

.tl-card p {
  color: rgba(17, 17, 17, 0.72);
  margin-bottom: 10px;
  line-height: 1.65;
}

.tl-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(17, 17, 17, 0.72);
}

.tl-card li { margin-bottom: 8px; line-height: 1.6; }

.tl-item:hover .tl-card {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(22, 95, 169, 0.22);
}

.empresa-v2-cta {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Media timeline ===== */
.tl-media {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border: 1px solid rgba(5, 36, 73, 0.10);
  background: #fff;
}

/* Base */
.tl-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 1970 con dos fotos */
.tl-media-stack { display: grid; gap: 10px; }

/* ===== Ajustes pedidos ===== */

/* 1963: forzar que “suba” el encuadre para ver personas */
.tl-media-people img {
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

/* 2017 / 2026: que se vea la marca */
.tl-media-logo {
  background: #fff;
}
.tl-media-logo img {
  height: 260px;
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

/* ===== CHECKPOINT ACTIVO ===== */
.timeline-active-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--azul-primario);
  box-shadow: 0 0 0 6px rgba(22, 95, 169, 0.18);
  transition: top 0.35s ease;
  z-index: 5;
}

/* =========================
   ✅ RESPONSIVE (FULL)
   Mantiene desktop igual.
   ========================= */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .card { flex: 1 1 calc(50% - 24px); max-width: 100%; }

  .destacado-layout,
  .contacto-layout-v3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .destacado-media { order: -1; max-width: 100%; }

  .empresa-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .contacto-mapa iframe { height: 360px; }

  .footer-layout { flex-wrap: wrap; }
}

/* Timeline: pasa a vertical */
@media (max-width: 900px) {
  .timeline-v2::before { left: 18px; transform: none; }

  .tl-item { grid-template-columns: 36px 1fr; padding: 18px 0; }
  .tl-dot { left: 18px; transform: none; }

  .tl-card {
    grid-column: 2 !important;
    justify-self: stretch !important;
    margin: 0 0 0 14px !important;
  }

  .tl-card::before {
    left: -8px !important;
    right: auto !important;
    border-right: 0 !important;
    border-top: 0 !important;
    display: block;
  }

  .tl-item.tl-item-center { grid-template-columns: 36px 1fr; }
  .tl-item.tl-item-center .tl-card {
    width: 100%;
    justify-self: stretch !important;
    margin-left: 14px !important;
  }

  .timeline-active-dot { left: 18px; transform: none; }

  .empresa-header-v2 h1 { font-size: 2.2rem; }
}

/* Nav + general tablet */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .nav-toggle-label {
    display: block;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
  .nav-toggle-label span::before { content: ""; top: -8px; }
  .nav-toggle-label span::after { content: ""; top: 8px; }

  .main-nav {
    position: absolute;
    inset: 76px 0 auto 0;
    background-color: rgba(5, 36, 73, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px 20px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-toggle:checked ~ .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked + .nav-toggle-label span { background-color: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

  .nav-container { height: 70px; }
  .brand-logo { height: 62px; }

  .hero-content { padding: 70px 20px 80px 20px; }
  .hero p { font-size: 1rem; }
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .card { flex: 1 1 100%; max-width: 100%; }

  .footer-layout { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 340px; }

  .hero-logo { height: 140px; }

  .envios-banner { flex-direction: column; align-items: flex-start; }
  .envios-icon { width: 56px; height: 56px; }

  .contacto-mapa iframe { height: 320px; }

  /* ✅ importantísimo: listas de contacto no deben “aplastarse” */
  .contacto-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .contacto-list .k { opacity: 0.85; }

  .tl-media-people img { height: 280px; }
  .tl-media-logo img { height: 240px; }

  /* WhatsApp flotante no tapa tanto */
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .section-title { font-size: 1.85rem; }
  .cta-content h2, .destacado-content h2 { font-size: 1.65rem; }
  .empresa-text h2 { font-size: 1.55rem; }
  .marca-item { min-width: 140px; }
}
