/* =============================================================================
   HOME.CSS — Página de inicio
   ============================================================================= */

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Hero Slider (Ken Burns) ─────────────────────────────────────────────────── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide.zoom {
  transform: scale(1.12);
  transition: opacity 1.5s ease-in-out, transform 7s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-12) 0;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  font-family: var(--fuente-secundaria);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 20px;
}

/* ── Buscador Hero ──────────────────────────────────────────────────────────── */
.hero-search {
  background: rgba(0, 0, 0, .7);
  border-radius: 16px;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
  max-width: 1080px;
  margin: 0 auto;
}
.hero-search .form-group { margin-bottom: 0; }
.hero-search .form-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--gray-500);
  margin-bottom: 5px;
}
.hero-submit {
  height: 42px;
  white-space: nowrap;
  align-self: end;
}

/* ── Secciones ───────────────────────────────────────────────────────────────── */
.home-section { padding: 2rem 0; }
.home-section + .home-section { padding-top: 2rem; }
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-7);
  gap: var(--space-4);
}
.home-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--fuente-secundaria);
}
.home-section-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-primario);
  text-decoration: none;
  white-space: nowrap;
}
.home-section-link:hover { text-decoration: underline; }

/* ── Tabs destacados ─────────────────────────────────────────────────────────── */
.dest-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--gray-100);
  flex-wrap: wrap;
}
.dest-tab {
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.dest-tab:hover { color: var(--color-primario); }
.dest-tab.active {
  color: var(--color-primario);
  border-bottom-color: var(--color-primario);
}
.dest-tab-panel { display: none; }
.dest-tab-panel.active { display: block; }

/* ── Destinos grid ───────────────────────────────────────────────────────────── */
.destinos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.destino-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.destino-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.destino-card:hover img { transform: scale(1.06); }
.destino-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
}
.destino-card-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--fuente-secundaria);
  line-height: 1.3;
}
.destino-card-count {
  color: rgba(255, 255, 255, .72);
  font-size: .875rem;
  margin-top: 3px;
}

/* ── Actividades Carousel ─────────────────────────────────────────────────── */
.actividades-section-wrapper {
  background: #263027;
  padding: var(--space-8, 3rem) 0 5rem 0;
}
.actividades-section-title {
  color: #fff !important;
}
.home-actividades-btn--dark {
  border-color: #fff !important;
  color: #fff !important;
  background: transparent !important;
}
.home-actividades-btn--dark:hover {
  background: #fff !important;
  color: #263027 !important;
}
.actividades-carousel-inner {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}
.actividades-carousel-section { overflow: hidden; }
.actividades-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.actividades-carousel-track {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: none;
}
.actividades-carousel-track.animating {
  transition: transform 0.5s ease;
}
.actividad-carousel-card {
  flex: 0 0 25%;
  min-width: 25%;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.actividad-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.actividad-carousel-card:hover img { transform: scale(1.06); }
.actividad-carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  transition: background .3s ease;
}
.actividad-carousel-card:hover .actividad-carousel-overlay {
  background: rgba(0, 0, 0, 0.6);
}
.actividad-carousel-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--fuente-secundaria);
  line-height: 1.3;
  margin: 0 0 var(--space-3) 0;
}
.actividad-carousel-btn {
  display: inline-block;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.actividad-carousel-card:hover .actividad-carousel-btn {
  background: #fff;
  color: #000;
}

/* ── Banner Manifiesto ───────────────────────────────────────────────────────── */
.actividades-carousel-section {
  padding-bottom: 0 !important;
  margin-bottom: 0;
}
.home-manifiesto {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 200px 0;
}
.home-manifiesto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.home-manifiesto-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.home-manifiesto-title {
  color: #fff;
  font-family: var(--fuente-secundaria);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 var(--space-5) 0;
}
.home-manifiesto-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 var(--space-5) 0;
}
.home-manifiesto-cierre {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-search { grid-template-columns: repeat(2, 1fr); }
  .hero-submit { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hero { min-height: 440px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }
  .hero-submit { grid-column: auto; }
  .home-section { padding: 2rem 0; }
  .destinos-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .home-section-title { font-size: 1.375rem; }
  .actividad-carousel-card { flex: 0 0 50%; min-width: 50%; }
  .home-manifiesto { padding: 80px 0; }
  .home-manifiesto-title { font-size: 1.35rem; }
  .home-manifiesto-desc { font-size: .95rem; }
  .home-manifiesto-cierre { font-size: 1rem; }
}

.home-actividades-btn {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 28px;
  border: 2px solid var(--primary, #1a6);
  color: var(--primary, #1a6);
  background: #fff;
  transition: background .2s, color .2s;
}
.home-actividades-btn:hover {
  background: var(--primary, #1a6);
  color: #fff;
  text-decoration: none;
}
