/* =========================
   VARIABLES
========================= */

:root {
  /* Marca */
  --gv-primary: #1f7ae0;        /* azul GeniaViajera */
  --gv-primary-dark: #155fb3;   /* hover / activo */
  --gv-accent: #2ec4b6;         /* acento viaje */

  /* Neutros */
  --gv-bg-soft: #f7f9fc;
  --gv-border: #e5e9f0;
  --gv-text: #1f2937;
  --gv-text-muted: #6b7280;

  /* Estados (futuro) */
  --gv-success: #16a34a;
  --gv-warning: #f59e0b;
  --gv-danger:  #dc2626;
}

/* =========================
   BASE
========================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--gv-bg-soft);
  color: var(--gv-text);
}

.gv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================
   HEADER
========================= */

.gv-listado-header {
  margin-bottom: 24px;
}

.gv-h1 {
  font-size: 20px;
  font-weight: 700;
}

.gv-intro {
  margin-top: 8px;
  color: var(--gv-text-muted);
}

/* =========================
   SECTIONS
========================= */

.gv-section {
  margin-bottom: 24px;
}

.gv-section__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.gv-section--top {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
}

/* =========================
   GRID
========================= */

.gv-grid {
  display: grid;
  gap: 16px;
}

.gv-grid--top {
  grid-template-columns: 1fr;
}

.gv-grid--default,
.gv-grid--precio {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gv-grid--top {
    grid-template-columns: repeat(3, 1fr);
  }

  .gv-grid--default,
  .gv-grid--precio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gv-grid--default,
  .gv-grid--precio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   CARD
========================= */

.gv-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gv-border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.gv-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gv-card__cta {
  color: var(--gv-accent);
}

.gv-card:hover .gv-card__cta {
  color: var(--gv-primary-dark);
}

/* IMAGE */

.gv-card__image {
  position: relative;
  background: #ddd;
  width: 100%;
  aspect-ratio: 4 / 3; /* clave */
  overflow: hidden;
}

.gv-card__image--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e9f0, #cbd5e1);
}

.gv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGES */

.gv-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gv-badge {
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
}

/* PRINCIPAL */
.gv-badge--main {
  font-size: 12px;
  padding: 6px 10px;
  font-weight: 600;
}

/* SECUNDARIO */
.gv-badge--secondary {
  font-size: 11px;
  opacity: 0.85;
}

.gv-badge--top-recomendado { background: var(--gv-accent); }
.gv-badge--mejor-calidad-precio { background: var(--gv-accent); }
.gv-badge--recomendado { background: var(--gv-primary); }
.gv-badge--buena-opcion { background: var(--gv-primary-dark); }
.gv-badge--mejor-precio { background: var(--gv-success); }
.gv-badge--precio-alto { background: var(--gv-danger); }
.gv-badge--duracion-ideal { background: var(--gv-primary); }
.gv-badge--salida-proxima { background: var(--gv-primary-dark); }
.gv-badge--precio-sospechoso { background: var(--gv-warning); }
.gv-badge--titulo-poco-descriptivo { background: var(--gv-warning); }

/* CONTENT */

.gv-card__content {
  padding: 12px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.gv-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.gv-card__meta {
  font-size: 13px;
  color: var(--gv-text-muted);
  margin-bottom: 10px;
}

/* BOTTOM */

.gv-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gv-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gv-primary);
}

.gv-card__cta {
  font-size: 13px;
  color: var(--gv-primary);
  font-weight: 600;
}

.gv-card:hover .gv-card__cta {
  text-decoration: underline;
}

/* =========================
   TOP LAYOUT
========================= */

/* MOBILE FIRST */
.gv-top-main .gv-card__image {
  aspect-ratio: 16 / 9;
}

.gv-top-layout {
  display: grid;
  gap: 16px;
}

.gv-top-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gv-top-secondary .gv-card {
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .gv-top-layout {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
  }

  .gv-top-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
  }
}

.gv-top-main .gv-card {
  border: 2px solid var(--gv-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.gv-top-main .gv-card__content {
  padding: 16px;
}

.gv-top-main .gv-card__title {
  font-size: 20px;
}

.gv-top-main .gv-card__price {
  font-size: 18px;
}

.gv-top-main {
  position: relative;
}

.gv-top-main::before {
  content: "DESTACADO";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gv-accent);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* =========================
   FILTERS BAR
========================= */

.gv-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.gv-filter-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--gv-border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.gv-filter-chip.active {
  background: var(--gv-primary);
  color: #fff;
  border-color: var(--gv-primary);
}

/* =========================
   FILTER PANEL
========================= */

/* Boton filtro */
.gv-filter-fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--gv-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  cursor: pointer;
}

/* PANEL BASE */
.gv-filter-panel {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.gv-filter-panel.active {
  display: block;
}

/* OVERLAY */
.gv-filter-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* HEADER fijo */
.gv-filter-panel__header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 16px;
  border-bottom: 1px solid var(--gv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

/* BOTÓN X bien colocado */
#gv-close-filter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gv-bg-soft);
  font-size: 18px;
  cursor: pointer;
}


/* CONTENT */
.gv-filter-panel__content {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding: 16px;
}

/* GROUPS */
.gv-filter-group {
  margin-bottom: 20px;
}

.gv-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gv-filter-options button {
  border: 1px solid var(--gv-border);
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.gv-filter-options button.active {
  background: var(--gv-primary);
  color: #fff;
  border-color: var(--gv-primary);
}

/* ACTIONS */
.gv-filter-actions {
  margin-top: 20px;
}

#gv-clear-filters {
  border: 1px solid var(--gv-border);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gv-bg-soft);
  color: var(--gv-primary-dark);
  font-size: 13px;
}

/* ANIMACIÓN */
@keyframes gv-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* BREADCRUMBS */
.gv-breadcrumbs {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--gv-text-muted);
}

.gv-breadcrumbs a {
  color: var(--gv-primary);
  text-decoration: none;
}

.gv-breadcrumbs__sep {
  margin: 0 6px;
}

.gv-seo-block {
  margin: 16px 0;
  padding: 0 16px 16px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gv-border);
}

.gv-seo-block__content {
  margin-bottom: 16px;
  color: var(--gv-text-muted);
  line-height: 1.6;
}

/* LINKS COMO CARDS */
.gv-seo-links__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gv-seo-link-card {
  display: block;
  padding: 10px 12px;
  background: var(--gv-bg-soft);
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  color: var(--gv-text);
  border: 1px solid var(--gv-border);
  transition: all 0.2s ease;
}

.gv-seo-link-card:hover {
  border-color: var(--gv-primary);
  background: #fff;
  transform: translateY(-2px);
}

.gv-related {
  margin-top: 32px;
}

.gv-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gv-related__item {
  display: block;
  padding: 10px 12px;
  background: var(--gv-bg-soft);
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  color: var(--gv-text);
  border: 1px solid var(--gv-border);
  transition: all 0.2s ease;
}

.gv-related__item:hover {
  border-color: var(--gv-primary);
  background: #fff;
  transform: translateY(-2px);
}

/*==============
HOME
===============*/
.gv-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
}

/* Contenedo bg */
.gv-hero__bg {
  position: absolute;
  inset: 0;
}

/* Imagen */
.gv-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay */
.gv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.15),
  rgba(0,0,0,0.35)
);
}

/* Contenido */
.gv-hero__content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 720px;

  background: transparent;
  backdrop-filter: none;
  border-radius: 20px;
  padding: 0;
}

.gv-hero__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.gv-hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.gv-hero__trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.9;
}

.gv-hero__trust span {
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* TARJETA */
.gv-hero__box {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .gv-hero {
    height: auto;
    padding: 80px 0 40px;
  }

  .gv-hero__content {
    padding: 16px;
  }

  .gv-hero__title {
    font-size: 2.8rem;
  }

  .gv-hero__subtitle {
    font-size: 1.2rem;
  }
}

.gv-destinos-grupo {
  margin-bottom: 1.5rem;
}

.gv-destinos-grupo__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gv-destinos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  padding: 0;
}

.gv-destinos-lista a {
  text-decoration: none;
  color: var(--gv-primary);
  font-size: 0.95rem;
}

.gv-tipos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gv-tipo-card {
  display: block;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--gv-text);
  font-weight: 500;
}

.gv-duracion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gv-duracion-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--gv-text);
}


.gv-duracion-card__label {
  font-weight: 600;
}

.gv-seo-intro {
  margin-bottom: 24px;
  color: var(--gv-text-muted);
}

.gv-seo-grid {
  display: grid;
  gap: 16px;
}

.gv-seo-block {
  padding: 16px;
  border: 1px solid var(--gv-border);
  border-radius: 12px;
  background: white;
}

.gv-home-como {
  background: var(--gv-bg-soft);
}

.gv-como-grid {
  display: grid;
  gap: 16px;
}

.gv-como-item {
  background: white;
  border: 1px solid var(--gv-border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

/*.gv-como-icon {
  font-size: 24px;
  margin-bottom: 8px;
}*/

.gv-como-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.gv-como-item p {
  font-size: 14px;
  color: var(--gv-text-muted);
}

/* Desktop */
@media (min-width: 768px) {
  .gv-como-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gv-como-cta {
  margin-top: 24px;
  text-align: center;
}

.gv-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.gv-btn-primary {
  background: var(--gv-accent);
  color: white;
}

.gv-btn-primary:hover {
  background: var(--gv-primary-dark);
}

.gv-home-destinos,
.gv-home-tipos,
.gv-home-duracion,
.gv-home-destacados,
.gv-home-como,
.gv-home-seo {
  padding: 56px 0;
}

.gv-home-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.gv-tipo-card,
.gv-duracion-card {
  background: white;
  border: 1px solid var(--gv-border);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.gv-tipo-card:hover,
.gv-duracion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--gv-primary);
}

.gv-card-destacados {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--gv-border);
  text-decoration: none;
  color: var(--gv-text);
  transition: all 0.25s ease;
}

.gv-card-destacados:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.gv-card__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.gv-card__price {
  color: var(--gv-primary);
  font-weight: 600;
}

.gv-home-destinos-lista a {
  display: inline-block;
  padding: 6px 10px;
  background: var(--gv-bg-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gv-text);
  transition: all 0.2s ease;
}

.gv-home-destinos-lista a:hover {
  background: var(--gv-primary);
  color: white;
}

.gv-como-item {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.gv-como-item:hover {
  transform: translateY(-3px);
}

.gv-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
  );
}

.gv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.gv-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding-left: 1em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.gv-header__brand img {
  height: 28px;
}

.gv-header__brand span {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =========================
   SEARCH PRO
========================= */

.gv-search {
  margin-top: 20px;
}

/* CONTENEDOR */
.gv-search__fields {
  background: white;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* CAMPO */
.gv-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.gv-field::after {
  content: "▾";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 12px;
  color: var(--gv-text-muted);
  pointer-events: none;
}

.gv-field label {
  color: var(--gv-text-muted);
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* SELECT */
.gv-field select {
  border: none;
  background: #f9fafb;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  appearance: none;
  width: 100%;
  font-weight: 500;
  appearance: none;
}

/* BOTÓN */
.gv-search__btn {
  margin-top: 6px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--gv-accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.gv-search__btn:hover {
  opacity: 0.9;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 768px) {

  .gv-search__fields {
    flex-direction: row;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    gap: 0;
  }

  .gv-field {
    flex: 1;
    padding: 0 16px;
    position: relative;
  }

  .gv-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gv-border);
  }

  .gv-field select {
    background: transparent;
    padding: 12px 0;
  }

  .gv-search__btn {
    width: auto;
    margin: 0 6px 0 0;
    padding: 12px 20px;
    white-space: nowrap;
  }

}