:root {
  --orange:       #F47B20;
  --orange-dark:  #D4640A;
  --orange-light: #FF9A40;
  --orange-pale:  #FFF0E5;
  --orange-soft:  #FFD9B8;
  --white:        #FFFFFF;
  --off-white:    #FAF8F6;
  --text:         #1C1C1C;
  --text-mid:     #555555;
  --text-light:   #999999;
  --border:       #EBEBEB;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 72px;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 20px rgba(244,123,32,0.1);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
}
.nav-logo .x { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.btn-nav {
  background: var(--orange) !important; color: var(--white) !important;
  padding: 10px 22px; border-radius: 6px;
  font-size: 0.78rem !important; font-weight: 700 !important;
  letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px; overflow: hidden;
  background: var(--white);
}
/* video bg on left half */
.hero-video-bg {
  position: absolute; top: 0; left: 0; bottom: 0; width: 55%;
  z-index: 0; overflow: hidden;
}
.hero-video-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* dark overlay so text stays readable */
.hero-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.28) 70%, transparent 100%);
}
.hero-shape {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: var(--orange);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(244,123,32,0.15) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  /* only show dots on right side */
  -webkit-mask-image: linear-gradient(to right, transparent 45%, black 60%);
  mask-image: linear-gradient(to right, transparent 45%, black 60%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 60px 56px;
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center;
  min-height: calc(100vh - 72px);
}
.hero-left { padding-right: 52px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #FFB84D; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 2px; background: #FFB84D; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6.5vw, 7.5rem);
  line-height: 0.9; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 24px;
}
.hero h1 .accent { color: var(--orange); }
.hero-desc {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.82); max-width: 400px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 15px 30px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(244,123,32,0.3);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,123,32,0.35); }

.btn-outline {
  background: transparent; color: var(--white);
  padding: 15px 30px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.7);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.2s; display: inline-block;
}
.btn-outline:hover { background: var(--white); color: var(--orange); transform: translateY(-2px); }

.hero-right { padding-left: 52px; }
.hero-track {
  background: var(--white); border-radius: 16px; padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}
.hero-track h3 { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); letter-spacing: 0.04em; margin-bottom: 6px; }
.hero-track-sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 28px; }
.track-input-wrap {
  display: flex; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); transition: border-color 0.2s;
}
.track-input-wrap:focus-within { border-color: var(--orange); }
.track-input {
  flex: 1; background: var(--white); border: none; outline: none;
  padding: 14px 18px; color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
}
.track-input::placeholder { color: var(--text-light); }
.track-btn {
  background: var(--orange); border: none; cursor: pointer;
  padding: 14px 22px; color: var(--white);
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s;
}
.track-btn:hover { background: var(--orange-dark); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px;
}
.stat { text-align: center; padding: 6px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.66rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 5px; }

/* ── SECTIONS ── */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 100px 56px; }
.section-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-tag::after { content: ''; flex: 0 0 36px; height: 2px; background: var(--orange); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 0.93; letter-spacing: 0.03em;
  color: var(--text); margin-bottom: 18px;
}
.section-sub { font-size: 1rem; color: var(--text-mid); line-height: 1.75; max-width: 500px; }

/* ── SERVICIOS ── */
#servicios { background: var(--off-white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px;
}
.service-card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.25s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(244,123,32,0.12); transform: translateY(-4px); border-color: var(--orange-soft); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--orange-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 22px;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }

/* ── NOSOTROS ── */
#nosotros { background: var(--white); }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.about-visual-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}
.about-big-text { font-family: var(--font-display); font-size: 9rem; color: rgba(255,255,255,0.12); line-height: 1; letter-spacing: 0.05em; user-select: none; }
.about-badge {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--white); border-radius: 10px; padding: 18px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.about-badge-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--orange); line-height: 1; }
.about-badge-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-mid); text-transform: uppercase; margin-top: 2px; }
.mission-vision { display: flex; flex-direction: column; gap: 24px; }
.about-intro { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }
.mv-card {
  padding: 26px 28px; border: 1px solid var(--border); border-radius: 10px;
  border-left: 4px solid var(--orange); background: var(--off-white);
}
.mv-card h4 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; color: var(--text); margin-bottom: 10px; }
.mv-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }

/* ── COBERTURA ── */
#cobertura { background: var(--orange); }
#cobertura .section-tag { color: var(--white); }
#cobertura .section-tag::after { background: rgba(255,255,255,0.4); }
#cobertura .section-title { color: var(--white); }
#cobertura .section-sub { color: rgba(255,255,255,0.8); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 60px; }
.map-placeholder {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.12); border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: rgba(255,255,255,0.8);
}
.coverage-list { display: flex; flex-direction: column; gap: 10px; }
.coverage-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.15); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.coverage-item:hover { background: rgba(255,255,255,0.22); }
.coverage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); flex-shrink: 0; }
.coverage-item span { font-size: 0.9rem; font-weight: 500; color: var(--white); }

/* ── AGENCY CARDS ── */
.agency-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.agency-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(244,123,32,0.12);
  transform: translateX(4px);
}
.agency-num {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--orange); letter-spacing: 0.04em;
  min-width: 36px; line-height: 1;
}
.agency-info { flex: 1; }
.agency-info h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.agency-info p { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; }
.agency-arrow {
  font-size: 1rem; color: var(--orange);
  opacity: 0; transition: opacity 0.2s;
}
.agency-card:hover .agency-arrow { opacity: 1; }

/* ── CTA BAND ── */
.cta-band { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 3.5vw, 3.8rem); color: var(--text); line-height: 1; }
.cta-inner h2 .o { color: var(--orange); }
.cta-inner p { font-size: 1rem; color: var(--text-mid); margin-top: 8px; }

/* ── CONTACTO ── */
#contacto { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-block {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-block:hover { border-color: var(--orange-soft); box-shadow: 0 4px 18px rgba(244,123,32,0.08); }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--orange-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-block h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 5px; }
.contact-block p { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.contact-block a { color: var(--orange); text-decoration: none; font-weight: 600; }
.contact-block a:hover { text-decoration: underline; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 16px 28px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-decoration: none; transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
}
.wa-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.schedule-card { background: var(--off-white); border-radius: 12px; border: 1px solid var(--border); padding: 36px; }
.schedule-card h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); letter-spacing: 0.04em; margin-bottom: 28px; }
.schedule-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.schedule-row:last-of-type { border-bottom: none; }
.schedule-row span:first-child { font-size: 0.88rem; color: var(--text-mid); }
.schedule-row span:last-child { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.badge-open { background: rgba(37,211,102,0.15); color: #1A9E52; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }
.open-row { margin-top: 20px; padding: 14px 20px; background: rgba(37,211,102,0.07); border-radius: 8px; border: 1px solid rgba(37,211,102,0.2); display: flex; align-items: center; gap: 12px; }
.open-row span { font-size: 0.85rem; color: var(--text-mid); }

/* ── FOOTER ── */
footer { background: #1C1C1C; color: var(--white); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 56px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-brand .x { color: var(--orange); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.75; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { animation: fadeUp 0.7s 0.1s ease forwards; opacity: 0; }
.hero h1      { animation: fadeUp 0.7s 0.25s ease forwards; opacity: 0; }
.hero-desc    { animation: fadeUp 0.7s 0.38s ease forwards; opacity: 0; }
.hero-ctas    { animation: fadeUp 0.7s 0.5s ease forwards; opacity: 0; }
.hero-track   { animation: fadeUp 0.8s 0.3s ease forwards; opacity: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-shape { display: none; }
  .hero-dots { opacity: 0.5; }
  .hero-content { grid-template-columns: 1fr; padding: 40px 24px; min-height: auto; }
  .hero-left { padding-right: 0; margin-bottom: 40px; }
  .hero-right { padding-left: 0; }
  .section-wrap { padding: 70px 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-wrap, .coverage-grid, .contact-grid { grid-template-columns: 1fr; }
  #agencias .section-wrap > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  #agencias div[style*="position:sticky"] { height: 320px !important; position: relative !important; top: auto !important; }
  #nosotros div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  #nosotros div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-inner { padding: 60px 24px; flex-direction: column; align-items: flex-start; }
}
