/* ============================================================
   TANNU — landing.css
   Estilos exclusivos de index.html.
   Carga después de style.css — extiende y sobreescribe
   selectivamente sin afectar otras páginas.
   ============================================================ */


/* ── SKIP NAV (accesibilidad) ──────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--teal-dark);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }


/* ── NAV: ESTADO SCROLL ────────────────────────────────────── */
nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(14, 95, 112, 0.1);
}


/* ── NAV: HAMBURGER ────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(32, 173, 200, 0.08); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.22s ease;
}
/* Estado abierto: convierte en X */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── MENÚ MOBILE ───────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 68px;           /* altura del nav */
  left: 0; right: 0;
  z-index: 99;
  background: white;
  border-bottom: 1px solid rgba(32, 173, 200, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}
.mobile-menu.open {
  max-height: 440px;
  box-shadow: 0 16px 40px rgba(14, 95, 112, 0.12);
}
.mobile-menu-inner {
  padding: 1.5rem 5% 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-nav-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d32;
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 173, 200, 0.08);
  transition: color 0.18s;
}
.mobile-nav-link:hover { color: var(--cyan); }
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-btn { width: 100%; justify-content: center; }


/* ── HERO: AJUSTES ─────────────────────────────────────────── */
/* Botón secundario transparente sobre fondo degradado */
.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: white;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Hero stat wrapper — cada columna de estadística */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Pill "Ingresar" dentro del phone mockup */
.app-login-pill {
  background: #fdf1f1;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 7px;
  font-weight: 800;
}

/* Contenedor relativo para el phone flotante */
.phone-wrap { position: relative; }


/* ── PHONE FLOTANTE: REEMPLAZA INLINE STYLES ───────────────── */
.pf-hero {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.pf-icon-btn {
  position: absolute;
  top: 8px;
  width: 26px; height: 26px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pf-icon-btn--left  { left: 8px; }
.pf-icon-btn--right { right: 8px; }

.pf-body  { padding: 12px; }
.pf-cat   { font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 4px; }
.pf-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: #1e2d32; line-height: 1.25; margin-bottom: 10px; }
.pf-metas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pf-meta-item { display: flex; align-items: center; gap: 6px; }
.pf-meta-icon { width: 24px; height: 24px; background: #fdf1f1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
.pf-meta-main { font-size: 8px; font-weight: 700; }
.pf-meta-sub  { font-size: 7px; color: #aaa; }
.pf-cta-btn   { background: var(--grad); border-radius: 50px; padding: 7px; text-align: center; font-size: 8px; font-weight: 800; color: white; }


/* ── FEATURES: ICONO SVG ───────────────────────────────────── */
/* El feat-icon ahora contiene SVG inline en vez de emoji */
.feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-icon svg { flex-shrink: 0; }


/* ── HOW IT WORKS: AJUSTES ─────────────────────────────────── */
.how-grid { max-width: 1100px; margin: 0 auto; }

.how-header {
  text-align: left;
  margin-bottom: 3rem;
}
.how-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Phone más pequeño para el mockup de filtros */
.phone-frame--sm  { width: 240px; }
.phone-screen--sm { height: 480px; }

/* Fondo desenfocado dentro del mockup */
.hw-screen-bg { background: #f8fafb; opacity: 0.35; }
.hw-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}
.hw-screen-search {
  margin: 6px 10px;
  background: white;
  border-radius: 50px;
  padding: 4px 10px;
}
.hw-screen-search p { font-size: 8px; color: #aaa; }
.hw-map-mini {
  margin: 0 10px 6px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #b4e0ec, #88cad6);
}

/* Hoja de filtros sobre el fondo */
.hw-filter-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-radius: 18px 18px 0 0;
  padding: 12px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
}
.hw-drag-handle { width: 30px; height: 3px; background: #e0e0e0; border-radius: 2px; margin: 0 auto 10px; }
.hw-filter-title { font-family: 'Playfair Display', serif; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.hw-filter-label { font-size: 6.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; margin-bottom: 5px; }
.hw-pills       { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.hw-pills--mb   { margin-bottom: 12px; }
.hw-pill        { padding: 3px 8px; border-radius: 50px; font-size: 7px; font-weight: 800; border: 1.5px solid #e0e0e0; color: #666; }
.hw-pill--active { background: var(--grad); color: white; border-color: transparent; }
.hw-apply-btn   { background: var(--grad); border-radius: 50px; padding: 8px; text-align: center; font-size: 8px; font-weight: 800; color: white; }


/* ── EVENTOS SHOWCASE: IMAGEN REAL ─────────────────────────── */
.ev-sc-img--photo {
  height: 160px;
  position: relative;
  overflow: hidden;
  font-size: 0; /* oculta espacio de texto heredado */
}
.ev-sc-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.ev-showcase-card:hover .ev-sc-img--photo img {
  transform: scale(1.06);
}

/* CTA debajo de los eventos */
.events-cta {
  text-align: center;
  margin-top: 3rem;
}


/* ── PARTNERS SECTION ──────────────────────────────────────── */
.partners-section {
  padding: 100px 5%;
  background: linear-gradient(145deg, #0a2e38 0%, #0e5f70 55%, #167a8e 100%);
  position: relative;
  overflow: hidden;
}
/* Patrón decorativo de fondo */
.partners-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Texto lado izquierdo */
.overline--light { color: var(--cyan-light); }

.partners-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.partners-content h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #5dd0e8, #a8edfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.partners-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2rem;
}

.partners-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.partners-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.partners-benefits li svg { color: var(--cyan-light); flex-shrink: 0; }

/* Dashboard Preview */
.dash-preview {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(32, 173, 200, 0.1);
}
.dash-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: white;
  flex-shrink: 0;
}
.dash-header-text { flex: 1; min-width: 0; }
.dash-name        { font-size: 0.85rem; font-weight: 800; color: #1e2d32; }
.dash-subtitle    { font-size: 0.72rem; color: #8a9ea3; }
.dash-live        { font-size: 0.68rem; font-weight: 800; color: #22c55e; white-space: nowrap; }

.dash-event-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafb;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
}
.dash-ev-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.dash-ev-info  { flex: 1; min-width: 0; }
.dash-ev-title { font-size: 0.82rem; font-weight: 800; color: #1e2d32; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ev-meta  { font-size: 0.72rem; color: #8a9ea3; }
.dash-ev-badge {
  background: rgba(32, 173, 200, 0.1);
  color: var(--teal);
  font-size: 0.65rem; font-weight: 800;
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.dash-metric {
  background: #f8fafb;
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.dash-metric-num   { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #1e2d32; }
.dash-metric-label { font-size: 0.6rem; font-weight: 700; color: #8a9ea3; margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.05em; }

.dash-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--grad);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: white;
  cursor: default;
}


/* ── CATEGORÍAS: PILL COMO ENLACE ──────────────────────────── */
a.cat-pill {
  text-decoration: none;
  display: inline-flex;
}
a.cat-pill:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}


/* ── FOOTER: MULTI-COLUMNA ─────────────────────────────────── */
/* Sobreescribe el footer flex de style.css */
footer {
  background: #0a2530;
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 5% 0;
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  display: block;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
  max-width: 220px;
  margin-bottom: 1.2rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover {
  background: rgba(32, 173, 200, 0.22);
  color: var(--cyan-light);
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.2rem;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col-links a:hover { color: var(--cyan-light); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}


/* ── FOCUS GLOBAL (accesibilidad) ──────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}


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

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .partners-inner { gap: 3rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-tagline    { max-width: 100%; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links,
  .nav-cta      { display: none; }
  .nav-hamburger{ display: flex; }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 100px 5% 60px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; gap: 1.5rem; }
  .hero-phone-area { display: none; } /* mockup se oculta en mobile */

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* How */
  .how-grid          { grid-template-columns: 1fr; }
  .how-phone-wrap    { display: none; }
  .how-header        { text-align: center; }

  /* Events */
  .events-showcase { grid-template-columns: 1fr 1fr; }

  /* Partners */
  .partners-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .partners-benefits  { align-items: flex-start; text-align: left; }
  .partners-content .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Mobile pequeño (≤ 480px) ── */
@media (max-width: 480px) {
  .events-showcase { grid-template-columns: 1fr; }
  .cats-showcase   { gap: 0.5rem; }
  .cat-pill { padding: 0.55rem 1rem; font-size: 0.82rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ── Ultra-wide (≥ 1400px) ── */
@media (min-width: 1400px) {
  .hero, .features, .how, .events-section,
  .partners-section, .cats-section, .cta-section {
    padding-left: 10%;
    padding-right: 10%;
  }
}
