/* ============================================================
   inicio.css — Página de inicio (view-home)
   Usa los mismos tokens de base.css y las tarjetas de home.css
   ============================================================ */

.home-wrap{ max-width:680px; margin:0 auto; width:100%; padding-inline:16px; display:flex; flex-direction:column; gap:30px; padding-bottom:90px; }
.home-section{ display:flex; flex-direction:column; gap:12px; }
.home-section[hidden]{ display:none !important; }
.home-eyebrow{ font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--primary); margin:0; }
.home-title{ font-size:1.25rem; font-weight:800; line-height:1.2; margin:2px 0 0; text-wrap:balance; }
.home-glass{
  background:var(--card); border:1.5px solid rgba(17,24,39,.09); border-radius:18px;
  -webkit-backdrop-filter:blur(14px) saturate(1.3); backdrop-filter:blur(14px) saturate(1.3);
}

/* ===== Portada ===== */
.home-hero{ border-radius:22px; overflow:hidden; box-shadow:var(--shadow); background:var(--card-solid); border:1.5px solid rgba(17,24,39,.09); }
.home-hero-photo{ position:relative; aspect-ratio:16/10; max-width:100%; background:linear-gradient(180deg,#bfdbfe 0%,#e0ecff 55%,#f7f9fc 100%); overflow:hidden; }
.home-hero-photo svg{ position:absolute; inset:0; width:100%; height:100%; }
.home-hero-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(17,24,39,0) 35%,rgba(17,24,39,.62) 100%); }
.home-hero-text{ position:absolute; left:18px; right:18px; bottom:16px; z-index:1; color:#fff; }
.home-hero-text p{ margin:0; font-size:.92rem; font-weight:700; opacity:.92; }
.home-hero-text h1{ margin:2px 0 0; font-size:clamp(1.5rem,6.2vw,2rem); font-weight:850; line-height:1.12; letter-spacing:-.01em; text-wrap:balance; }
.home-hero-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:14px; }
.home-hero-body > p{ margin:0; color:var(--muted); font-size:.95rem; line-height:1.5; }

.home-next{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px;
  padding:12px; border-radius:16px; background:#f3f7fe; border:1px solid #dbe7fb;
}
.home-next-icon{ width:42px; height:42px; border-radius:12px; background:#dbeafe; color:var(--primary); display:grid; place-items:center; flex-shrink:0; }
.home-next-icon svg{ width:22px; height:22px; }
.home-next-info{ flex:1; min-width:0; }
.home-next-label{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.home-next-name{ font-weight:800; line-height:1.25; text-wrap:balance; }
.home-countdown{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; font-variant-numeric:tabular-nums; }
.home-countdown div{ background:var(--card-solid); border:1px solid #dbe7fb; border-radius:10px; padding:6px; text-align:center; }
.home-countdown b{ display:block; font-size:1.2rem; line-height:1.1; color:#24479a; }
.home-countdown span{ font-size:.62rem; color:var(--muted); font-weight:700; text-transform:uppercase; }

.home-cta{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px;
  padding:0 26px; border-radius:999px; font-weight:700; font-size:.98rem; text-decoration:none;
  border:0; cursor:pointer; background:#111827; color:#fff;
}
.home-cta:hover{ background:#1f2937; }
.home-cta svg{ width:18px; height:18px; flex-shrink:0; }
.home-cta.light{ background:transparent; color:var(--text); border:1.5px solid #d6dbe3; }
.home-cta.light:hover{ background:#f3f4f6; }
.home-cta.whatsapp{ background:#16a34a; }
.home-cta.whatsapp:hover{ background:#15803d; }

/* ===== Accesos rápidos ===== */
.home-quick{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.home-tile{
  display:flex; flex-direction:column; gap:10px; padding:16px 14px; text-align:left;
  font:inherit; color:var(--text); cursor:pointer; transition:transform .2s ease, box-shadow .2s ease;
}
.home-tile:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(17,24,39,.12); }
.home-tile-icon{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; }
.home-tile-icon svg{ width:21px; height:21px; }
.home-tile b{ font-size:.92rem; line-height:1.25; }
.home-tile small{ color:var(--muted); font-size:.78rem; line-height:1.35; }
.home-tile-icon.blue{ background:#dbeafe; color:var(--primary); }
.home-tile-icon.green{ background:#d1fae5; color:#047857; }
.home-tile-icon.amber{ background:#fef3c7; color:#b45309; }
@media (max-width:420px){ .home-tile{ padding:14px 11px; } .home-tile b{ font-size:.86rem; } }

/* ===== Próximos viajes (reusa .trip-card de home.css) ===== */
.home-trips{ display:flex; flex-direction:column; gap:10px; }
.home-trips .trip-card{ margin:0; }
.home-trips .trip-card.closed{ cursor:default; }
.home-trips .trip-card.closed:hover{ transform:none; box-shadow:var(--shadow); }
.home-trip-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.home-trip-meta .trip-countdown-wrap{ margin:0; }
.home-chip{
  display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:700;
  padding:5px 10px 5px 8px; border-radius:999px;
}
.home-chip.open{ background:#d1fae5; color:#065f46; box-shadow:inset 3px 0 0 #10b981; }
.home-chip.info{ background:#dcfce7; color:#047857; box-shadow:inset 3px 0 0 #22c55e; text-decoration:none; }
.home-chip.info:hover{ background:#bbf7d0; }
.home-trips .trip-card.event{ border-left-color:#a855f7; }
.trip-pill.evento{ background:#f3e8ff; color:#6b21a8; }
.home-chip.soon{ background:#f3f4f6; color:#4b5563; box-shadow:inset 3px 0 0 #9ca3af; }
.home-empty{ padding:22px 18px; text-align:center; color:var(--muted); font-size:.92rem; }

/* ===== Destinos ===== */
.home-dest-scroll{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(240px,78%); gap:12px;
  overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 10px; scrollbar-width:thin;
}
.home-dest{ scroll-snap-align:start; overflow:hidden; display:flex; flex-direction:column; }
.home-dest-img{
  aspect-ratio:16/9; max-width:100%; display:flex; align-items:flex-end; padding:12px;
  background:linear-gradient(135deg,#2c7be5,#24479a) center/cover no-repeat;
}
.home-dest-img span{ font-size:.7rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#fff; background:rgba(17,24,39,.45); padding:4px 8px; border-radius:999px; }
.home-dest-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.home-dest-body h3{ margin:0; font-size:1.05rem; font-weight:800; }
.home-dest-body p{ margin:0; font-size:.88rem; color:var(--muted); line-height:1.45; }
.home-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:4px; }
.home-tags span{ font-size:.72rem; font-weight:700; padding:3px 8px; border-radius:999px; background:#f3f4f6; color:#4b5563; }
@media (min-width:620px){ .home-dest-scroll{ grid-auto-columns:minmax(260px,46%); } }

/* ===== Cómo reservar ===== */
.home-steps{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; counter-reset:paso; margin:0; padding:0; list-style:none; }
.home-step{ padding:14px; display:flex; flex-direction:column; gap:6px; }
.home-step::before{
  counter-increment:paso; content:counter(paso); width:28px; height:28px; border-radius:50%;
  background:#24479a; color:#fff; font-weight:800; font-size:.85rem; display:grid; place-items:center;
}
.home-step b{ font-size:.9rem; line-height:1.25; }
.home-step small{ color:var(--muted); font-size:.8rem; line-height:1.4; }
.home-steps-cta{ align-self:center; }
@media (min-width:620px){ .home-steps{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* ===== Quiénes somos ===== */
.home-about{ padding:18px 20px; }
.home-about p{ margin:0; font-size:.95rem; color:#374151; line-height:1.55; white-space:pre-line; }
.home-team{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.home-member{ padding:16px 12px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.home-avatar{
  width:72px; height:72px; border-radius:50%; display:grid; place-items:center; overflow:hidden;
  color:#fff; font-weight:800; font-size:1.3rem; border:3px solid #fff;
  box-shadow:0 4px 12px rgba(17,24,39,.15); background:linear-gradient(135deg,#2c7be5,#24479a);
}
.home-avatar img{ width:100%; height:100%; object-fit:cover; }
.home-member h3{ margin:0; font-size:.96rem; font-weight:800; }
.home-role{ font-size:.7rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--primary); }
.home-member p{ margin:0; font-size:.82rem; color:var(--muted); line-height:1.4; }
.home-member-links{ margin-top:auto; padding-top:6px; display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; }
.home-member-links a{
  font-size:.78rem; font-weight:700; text-decoration:none; padding:5px 10px; border-radius:999px;
}
.home-member-links a.wa{ background:#dcfce7; color:#047857; }
.home-member-links a.mail{
  display:inline-flex; align-items:flex-start; gap:5px; max-width:100%;
  padding:0; border-radius:0; background:none; color:var(--primary);
  font-size:.76rem; font-weight:600; line-height:1.35; text-align:left;
}
.home-member-links a.mail svg{ width:14px; height:14px; flex-shrink:0; margin-top:1px; }
.home-member-links a.mail span{ white-space:nowrap; }
.home-member-links a.mail:hover span{ text-decoration:underline; }
.home-member-links a:hover{ filter:brightness(.96); }
@media (max-width:560px){
  .home-team{ grid-template-columns:1fr; }
  .home-member{
    display:grid; grid-template-columns:64px minmax(0,1fr); column-gap:14px; row-gap:2px;
    align-items:start; text-align:left; padding:16px;
  }
  .home-member .home-avatar{ grid-row:1 / span 4; width:64px; height:64px; font-size:1.15rem; }
  /* Pie de la tarjeta a todo el ancho: el correo entra completo en una línea */
  .home-member-links{
    grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:8px 12px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(17,24,39,.08);
  }
}

/* ===== Preguntas frecuentes ===== */
.home-faq{ overflow:hidden; }
.home-faq details{ border-top:1px solid rgba(17,24,39,.09); }
.home-faq details:first-child{ border-top:0; }
.home-faq summary{ list-style:none; cursor:pointer; padding:15px 18px; font-weight:700; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.home-faq summary::-webkit-details-marker{ display:none; }
.home-faq summary::after{ content:"+"; font-size:1.3rem; line-height:1; color:var(--primary); transition:transform .2s ease; }
.home-faq details[open] summary::after{ transform:rotate(45deg); }
.home-faq details p{ margin:0; padding:0 18px 16px; font-size:.9rem; color:var(--muted); line-height:1.5; }

/* ===== Contacto ===== */
.home-contact{ overflow:hidden; display:flex; flex-direction:column; }
.home-contact-row{ display:flex; align-items:center; gap:14px; padding:14px 18px; border-top:1px solid rgba(17,24,39,.09); text-decoration:none; color:var(--text); }
.home-contact-row:first-child{ border-top:0; }
.home-contact-row div{ flex:1; min-width:0; }
a.home-contact-row:hover{ background:rgba(44,123,229,.04); }
.home-contact-icon{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; }
.home-contact-icon svg{ width:20px; height:20px; }
.home-contact-icon.whatsapp{ background:#dcfce7; color:#15803d; }
.home-contact-icon.instagram{ background:#fce7f3; color:#be185d; }
.home-contact-icon.facebook{ background:#dbeafe; color:#1d4ed8; }
.home-contact-icon.tiktok{ background:#111827; color:#fff; }
.home-contact-icon.email{ background:#f3f4f6; color:#374151; }
.home-contact-icon.oficina{ background:#fef3c7; color:#b45309; }
.home-contact-go{ color:#9ca3af; flex-shrink:0; display:grid; }
.home-contact-go svg{ width:18px; height:18px; }
.home-contact-row small{ display:block; color:var(--muted); font-size:.78rem; font-weight:600; }
.home-contact-row b{ font-size:.95rem; overflow-wrap:anywhere; }
.home-hours{ margin:0; padding:14px 18px; border-top:1px solid rgba(17,24,39,.09); display:grid; grid-template-columns:auto 1fr; gap:4px 16px; font-size:.88rem; }
.home-hours dt{ color:var(--muted); }
.home-hours dd{ margin:0; font-weight:700; font-variant-numeric:tabular-nums; }

/* ===== WhatsApp flotante ===== */
.home-wa-fab{
  position:fixed; right:16px; bottom:calc(16px + var(--safe-bottom)); z-index:30;
  width:56px; height:56px; border-radius:50%; background:#25d366; color:#fff;
  display:grid; place-items:center; box-shadow:0 10px 24px rgba(37,211,102,.4);
}
.home-wa-fab svg{ width:28px; height:28px; }
.home-wa-fab[hidden]{ display:none; }
body:not([data-view="view-home"]) .home-wa-fab{ display:none; }

/* Logo del topbar: lleva al inicio */
.topbar-logo-wrap{ cursor:pointer; }

@media (prefers-reduced-motion:reduce){
  .home-tile, .home-faq summary::after{ transition:none; }
}
#view-home [hidden]{ display:none !important; }
@media (min-width:620px){ .home-hero-photo{ aspect-ratio:21/9; } }

/* Foto de portada cargada desde el panel: reemplaza la ilustración */
.home-hero-photo.has-img{ background-size:cover; background-position:center; }
.home-hero-photo.has-img svg{ display:none; }

/* ===== Avisos ===== */
.home-notice{
  display:flex; gap:12px; padding:14px 16px; border-radius:16px;
  background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a;
}
.home-notice.important{ background:#fffbeb; border-color:#fde68a; color:#78350f; }
.home-notice b{ display:block; }
.home-notice p{ margin:2px 0 0; font-size:.88rem; white-space:pre-line; }

/* ===== Foto del destino en la tarjeta del viaje ===== */
.home-trips .trip-card.has-photo{ padding-top:0; overflow:hidden; }
.home-trip-photo{
  aspect-ratio:16/6; max-width:none; margin:0 -16px 14px; background:#dbeafe center/cover no-repeat;
}

/* Al ir a una sección desde el menú, que no quede tapada por el topbar fijo */
.home-section{ scroll-margin-top:calc(90px + env(safe-area-inset-top, 0px)); }

/* ===== Pie de página ===== */
.home-footer{
  display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center;
  margin-top:6px; padding:22px 0 8px; border-top:1px solid rgba(17,24,39,.09);
  color:var(--muted); font-size:.82rem;
}
.home-footer nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 6px; }
.home-footer nav button{
  border:0; background:none; font:inherit; font-weight:600; color:var(--text);
  padding:6px 8px; border-radius:8px; cursor:pointer;
}
.home-footer nav button:hover{ color:var(--primary); background:#eef4fe; }
.home-footer nav button[hidden]{ display:none; }
.home-footer p{ margin:0; }
