/* ═══════════════════════════════════════════════════════════════
   MOTOBGA — Dark Grayscale Design System v3
   Tipografía: Bebas Neue (display) + DM Sans (body)
   Móvil-first, sin desbordamiento, geo-optimizado
   ═══════════════════════════════════════════════════════════════ */


/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --c-bg:       #0a0a0a;
  --c-bg-2:     #111111;
  --c-bg-3:     #161616;
  --c-bg-card:  #1a1a1a;
  --c-border:   #262626;
  --c-border-2: #333333;
  --c-text:     #e8e8e8;
  --c-text-2:   #a0a0a0;
  --c-text-3:   #555555;
  --c-white:    #f0ede8;
  /* Verde acento — paleta AEDB26 */
  --c-accent:       #AEDB26;
  --c-accent-dark:  #5A7813;
  --c-accent-light: #CDEC6A;
  --c-accent-dim:   rgba(174,219,38,.12);
  --c-wa:       #25D366;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.7);
  --transition:  200ms cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 3px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue is always regular weight */
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-white);
}

/* Mobile-first — tamaños seguros */
h1 { font-size: clamp(2.4rem, 9vw, 5rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--c-text-2); font-family: var(--font-body); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section--sm  { padding: 56px 0; }
.section--dark { background: var(--c-bg-2); }
.section--alt  { background: var(--c-bg-3); }

/* ── GRID ────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary   { background: var(--c-accent); color: #0a0a0a; border: 1px solid transparent; font-weight: 700; }
.btn--primary:hover { background: var(--c-accent-light); box-shadow: 0 0 0 3px rgba(174,219,38,.2), 0 4px 20px rgba(174,219,38,.25); transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--c-white); border: 1px solid var(--c-border-2); }
.btn--secondary:hover { border-color: var(--c-white); background: rgba(240,237,232,.05); transform: translateY(-1px); }
.btn--wa   { background: var(--c-wa); color: #fff; border: 1px solid transparent; }
.btn--wa:hover { background: #1fba57; transform: translateY(-1px); }
.btn--lg   { padding: 14px 28px; font-size: .95rem; }
.btn--sm   { padding: 7px 14px; font-size: .78rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { border-color: var(--c-border-2); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card__body  { padding: 24px; }
.card__image { overflow: hidden; aspect-ratio: 16/9; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__image img { transform: scale(1.04); }

/* ── LABELS ──────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 4px 12px;
  border: 1px solid rgba(174,219,38,.3);
  border-radius: 100px;
  margin-bottom: 16px;
  background: var(--c-accent-dim);
}

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-header h2 { letter-spacing: .05em; }
.section-header.center { text-align: center; }
.section-header p { margin-top: 14px; font-size: 1rem; max-width: 58ch; }
.section-header.center p { margin-inline: auto; }

/* ── DIVIDER ──────────────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(174,219,38,.3), transparent); }

/* ── BADGE ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-3);
}

/* ════════════════════════════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Glass morphism */
  background: rgba(10,10,10,.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(10,10,10,.85);
  border-bottom-color: rgba(174,219,38,.15);
  box-shadow: 0 1px 40px rgba(0,0,0,.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* ── Logo ───────────────────────────────────────────────────── */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

/* Logo image (when set from admin) */
.nav__logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Logo icon fallback */
.nav__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--c-white);
  color: var(--c-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-white);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: .6rem;
  color: var(--c-text-3);
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-top: -1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-text-2);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--c-white); background: rgba(255,255,255,.06); }

.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* nav__phone in the nav bar — small pill */
.nav__phone {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: .02em;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__phone:hover { color: var(--c-white); border-color: var(--c-border-2); }
/* When nav__phone is also a .btn (hero/CTA), btn styles take over */
.btn.nav__phone {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-white);
  border-color: var(--c-border-2);
  padding: 11px 22px;
}
.btn--lg.nav__phone {
  padding: 14px 28px;
  font-size: .95rem;
}
.btn.nav__phone:hover {
  border-color: var(--c-white);
  background: rgba(240,237,232,.05);
  transform: translateY(-1px);
  color: var(--c-white);
}

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--c-text-2); transition: all var(--transition); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-text-2);
  padding: 10px 32px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--c-white); }
.nav__mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--c-text-2);
  padding: 8px;
}

/* ════════════════════════════════════════════════════════════════
   HERO — tamaños controlados en mobile
════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-bg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(100%); }
.hero__bg-gradient {
  position: absolute; inset: 0;
  background-color: var(--c-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Dark overlay ON TOP of bg image — always present */
.hero__bg-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.92) 0%,
    rgba(10,10,10,.70) 40%,
    rgba(10,10,10,.88) 100%
  );
  z-index: 1;
}
/* Fallback gradient when no image */
.hero__bg-gradient:not([style]) {
  background: linear-gradient(135deg, var(--c-bg) 0%, #161616 100%);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--c-border) 1px, transparent 1px), linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .25;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 96px 0 80px;
  width: 100%;
}
.hero__eyebrow {
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 20px;
}
.hero__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--c-text-3); }

/* Hero title — Bebas Neue, big and bold */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  word-break: break-word;
}
/* Accent em tag in hero */
.hero__title em {
  font-style: normal;
  color: var(--c-accent);
}
.hero__title em { font-style: normal; color: var(--c-text-2); }

.hero__subtitle {
  font-size: clamp(.9rem, 3vw, 1.05rem);
  line-height: 1.75;
  color: var(--c-text-2);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.hero__stat-number {
  color: var(--c-accent); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--c-white); display: block; }
.hero__stat-label  { font-size: .72rem; color: var(--c-text-3); letter-spacing: .05em; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════════
   SERVICE CARDS
════════════════════════════════════════════════════════════════ */
.service-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--c-border-2); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.service-card__image { aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-2); position: relative; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: all 400ms ease; }
.service-card:hover .service-card__image img { filter: grayscale(0%); transform: scale(1.05); }
.service-card__image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--c-text-3); background: var(--c-bg-2); }
.service-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: clamp(1rem, 3vw, 1.1rem); margin-bottom: 8px; }
.service-card__desc { font-size: .875rem; color: var(--c-text-2); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.service-card__price { font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--c-text-3); letter-spacing: .05em; text-transform: uppercase; }
.service-card__footer { padding: 14px 20px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ════════════════════════════════════════════════════════════════
   COVERAGE
════════════════════════════════════════════════════════════════ */
.coverage-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 28px;
}
.coverage-tab {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  cursor: pointer;
}
.coverage-tab.active, .coverage-tab:hover { color: var(--c-white); border-bottom-color: var(--c-white); }
.coverage-panel { display: none; }
.coverage-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.coverage-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.coverage-item:hover { border-color: var(--c-border-2); background: rgba(255,255,255,.03); }
.coverage-item__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-text-3); flex-shrink: 0; }
.coverage-item__name { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--c-text); }
.coverage-item__type { font-size: .68rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .04em; }

/* ════════════════════════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.gallery-item { aspect-ratio: 1; overflow: hidden; position: relative; cursor: pointer; background: var(--c-bg-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); transition: all 400ms ease; }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.08); }
.gallery-item__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.96); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font-size: 1.75rem; color: var(--c-text-2); }
.lightbox__close:hover { color: var(--c-white); }

/* ════════════════════════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════════════════════════ */
.testimonial { background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.testimonial__stars { color: var(--c-text-3); font-size: 1rem; letter-spacing: 2px; }
.testimonial__stars.rated { color: #e0c97e; }
.testimonial__text { font-size: .9rem; line-height: 1.75; color: var(--c-text-2); flex: 1; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-bg-2); border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--c-text-3); font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.testimonial__name { font-weight: 600; font-size: .875rem; color: var(--c-white); }
.testimonial__location { font-size: .72rem; color: var(--c-text-3); }

/* ════════════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════════════ */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-question { width: 100%; text-align: left; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: clamp(.9rem, 3vw, 1rem); font-weight: 500; color: var(--c-white); transition: color var(--transition); }
.faq-question:hover { color: var(--c-accent); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid var(--c-border-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--c-text-3); transition: all var(--transition); }
.faq-item.open .faq-icon { background: var(--c-white); color: var(--c-bg); border-color: var(--c-white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 18px; font-size: .9rem; color: var(--c-text-2); line-height: 1.75; }

/* ════════════════════════════════════════════════════════════════
   WHY US / FEATURES
════════════════════════════════════════════════════════════════ */
.features-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--c-bg-2); }
.features-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.features-photo__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--c-border-2); flex-direction: column; gap: 12px; }
.features-photo__placeholder span { font-family: var(--font-display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.features-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-md); transition: border-color var(--transition); }
.feature-item:hover { border-color: var(--c-border-2); }
.feature-icon { font-size: 1.2rem; width: 40px; height: 40px; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-title { font-family: var(--font-display); font-size: .9rem; font-weight: 500; color: var(--c-white); margin-bottom: 4px; }
.feature-desc { font-size: .82rem; color: var(--c-text-2); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   MAP
════════════════════════════════════════════════════════════════ */
.map-wrapper { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border); height: 400px; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; filter: grayscale(80%) contrast(1.1); }

/* ════════════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-block { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.contact-block:last-child { border-bottom: none; }
.contact-block__icon { font-size: 1rem; flex-shrink: 0; width: 22px; margin-top: 2px; }
.contact-block__label { font-family: var(--font-display); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 5px; }
.contact-block__value { font-size: .9rem; color: var(--c-text); }
.contact-block__link { transition: color var(--transition); }
.contact-block__link:hover { color: var(--c-white); }

.contact-form-card { background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 32px; }
.contact-form-title { font-size: clamp(1.2rem, 4vw, 1.4rem); margin-bottom: 8px; }
.contact-form-sub { font-size: .875rem; color: var(--c-text-2); margin-bottom: 28px; }

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-family: var(--font-display); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 7px; }
.form-control { width: 100%; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 11px 14px; color: var(--c-text); font-size: .9rem; transition: all var(--transition); outline: none; }
.form-control:focus { border-color: var(--c-border-2); background: var(--c-bg-3); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.form-control::placeholder { color: var(--c-text-3); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }

.schedule-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--c-border); font-size: .875rem; }
.schedule-row:last-child { border-bottom: none; }
.schedule-day { color: var(--c-text-3); font-size: .82rem; }
.schedule-time { color: var(--c-text); font-weight: 500; }

/* ════════════════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════════════════ */
.cta-section { background: var(--c-white); padding: 72px 0; }
.cta-section h2 { color: var(--c-bg); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 10px; }
.cta-section p { color: #555; margin-bottom: 28px; font-size: 1rem; }
.cta-section .container { text-align: center; }
.cta-section .btn--primary { background: var(--c-bg); color: var(--c-white); }
.cta-section .btn--primary:hover { background: #111; }
.cta-section .btn--secondary { border-color: var(--c-bg); color: var(--c-bg); }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer { background: #050505; border-top: 1px solid var(--c-border); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--c-white); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__logo-icon { width: 30px; height: 30px; background: var(--c-white); color: var(--c-bg); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.footer__logo-img { height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.footer__desc { font-size: .85rem; color: var(--c-text-3); line-height: 1.75; margin-bottom: 20px; }
.footer__col-title { font-family: var(--font-display); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: .85rem; color: var(--c-text-3); transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer__links a:hover { color: var(--c-text); }
.footer__links a::before { content: '›'; color: var(--c-border-2); }

.social-links { display: flex; gap: 8px; margin-top: 18px; }
.social-link { width: 32px; height: 32px; background: var(--c-bg-2); border: 1px solid var(--c-border); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-link svg { width: 14px; height: 14px; color: var(--c-text-3); }
.social-link:hover { border-color: var(--c-border-2); background: var(--c-bg-card); }
.social-link:hover svg { color: var(--c-text); }

.footer__bottom { padding-top: 24px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__copy { font-size: .78rem; color: var(--c-text-3); }

/* ════════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════════════════════════════════════ */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 300; width: 52px; height: 52px; background: var(--c-wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.35); transition: all var(--transition); }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }

/* ════════════════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
════════════════════════════════════════════════════════════════ */
.page-hero { background: var(--c-bg-2); padding: 60px 0 48px; border-bottom: 1px solid var(--c-border); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: min(320px, 60%); height: 100%; background: linear-gradient(270deg, rgba(255,255,255,.012), transparent); pointer-events: none; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--c-text-3); margin-bottom: 18px; }
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb span { color: var(--c-border-2); }

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS — scroll-triggered, performance-safe
   Usa IntersectionObserver + CSS transitions (no JS animation)
   will-change solo se aplica mientras anima, se limpia al terminar
════════════════════════════════════════════════════════════════ */

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight{ from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleUp  { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:scale(1); } }

/* ── Page transition (View Transitions API) ───────────────────── */
@keyframes pgIn  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes pgOut { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-8px); } }

::view-transition-old(root) {
  animation: pgOut 220ms ease forwards;
}
::view-transition-new(root) {
  animation: pgIn 280ms ease forwards;
}

/* ── Base state — hidden before intersection ──────────────────── */
/* animate-up: fade desde abajo (cards, text blocks) */
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(.16,1,.3,1),
              transform 600ms cubic-bezier(.16,1,.3,1);
}
/* animate-left: fade desde la izquierda (about photo, features) */
.animate-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 600ms cubic-bezier(.16,1,.3,1),
              transform 600ms cubic-bezier(.16,1,.3,1);
}
/* animate-right: fade desde la derecha */
.animate-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 600ms cubic-bezier(.16,1,.3,1),
              transform 600ms cubic-bezier(.16,1,.3,1);
}
/* animate-scale: escala (stat cards, badges) */
.animate-scale {
  opacity: 0;
  transform: scale(.94);
  transition: opacity 500ms cubic-bezier(.16,1,.3,1),
              transform 500ms cubic-bezier(.16,1,.3,1);
}
/* animate-fade: solo opacidad (overlays, subtle) */
.animate-fade {
  opacity: 0;
  transition: opacity 700ms ease;
}

/* ── Revealed state ────────────────────────────────────────────── */
.animate-up.in-view,
.animate-left.in-view,
.animate-right.in-view,
.animate-fade.in-view {
  opacity: 1;
  transform: none;
}
.animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* ── Delay utilities ───────────────────────────────────────────── */
.delay-1 { transition-delay: 80ms !important; }
.delay-2 { transition-delay: 160ms !important; }
.delay-3 { transition-delay: 240ms !important; }
.delay-4 { transition-delay: 320ms !important; }
.delay-5 { transition-delay: 400ms !important; }

/* ── Hero — immediate (no scroll needed) ──────────────────────── */
.hero__eyebrow { animation: fadeDown 600ms cubic-bezier(.16,1,.3,1) both; animation-delay: 100ms; }
.hero__title   { animation: fadeUp   700ms cubic-bezier(.16,1,.3,1) both; animation-delay: 200ms; }
.hero__subtitle{ animation: fadeUp   700ms cubic-bezier(.16,1,.3,1) both; animation-delay: 320ms; }
.hero__actions { animation: fadeUp   600ms cubic-bezier(.16,1,.3,1) both; animation-delay: 440ms; }
.hero__stats   { animation: fadeIn   800ms ease both; animation-delay: 560ms; }

/* ── Respect reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animate-up, .animate-left, .animate-right, .animate-scale, .animate-fade,
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions, .hero__stats {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════════════════════════════ */
.about-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3/4; background: var(--c-bg-3); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.about-photo__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--c-border-2); flex-direction: column; gap: 12px; }
.about-photo__placeholder span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.about-stat-badge { position: absolute; bottom: 20px; right: -20px; background: var(--c-bg-card); border: 1px solid var(--c-border-2); border-radius: var(--r-lg); padding: 14px 18px; min-width: 130px; }
.about-stat-badge__num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--c-white); }
.about-stat-badge__label { font-size: .7rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ════════════════════════════════════════════════════════════════
   CONTACT SOCIAL LINKS
════════════════════════════════════════════════════════════════ */
.contact-social-link { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--c-text-2); padding: 5px 10px; border: 1px solid var(--c-border); border-radius: var(--r-sm); transition: all var(--transition); margin-right: 8px; margin-bottom: 6px; }
.contact-social-link:hover { color: var(--c-text); border-color: var(--c-border-2); }
.contact-trust-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.contact-trust-badge { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--c-text-2); padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg-card); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .features-photo { aspect-ratio: 16/7; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 16/16; }
  .about-stat-badge { bottom: 14px; right: 14px; } /* CRÍTICO: dentro del viewport */
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--wa { display: none; }
  .hero__content { padding: 64px 0 56px; }
  .hero__stats { gap: 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; width: 100%; max-width: 340px; }
  .section { padding: 56px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-card { padding: 24px; }
  .about-stat-badge { right: 10px; bottom: 10px; } /* extra seguro en 768 */
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px; }
  .hero__stat-number { font-size: 1.4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat-badge { right: 8px; bottom: 8px; min-width: 110px; padding: 10px 14px; } /* nunca desborda */
}

/* ── SKELETON LOADER pulse ──────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: .35; }
  50%       { opacity: .7;  }
}

/* ── PAGE TRANSITION ────────────────────────────────────────── */
body { transition: opacity 250ms ease; }