/* =========================================================
   ETN Turistar — styles.css
   Identidad, layout, UI/UX y efectos visuales por sección
   ========================================================= */

/* ====== Design Tokens (alineados a ETN) ====== */
:root{
  --etn-blue:#003857;       /* azul profundo institucional */
  --etn-blue-2:#006c9a;     /* azul/teal de acento */
  --etn-silver:#e6eef5;     /* superficies claras */
  --etn-ink:#0b1c2c;        /* texto */
  --etn-body:#f7fafc;       /* fondo */
  --etn-cta:#0bb769;        /* botón primario */
  --etn-cta-dark:#079456;
  --radius:14px;
  --shadow:0 10px 22px rgba(0,0,0,.08);
  --shadow-soft:0 6px 14px rgba(0,0,0,.06);
}

/* ====== Reset y base ====== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--etn-ink); background:var(--etn-body); line-height:1.6;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(1200px,92%); margin:auto; }
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ====== Transiciones globales ====== */
*, *::before, *::after{
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    opacity .35s ease;
}

/* ====== Topbar / Header ====== */
.topbar{ background:var(--etn-blue); color:#fff; font-size:.9rem; }
.topbar .container{ display:flex; align-items:center; justify-content:space-between; padding:.5rem 0; }
.topbar ul{ display:flex; gap:1rem; list-style:none; margin:0; padding:0; }
.lang-currency select{
  background:transparent; border:1px solid rgba(255,255,255,.35); color:#fff;
  padding:.3rem .6rem; border-radius:8px;
}

header.site-header{
  position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid #e8edf3;
  /* sombra contextual suave para jerarquía */
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 0; }
.brand{ display:flex; align-items:center; gap:.6rem; }
.brand img{ height:34px; }
nav ul{ display:flex; gap:1rem; list-style:none; margin:0; padding:0; }
nav a{ padding:.5rem .8rem; border-radius:10px; }
nav a:hover{ background:var(--etn-silver); }
.cta-btn{
  background:var(--etn-cta); color:#fff; padding:.6rem 1rem; border-radius:12px; font-weight:600;
  box-shadow:var(--shadow-soft);
}
.cta-btn:hover{ background:var(--etn-cta-dark); transform: translateY(-1px); }

/* ====== Hero ====== */
.hero{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hero-copy h1{
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height:1.15; margin:.2rem 0 .8rem; color:var(--etn-blue);
}
.hero-copy p{ font-size:1.1rem; max-width:52ch; }
.hero-actions{ display:flex; gap:.8rem; margin-top:1.2rem; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.1rem; border-radius:12px;
  border:1px solid transparent; font-weight:600; box-shadow:var(--shadow-soft);
}
.btn-primary{ background:var(--etn-cta); color:#fff; box-shadow: 0 8px 18px rgba(11,183,105,.22); }
.btn-primary:hover{ background:var(--etn-cta-dark); box-shadow:0 10px 26px rgba(11,183,105,.32); transform: translateY(-1px); }
.btn-ghost{ border-color:#cfe0ea; background:#fff; }
.btn-ghost:hover{ transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.hero-media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.hero-media img{ aspect-ratio:16/10; object-fit:cover; transform: scale(1.02); }
.hero-media:hover img{ transform: scale(1.05); }

.booking-placeholder{
  margin-top:1.2rem; border:1px dashed #cfe0ea; border-radius:12px; padding:1rem; background:#fff;
}

/* ====== Featured Routes ====== */
section.routes{ padding:3rem 0; }
.section-head{ display:flex; align-items:end; justify-content:space-between; margin-bottom:1.2rem; }
.section-head h2{ margin:0; color:var(--etn-blue); }
.cards{ display:grid; gap:1.2rem; grid-template-columns: repeat(3, 1fr); }
.card{
  background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow-soft); border:1px solid #e7edf3;
  display:flex; flex-direction:column; will-change: transform;
}
.card img{ aspect-ratio:16/10; object-fit:cover; }
.card .pad{ padding:1rem; }
.meta{ display:flex; gap:.6rem; align-items:center; font-size:.95rem; color:#38566d; }
.pill{ background:var(--etn-silver); border-radius:999px; padding:.25rem .6rem; }
.card h3{ margin:.5rem 0 .4rem; }
.card p{ margin:0 0 .6rem; }
.card a{ color:var(--etn-blue-2); font-weight:600; }

/* Elevación y zoom en hover (tarjetas) */
.card:hover{ transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.10); }
.card:hover img{ transform: scale(1.04); }

/* ====== Why ETN ====== */
section.why{ padding:3rem 0; background:linear-gradient(180deg,#fff, #f3f8fc); }
.features{ display:grid; gap:1rem; grid-template-columns: repeat(4,1fr); }
.feature{
  background:#fff; border:1px solid #e7edf3; border-radius:16px; padding:1.2rem;
  box-shadow:var(--shadow-soft); display:grid; gap:.6rem; align-content:start; position:relative;
}
.feature h4{ margin:.2rem 0; color:var(--etn-blue); }
.feature p{ margin:0; color:#2b4152; }
.icon{ width:44px; height:44px; border-radius:10px; background:var(--etn-silver); display:grid; place-items:center; }

/* Borde activo + micro-animación del icono */
.feature::after{
  content:""; position:absolute; inset:0; border-radius:16px; border:2px solid transparent; pointer-events:none;
}
.feature:hover::after,
.feature:focus-within::after{ border-color: rgba(0,108,154,.25); }
.feature .icon{ transform: translateY(0); }
.feature:hover .icon{ transform: translateY(-2px) scale(1.04); }

/* ====== The Experience ====== */
section.experience{ padding:3rem 0; }
.xp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; }
.xp-visual{ border-radius:16px; overflow:hidden; box-shadow:var(--shadow); }
.xp-visual img{ aspect-ratio:16/12; object-fit:cover; }
.xp-points{ display:grid; gap:1rem; }
.xp-points li{
  background:#fff; border:1px solid #e7edf3; border-radius:14px; padding:1rem; list-style:none;
}
.xp-points strong{ color:var(--etn-blue); }

/* Interacción sutil en items */
.xp-points li:hover{
  transform: translateY(-3px); box-shadow: 0 14px 24px rgba(0,0,0,.07); border-color:#d4e5ef;
}

/* ====== Coverage / Map ====== */
section.coverage{ padding:3rem 0; background:#fff; }
.map-wrap{ border-radius:16px; overflow:hidden; border:1px solid #e7edf3; box-shadow:var(--shadow-soft); }
.map-wrap img{ aspect-ratio:16/9; object-fit:cover; transform: scale(1.01); }
.map-wrap:hover img{ transform: scale(1.04); }
.legend{ display:flex; gap:.8rem; flex-wrap:wrap; margin-top:.8rem; }
.legend .pill{ font-size:.9rem; transform: translateY(0); }
.legend .pill:hover{ transform: translateY(-2px); background:#d9e9f3; }

/* ====== Tips (FAQ) ====== */
section.tips{ padding:3rem 0; background:linear-gradient(180deg,#f3f8fc,#fff); }
details{
  background:#fff; border:1px solid #dfeaf1; border-radius:12px; padding:1rem; margin:.6rem 0;
  box-shadow:var(--shadow-soft); overflow:hidden;
}
summary{ cursor:pointer; font-weight:700; color:var(--etn-blue); position:relative; padding-right:2rem; }
details > summary::after{
  content:"▾"; position:absolute; right:.6rem; top:.6rem; color: var(--etn-blue-2);
  transition: transform .25s ease;
}
details[open] > summary::after{ transform: rotate(-180deg); }
details[open]{ box-shadow: 0 10px 22px rgba(0,0,0,.06); }

/* ====== App ====== */
section.app{ padding:3rem 0; }
.app-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; align-items:center; }
.store-badges{ display:flex; gap:.8rem; flex-wrap:wrap; }
.store-badges img{ height:44px; }

/* Mock “flotante” del teléfono */
.app-grid > div:last-child img{
  transform: translateY(0);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.12));
}
.app-grid > div:last-child img:hover{
  transform: translateY(-4px);
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.16));
}

/* ====== Social Proof ====== */
section.proof{ padding:2.6rem 0; background:#fff; }
.logos{ display:flex; gap:1.2rem; flex-wrap:wrap; align-items:center; opacity:.9; }
.logos img{ height:34px; filter:grayscale(1); opacity:.85; transform: translateY(0); }
.logos img:hover{ opacity:1; transform: translateY(-2px); }

/* ====== Final CTA ====== */
section.final-cta{
  padding:3rem 0; background:linear-gradient(90deg, var(--etn-blue), #02527a); color:#fff; border-radius:18px;
  margin:2rem 0; box-shadow:var(--shadow); position:relative;
}
.final-cta .container{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.final-cta h3{ margin:0; font-size:clamp(1.3rem,2.2vw,1.8rem); }
/* efecto “respirante” leve */
.final-cta::before{
  content:""; position:absolute; inset:0; border-radius:18px;
  background: radial-gradient(1200px 200px at 20% 50%, rgba(255,255,255,.08), transparent 60%);
  opacity:.65; pointer-events:none;
}

/* ====== Footer ====== */
footer.site-footer{ padding:2.2rem 0; background:#021c2a; color:#cfe0ea; }
.foot-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:1.4rem; }
.foot-grid h5{ margin:.2rem 0 .6rem; color:#fff; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:.4rem; }
.foot-meta{
  border-top:1px solid #1e3849; margin-top:1.2rem; padding-top:.8rem; font-size:.9rem;
  display:flex; justify-content:space-between; flex-wrap:wrap;
}

/* ====== Scroll Reveal (sin JS, al cargar) ====== */
.reveal{ opacity:0; transform: translateY(16px); animation: revealUp .7s ease-out forwards; }
.hero.reveal        { animation-delay: .05s; }
.routes.reveal      { animation-delay: .10s; }
.why.reveal         { animation-delay: .15s; }
.experience.reveal  { animation-delay: .20s; }
.coverage.reveal    { animation-delay: .25s; }
.tips.reveal        { animation-delay: .30s; }
.app.reveal         { animation-delay: .35s; }
.proof.reveal       { animation-delay: .40s; }
.final-cta.reveal   { animation-delay: .45s; }
.site-footer.reveal { animation-delay: .50s; }

@keyframes revealUp { to { opacity:1; transform:none; } }

/* Stagger automático para grupos (cards / features) */
.cards > *{
  animation: revealUp .7s ease-out forwards;
  opacity:0; transform: translateY(12px);
}
.cards > *:nth-child(1){ animation-delay:.05s; }
.cards > *:nth-child(2){ animation-delay:.15s; }
.cards > *:nth-child(3){ animation-delay:.25s; }

.features > *{
  animation: revealUp .6s ease-out forwards;
  opacity:0; transform: translateY(12px);
}
.features > *:nth-child(1){ animation-delay:.05s; }
.features > *:nth-child(2){ animation-delay:.12s; }
.features > *:nth-child(3){ animation-delay:.19s; }
.features > *:nth-child(4){ animation-delay:.26s; }

/* ====== Preferencia de accesibilidad ====== */
@media (prefers-reduced-motion: reduce){
  .reveal, .cards > *, .features > *{ animation:none !important; opacity:1 !important; transform:none !important; }
}

/* ====== Variantes de animación ====== */
/* Suave por defecto; puedes cambiar la “intensidad” por sección */
.reveal--soft{ animation-duration:.6s; }
.reveal--bold{ animation-duration:.9s; transform: translateY(22px); }
.reveal--none{ animation:none !important; opacity:1 !important; transform:none !important; }

/* ====== Responsive ====== */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr 1fr; }
  .features{ grid-template-columns:1fr 1fr; }
  .xp-grid, .app-grid{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .cards{ grid-template-columns:1fr; }
  nav ul{ display:none; }
}



.app-downloads {
  text-align: center;
  margin: 3rem auto;
}

.app-downloads h2 {
  color: var(--etn-blue-1);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.app-downloads p {
  color: #444;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.store-buttons img {
  height: 60px;
  transition: transform 0.3s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
}


footer a {
    width: auto !important;
}