/* ═══════════════════════════════════════════
   VARIABLES Y RESET
═══════════════════════════════════════════ */
:root {
  --navy:      #0a1f38;
  --navy-mid:  #0d2b4e;
  --blue:      #185fa5;
  --blue-light:#378add;
  --blue-pale: #e6f1fb;
  --accent:    #2ecc8f;
  --white:     #ffffff;
  --gray-50:   #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-200:  #e9ecef;
  --gray-400:  #adb5bd;
  --gray-600:  #6c757d;
  --gray-800:  #343a40;
  --text:      #1a2332;
  --text-muted:#5a6a7a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 31, 56, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(55, 138, 221, 0.15);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { height: 36px; width: auto; flex-shrink: 0; display: block; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.06em; line-height: 1; }
.footer-logo-sub  { font-size: 9px; font-weight: 500; color: rgba(55,138,221,0.85); letter-spacing: 0.10em; text-transform: uppercase; margin-top: 4px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.nav-logo-name { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 0.06em; }
.nav-logo-sub  { font-size: 9px; font-weight: 500; color: rgba(55,138,221,0.9); letter-spacing: 0.10em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links li a:hover { color: #fff; background: rgba(55,138,221,0.15); }
.nav-links li a.active { color: var(--blue-light); }

.btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--blue-light) !important; }

.btn-nav-platform {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(46,204,143,0.30) !important;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s !important;
  position: relative !important;
  overflow: hidden !important;
}
.btn-nav-platform::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, var(--blue-light) 0%, #27ae72 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}
.btn-nav-platform:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(46,204,143,0.45) !important;
  color: #fff !important;
}
.btn-nav-platform:hover::before { opacity: 1 !important; }
.btn-nav-platform svg,
.btn-nav-platform span { position: relative !important; z-index: 1 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   SECCIONES BASE
═══════════════════════════════════════════ */
.section { padding: 96px 0; }
.section-light { background: var(--white); }
.section-dark  { background: var(--navy); }
.section-contact { background: var(--gray-50); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { font-size: 2rem; color: var(--text); margin-bottom: 12px; }
.section-header p  { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: #fff; }
.section-header.light p  { color: rgba(255,255,255,0.65); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-header.light .section-tag {
  color: var(--blue-light);
  background: rgba(55,138,221,0.15);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(4,15,30,0.92) 0%, rgba(10,31,56,0.85) 50%, rgba(13,43,78,0.80) 100%),
    url('../images/TransporteFondo.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(24,95,165,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(55,138,221,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay { display: none; }

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(55,138,221,0.15);
  border: 1px solid rgba(55,138,221,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-accent { color: var(--blue-light); }

.hero-content > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-1px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; }
.stat span   { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-sep    { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-map-card {
  background: #0a1f38;
  border: 1px solid rgba(55,138,221,0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(55,138,221,0.1);
}
.hero-map-card svg { width: 100%; display: block; }
.map-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(55,138,221,0.2);
  background: rgba(10,31,56,0.8);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,143,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(46,204,143,0); }
}

/* ═══════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(24,95,165,0.25);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.service-card p  { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   PRODUCTOS
═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(55,138,221,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 24px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.product-card:hover {
  border-color: rgba(55,138,221,0.5);
  background: rgba(255,255,255,0.08);
}
.product-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px; font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.product-img {
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-img svg { width: 80px; height: 80px; }
.product-info { flex: 1; }
.product-cat {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--blue-light);
  display: block; margin-bottom: 6px;
}
.product-info h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.product-info p  { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.product-features { margin-bottom: 16px; }
.product-features li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  padding: 2px 0 2px 14px;
  position: relative;
}
.product-features li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}
.btn-product {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--blue-light);
  border: 1px solid rgba(55,138,221,0.4);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.btn-product:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════════════════════
   GALERÍA / CARRUSEL
═══════════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: 100%;
  height: 420px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,31,56,0.85));
  color: #fff;
  padding: 32px 24px 20px;
  font-size: 15px; font-weight: 600;
}
.carousel-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray-400);
  gap: 12px;
}
.carousel-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.carousel-placeholder p { font-size: 14px; }

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover { background: var(--blue-pale); box-shadow: var(--shadow-md); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.carousel-dot.active { background: var(--blue); transform: scale(1.3); }

/* ═══════════════════════════════════════════
   VIDEOS
═══════════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(55,138,221,0.2);
  background: rgba(255,255,255,0.04);
  transition: border-color var(--transition), transform var(--transition);
}
.video-card:hover { border-color: rgba(55,138,221,0.5); transform: translateY(-3px); }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-info { padding: 16px 20px; }
.video-info h3 { font-size: 0.95rem; color: #fff; margin-bottom: 4px; font-weight: 600; }
.video-info p  { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.videos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: rgba(255,255,255,0.35);
  font-size: 15px;
}

/* ═══════════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════════ */
.nosotros-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: start;
}
.nosotros-text .section-tag { display: block; margin-bottom: 14px; }
.nosotros-text h2 { font-size: 1.85rem; color: var(--text); margin-bottom: 20px; }
.nosotros-text > p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }

.nosotros-valores { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.valor {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.valor-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.valor-icon svg { width: 20px; height: 20px; }
.valor strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.valor p { font-size: 13px; color: var(--text-muted); margin: 0; }

.nosotros-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.nosotros-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.nosotros-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--navy);
  border: 1px solid rgba(55,138,221,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.stat-card strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--blue-light); margin-bottom: 6px; }
.stat-card span   { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,95,165,0.1); }
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.form-msg.success { background: #e8f8f0; color: #1a6b43; border: 1px solid #a8e6c6; }
.form-msg.error   { background: #fef2f2; color: #9b1c1c; border: 1px solid #fecaca; }

.contact-info-wrap { display: flex; flex-direction: column; gap: 28px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.contact-item span  { font-size: 14px; color: var(--text-muted); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.map-container iframe { display: block; }

/* ═══════════════════════════════════════════
   BANDA IMAGEN
═══════════════════════════════════════════ */
.img-band {
  background: url('../images/Camino.png') center/cover no-repeat;
  background-attachment: fixed;
  min-height: 380px;
  position: relative;
}
.img-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,15,30,0.82) 0%, rgba(10,31,56,0.70) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.img-band-content {
  text-align: center;
  max-width: 700px;
}
.img-band-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(55,138,221,0.18);
  border: 1px solid rgba(55,138,221,0.35);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.img-band-content h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.img-band-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: var(--navy); padding: 72px 0 0; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 260px;
}
.footer-links h4,
.footer-contact h4 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 14px; color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--blue-light); }
.footer-contact p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .hero-content       { grid-template-columns: 1fr; gap: 40px; }
  .hero               { padding: 100px 24px 56px; }
  .hero-visual        { justify-content: center; }
  .hero-map-card      { max-width: 400px; }
  .nosotros-container { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-right     { position: static; }
  .nosotros-stats     { grid-template-columns: repeat(4, 1fr); }
  .footer-container   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .section            { padding: 56px 0; }
  .section-header     { margin-bottom: 36px; }

  /* Hero */
  .hero               { padding: 84px 20px 48px; min-height: 0; }
  .hero-content       { gap: 32px; }
  .hero-content h1    { font-size: 2rem; }
  .hero-visual        { justify-content: center; }
  .hero-map-card      { max-width: 100%; }
  .hero-stats         { gap: 14px; }

  /* Grids */
  .services-grid      { grid-template-columns: 1fr; }
  .products-grid      { grid-template-columns: 1fr; }
  .videos-grid        { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .nosotros-stats     { grid-template-columns: repeat(2, 1fr); }
  .nosotros-img       { height: 200px; }
  .img-band           { background-attachment: scroll; min-height: 280px; }
  .footer-container   { grid-template-columns: 1fr; gap: 28px; }
  .carousel-slide     { height: 240px; }

  /* NAV MOBILE */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10,31,56,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 20px 28px;
    gap: 4px;
    border-bottom: 1px solid rgba(55,138,221,0.2);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links li a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); }

  /* Botones especiales en menú móvil */
  .btn-nav {
    display: block !important;
    text-align: center !important;
    margin-top: 4px !important;
  }
  .btn-nav-platform {
    display: flex !important;
    justify-content: center !important;
    margin-top: 4px !important;
    box-shadow: none !important;
  }
}

/* ── Teléfonos pequeños (≤ 480px) ── */
@media (max-width: 480px) {
  .hero               { padding: 76px 16px 40px; }
  .hero-content h1    { font-size: 1.75rem; }
  .hero-content > p   { font-size: 0.95rem; }
  .hero-badge         { font-size: 11px; padding: 5px 12px; }
  .hero-btns          { flex-direction: column; gap: 10px; }
  .hero-btns a        { text-align: center; }
  .hero-stats         { flex-wrap: wrap; gap: 10px 20px; }
  .stat-sep           { display: none; }
  .hero-visual        { display: none; }   /* oculta el mapa en móvil pequeño */

  .section            { padding: 48px 0; }
  .section-header h2  { font-size: 1.55rem; }
  .container          { padding: 0 16px; }

  .contact-form-wrap  { padding: 20px 16px; }
  .nosotros-stats     { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card          { padding: 20px 12px; }
  .stat-card strong   { font-size: 1.5rem; }

  .product-card       { flex-direction: column; gap: 16px; }
  .product-img        { width: 64px; height: 64px; }
  .product-img svg    { width: 64px; height: 64px; }

  .img-band-content p { font-size: 0.95rem; }
  .footer-container   { padding: 0 16px 40px; }

  /* Chatbot */
  #chatWidget { bottom: 76px; right: 14px; }
  .chat-box   { width: calc(100vw - 28px); max-height: 70vh; }
}

/* ═══════════════════════════════════════════
   CHATBOT WIDGET
═══════════════════════════════════════════ */
#chatWidget {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón flotante */
.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(24,95,165,0.45);
  transition: background 0.2s, transform 0.2s;
  position: relative;
  flex-shrink: 0;
}
.chat-toggle:hover { background: var(--blue-light); transform: scale(1.06); }
.chat-toggle[aria-expanded="true"] .chat-icon-msg { display: none; }
.chat-toggle[aria-expanded="true"] .chat-icon-x   { display: flex !important; }
.chat-toggle--offline { background: var(--gray-400) !important; box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important; }
.chat-toggle--offline:hover { background: var(--gray-600) !important; transform: none !important; }

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.chat-badge--pulse {
  animation: badgePulse 1.5s ease-in-out 3;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

/* Ventana de chat */
.chat-box {
  width: 320px;
  max-height: 460px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-box.open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.chat-header-info {
  flex: 1;
  line-height: 1.3;
}
.chat-header-info strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}
.chat-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color 0.2s;
}
.chat-close:hover { color: #fff; }

/* Área de mensajes */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--bot  { justify-content: flex-start; }

.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.chat-msg--bot .chat-bubble {
  background: var(--gray-100);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--user .chat-bubble a { color: #a8d4ff; }

/* Typing animation */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
}
.chat-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingBounce 1.1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

/* Quick replies */
.chat-quick {
  padding: 6px 14px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid var(--gray-200);
}
.chat-chip {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid rgba(24,95,165,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.chat-chip:hover {
  background: var(--blue);
  color: #fff;
}

/* Input */
.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--gray-200);
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.chat-input-area input:focus { border-color: var(--blue-light); }
.chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--blue-light); }

/* Responsive */
@media (max-width: 480px) {
  #chatWidget { bottom: 80px; right: 16px; }
  .chat-box   { width: calc(100vw - 32px); }
}