/* =============================================================
   TELOLLEVO – styles.css
   Paleta: Verde eléctrico #00d47e | Azul oscuro #0c1220 | Blanco
   Tipografía: Syne (display) + DM Sans (cuerpo)
   Mobile-first, responsive
============================================================= */

/* ── Variables de diseño ───────────────────────────────────── */
:root {
  --green:        #D4A017;
  --green-dark:   #a87c10;
  --green-glow:   rgba(212, 160, 23, 0.18);
  --navy:         #0c1220;
  --navy-mid:     #131d30;
  --navy-light:   #1c2a40;
  --white:        #ffffff;
  --off-white:    #f4f7f2;
  --gray-light:   #e8edf0;
  --gray:         #8a9ab0;
  --text-body:    #2e3a4a;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

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

  --shadow-card:  0 4px 24px rgba(12, 18, 32, 0.10);
  --shadow-raise: 0 8px 32px rgba(12, 18, 32, 0.18);
  --shadow-green: 0 4px 20px rgba(212, 160, 23, 0.40);

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

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.55);
  transform: translateY(-2px);
}
.btn--wa {
  background: #25d366;
  color: var(--white);
}
.btn--wa:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 21, 21, 0.45);
}
.btn--lg { font-size: 1rem; padding: 14px 30px; }
.btn--sm { font-size: 0.875rem; padding: 9px 18px; }
.btn--search {
  font-size: 1rem;
  padding: 14px 32px;
  min-width: 160px;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ── SVG icon utils ─────────────────────────────────────────── */
.wa-icon   { width: 18px; height: 18px; flex-shrink: 0; }
.arrow-icon { width: 18px; height: 18px; flex-shrink: 0; }


/* =============================================================
   HEADER
============================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(12, 18, 32, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo__icon { font-size: 1.3rem; }
.logo__accent { color: var(--green); }

/* Nav */
.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 20px 20px;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 4px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--green); }
.mobile-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }


/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  background: var(--navy);
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 0;
  overflow: hidden;
}

/* Fondo de color con degradado del logo */
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(212,160,23,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(139,21,21,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 20%, rgba(204,68,0,0.10) 0%, transparent 55%),
    linear-gradient(160deg, #0a1020 0%, #0f1a2e 50%, #0c1220 100%);
  pointer-events: none;
}
/* Sin overlay extra — el gradiente ya da profundidad */
.hero__bg-pattern::after {
  content: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-glow);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero__title--accent {
  color: var(--green);
  display: inline-block;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 28px auto 36px;
  line-height: 1.65;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats strip */
.hero__stats {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.hero__stats-inner {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 80px);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}


/* =============================================================
   SECCIÓN BUSCADOR
============================================================= */
.search-section {
  background: var(--off-white);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.about-section .section-title { color: var(--white); }
.about-section .section-tag   { color: #D4A017; }
.about-section .section-desc  { color: rgba(255,255,255,0.55); }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8B1515;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search box */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-raise);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.search-box__filters {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 160px;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray);
  font-size: 0.9rem;
}
.filter-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  appearance: none;
  transition: border-color var(--transition);
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: #D4A017;
  box-shadow: 0 0 0 3px var(--green-glow);
}
.filter-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* =============================================================
   SECCIÓN RESULTADOS
============================================================= */
.results-section {
  background: var(--off-white);
  padding: 20px 0 72px;
  min-height: 200px;
}

/* Placeholder / empty states */
.results-placeholder,
.results-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.results-placeholder p,
.results-empty p { font-size: 1rem; line-height: 1.7; }
.placeholder-icon { font-size: 3rem; margin-bottom: 16px; }
.results-empty .btn { margin-top: 20px; }
.hidden { display: none !important; }

/* Contador de resultados */
.results-count {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 28px;
  padding-top: 8px;
}
.results-count strong { color: var(--navy); }

/* Grid de tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Tarjeta de ruta ─────────────────────────────────────── */
.route-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  /* Animación de entrada */
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.45s cubic-bezier(0.4,0,0.2,1) forwards;
}
.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raise);
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Imagen de la tarjeta */
.route-card__img-wrap {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  overflow: hidden;
}
.route-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder cuando no hay imagen */
.route-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
}
.route-card__img-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Badge de día sobre la imagen */
.route-card__day-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Cuerpo de la tarjeta */
.route-card__body {
  padding: 18px 18px 20px;
}
.route-card__dept {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8B1515;
  margin-bottom: 4px;
}
.route-card__muni {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.route-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.route-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}
.route-card__meta-item .meta-icon { font-size: 0.9rem; }

/* Botón WhatsApp en tarjeta */
.route-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: #25d366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.route-card__btn:hover {
  background: #1fb855;
  transform: scale(1.02);
}
.route-card__btn .wa-icon { width: 16px; height: 16px; }


/* =============================================================
   NOSOTROS
============================================================= */
.about-section {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("imagenes/promo_encomiendas.jpeg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.58;
  pointer-events: none;
  z-index: 0;
}
.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,18,32,0.50) 0%,
    rgba(12,18,32,0.30) 50%,
    rgba(12,18,32,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about-card {
  background: rgba(12, 18, 32, 0.70);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(212,160,23,0.22);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.about-card:hover {
  border-color: #D4A017;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212,160,23,0.22);
}
.about-card__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.about-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.about-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}


/* =============================================================
   CTA WHATSAPP
============================================================= */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("imagenes/mapa_delivery.jpeg");
  background-size: cover;
  background-position: center center;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,12,20,0.45) 0%,
    rgba(8,12,20,0.25) 50%,
    rgba(8,12,20,0.50) 100%);
  pointer-events: none;
  z-index: 0;
}
.cta-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.cta-box__desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.65;
  font-weight: 300;
}


/* =============================================================
   FOOTER
============================================================= */
.footer {
  background: #080d18;
  padding: 40px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25d366;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--transition);
}
.footer__wa:hover { opacity: 0.8; }
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
}


/* =============================================================
   BOTÓN WHATSAPP FLOTANTE
============================================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(139, 21, 21, 0.6);
}
/* Pulso */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.25);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}


/* =============================================================
   RESPONSIVE BREAKPOINTS
============================================================= */

/* Tablet → */
@media (min-width: 640px) {
  .search-box { align-items: flex-end; flex-wrap: nowrap; }
  .btn--search { flex-shrink: 0; }
}

/* Mobile ← */
@media (max-width: 639px) {
  :root { --header-h: 60px; }
  .about-grid { grid-template-columns: 1fr; }

  /* Nav oculto en mobile */
  .nav, .header > .container > .btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1; justify-content: center; min-width: 130px; }

  /* Stats */
  .hero__stats-inner { gap: 28px; }

  /* Buscador */
  .search-box { flex-direction: column; padding: 24px 20px; }
  .search-box__filters { flex-direction: column; }
  .filter-group { min-width: unset; }
  .btn--search { width: 100%; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* About */
  .about-section { padding: 72px 0; }

  /* CTA */
  .cta-section { padding: 64px 0; }
}


/* =============================================================
   GALERÍA DE FOTOS
============================================================= */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Tarjeta de foto */
.foto-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.42s ease forwards;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.foto-item:hover { box-shadow: var(--shadow-raise); transform: translateY(-4px); }

/* Wrap de imagen + overlay */
.foto-item__wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-light);
  cursor: pointer;
}
.foto-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.foto-item:hover .foto-item__img { transform: scale(1.05); }

/* Overlay oscuro con info y botones */
.foto-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,18,32,0.82) 0%, rgba(12,18,32,0.08) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 1;
  transition: opacity var(--transition);
  cursor: pointer;
}

.foto-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.foto-item__depto-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}
.foto-item__muni-badge {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

/* Botones sobre la imagen */
.foto-item__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.foto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
/* zoom button eliminado */
.foto-btn--wa {
  background: #25d366;
  color: var(--white);
}
.foto-btn--wa:hover { background: #1fb855; transform: scale(1.1); }

/* Etiqueta debajo de la foto */
.foto-item__label {
  padding: 10px 12px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foto-item__label span {
  color: var(--gray);
  font-weight: 400;
  margin-left: 2px;
}


/* =============================================================
   LIGHTBOX
============================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 12, 24, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* Contenido central */
.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-img {
  max-width: min(780px, 88vw);
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 64px rgba(0,0,0,0.6);
  display: block;
  transition: opacity 0.2s ease;
}
.lb-title {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.lb-wa {
  font-size: 0.9rem;
  padding: 10px 22px;
}

/* Botón cerrar */
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  z-index: 1001;
}
.lb-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Flechas de navegación */
.lb-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.lb-nav:hover { background: rgba(255,255,255,0.25); transform: scale(1.08); }

@media (max-width: 640px) {
  .lb-nav { display: none !important; }
  .lightbox { padding: 14px; gap: 0; flex-direction: column; }
  .lb-img { max-width: 95vw; max-height: 65vh; }
  /* Swipe hint en mobile */
  .lb-content::after {
    content: '← desliza →';
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* Responsive galería */
@media (max-width: 500px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .foto-item__overlay { opacity: 1; }
}

/* =============================================================
   LOGO IMAGEN REAL
============================================================= */
.logo__img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  /* Quitar el fondo negro del logo */
  mix-blend-mode: normal;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.logo:hover .logo__img {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Footer: un poco más grande y centrado */
.logo__img--footer {
  width: 64px;
  height: 64px;
  border-color: rgba(255,255,255,0.2);
}

/* =============================================================
   TEXTO ANIMADO DEL HERO (ciclo de 3 frases)
============================================================= */
.hero__animated-text {
  position: relative;
  min-height: 230px;     /* evita que el layout salte */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Cada slide ocupa la misma posición, apilados */
.hero__anim-slide {
  position: absolute;
  width: 100%;
  text-align: center;

  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1.5px;

  /* Estado inicial: invisible y desplazado */
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Estado activo: visible */
.hero__anim-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estado saliendo: sube y desaparece */
.hero__anim-slide.exit {
  opacity: 0;
  transform: translateY(-28px);
}

/* Altura mínima adaptada a móvil */
@media (max-width: 639px) {
  .hero__animated-text { min-height: 210px; }
  .hero__anim-slide { font-size: clamp(1.9rem, 8vw, 2.8rem); }
}

/* =============================================================
   SECCIÓN MEDIDAS DE PAQUETE
============================================================= */
.medidas-section {
  background: var(--navy);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

/* Acento decorativo de fondo */
.medidas-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.09) 0%, transparent 70%);
  pointer-events: none;
}

/* Layout: imagen | info */
.medidas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Imagen */
.medidas-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.medidas-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212,160,23,0.25);
  pointer-events: none;
}
.medidas-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}
.medidas-img-wrap:hover .medidas-img { transform: scale(1.02); }

/* Texto info */
.medidas-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.medidas-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.15;
}

/* Grid de 3 medidas */
.medidas-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.medida-item {
  flex: 1;
  min-width: 90px;
  background: var(--navy-light);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.medida-item:hover {
  border-color: #D4A017;
  transform: translateY(-3px);
}
.medida-item__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.medida-item__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* Nota de advertencia */
.medidas-nota {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(139, 21, 21, 0.08);
  border: 1px solid rgba(139, 21, 21, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.medidas-nota__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.medidas-nota p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.medidas-nota strong { color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
  .medidas-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .medidas-img-wrap { max-width: 420px; margin: 0 auto; }
  .medidas-section { padding: 64px 0; }
}

/* =============================================================
   SECCIÓN EQUIPO UNIFORMADO
============================================================= */
.equipo-section {
  background: var(--off-white);
  padding: 88px 0;
  overflow: hidden;
}

.equipo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Info lado izquierdo */
.equipo-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.equipo-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.equipo-desc strong { color: var(--navy); }

.equipo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.equipo-list li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid #8B1515;
  box-shadow: var(--shadow-card);
}

/* Imagen lado derecho */
.equipo-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.equipo-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raise);
  display: block;
  transition: transform 0.4s ease;
}
.equipo-img-wrap:hover .equipo-img { transform: scale(1.02); }

/* Badge flotante sobre la imagen */
.equipo-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--navy);
  border: 2px solid #D4A017;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-raise);
}
.equipo-badge__icon { font-size: 1.6rem; flex-shrink: 0; }
.equipo-badge__text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer crédito */
.footer__credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  margin-top: 2px;
}
.footer__credit strong {
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .equipo-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* En móvil: imagen arriba, texto abajo */
  .equipo-img-wrap { order: -1; max-width: 380px; margin: 0 auto; }
  .equipo-badge { bottom: -14px; left: 12px; }
  .equipo-section { padding: 64px 0 80px; }
}

.footer__credit-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color var(--transition), border-color var(--transition);
}
.footer__credit-link:hover {
  color: var(--green);
  border-color: #D4A017;
}

/* =============================================================
   PALETA EXTENDIDA DEL LOGO
============================================================= */
:root {
  --gold:       #D4A017;
  --gold-dark:  #a87c10;
  --vino:       #8B1515;
  --vino-light: rgba(139, 21, 21, 0.12);
  --naranja:    #CC4400;
}

/* Botón vinotinto (para secciones sobre fondo claro) */
.btn--rojo {
  background: var(--vino);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139,21,21,0.35);
}
.btn--rojo:hover {
  background: #6e1010;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139,21,21,0.5);
}

/* =============================================================
   SECCIÓN SERVICIOS Y HORARIOS
============================================================= */
.servicios-section {
  background: var(--white);
  padding: 88px 0;
  overflow: hidden;
}

.servicios-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Imagen flyer */
.servicios-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-raise);
  border: 3px solid #D4A017;
  transition: transform 0.4s ease;
}
.servicios-img-wrap:hover { transform: scale(1.01); }
.servicios-img { width: 100%; display: block; }

/* Info */
.servicios-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Lista de servicios */
.servicios-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.servicio-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.servicio-item__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.servicio-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.servicio-item p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* Horarios */
.horarios-wrap {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-light);
}
.horarios-titulo {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vino);
  margin-bottom: 10px;
}
.horario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text-body);
  gap: 12px;
  flex-wrap: wrap;
}
.horario-item strong {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.horario-item--rojo {
  background: var(--vino);
  color: rgba(255,255,255,0.9);
}
.horario-item--rojo strong { color: #FFD700; }

/* Responsive */
@media (max-width: 768px) {
  .servicios-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .servicios-img-wrap { max-width: 360px; margin: 0 auto; }
  .servicios-section { padding: 64px 0; }
  .horario-item { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* =============================================================
   LOGO DECORATIVO CENTRADO EN EL HERO
============================================================= */
.hero__logo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero__logo-bg-img {
  width: min(500px, 82vw);
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  opacity: 0.12;
  filter: blur(0.5px) saturate(1.2);
  transform: scale(1.02);
  transition: opacity 0.5s ease;
}

/* El contenido del hero va encima con z-index */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 80px;
}

/* Anillo dorado decorativo alrededor del logo fantasma */
.hero__logo-bg::before {
  content: '';
  position: absolute;
  width: min(440px, 78vw);
  height: min(440px, 78vw);
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.12);
  pointer-events: none;
}
.hero__logo-bg::after {
  content: '';
  position: absolute;
  width: min(480px, 84vw);
  height: min(480px, 84vw);
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.06);
  pointer-events: none;
}

@media (max-width: 639px) {
  .hero__logo-bg-img {
    width: 280px;
    height: 280px;
    opacity: 0.08;
  }
}

/* Número de teléfono junto a Telollevo en el hero */
.hero__anim-tel {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  margin-top: 10px;
}

/* =============================================================
   SECCIÓN GALERÍA PROMOCIONAL
============================================================= */
.promo-section {
  background: var(--navy);
  padding: 88px 0;
  overflow: hidden;
}

/* Cuando hay 1 foto: centrada y ancha */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

/* Cuando hay 2 fotos: lado a lado */
.promo-grid:has(.promo-card:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
}

/* Tarjeta de foto promo */
.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 2px solid rgba(212,160,23,0.25);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.6);
  border-color: #D4A017;
}

.promo-card__img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.promo-card:hover .promo-card__img { transform: scale(1.03); }

/* Overlay con texto en la parte inferior */
.promo-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(8,12,24,0.92) 0%, transparent 100%);
}
.promo-card__text {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.promo-card__sub {
  font-size: 0.8rem;
  color: #D4A017;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .promo-grid,
  .promo-grid:has(.promo-card:nth-child(2)) {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .promo-section { padding: 64px 0; }
}
