/* ════════════════════════════════════════════════════════════════
   ITAKA TOURS — VENECIA
   css/style.css — Estilos compartidos para todas las páginas

   Índice:
   1.  Variables
   2.  Reset & base
   3.  Utilidades
   4.  Botones
   5.  Header & Navegación
   6.  Menú móvil
   7.  Hero — Página de inicio (pantalla completa)
   8.  Hero — Páginas interiores
   9.  Secciones base
   10. Tarjetas de tours
   11. Tarjetas de restaurantes y categorías
   12. Formularios
   13. Rating de estrellas (feedback)
   13b. Acordeón de categorías (restaurantes.html)
   14. Footer
   15. Animaciones y scroll reveal
   16. Responsive
════════════════════════════════════════════════════════════════ */


/* ════════════════════════════
   1. VARIABLES
════════════════════════════ */
:root {
  /* Paleta principal */
  --gold:        #C9A84C;
  --gold-light:  #E2C87A;
  --gold-dark:   #A07830;
  --black:       #0A0A0A;
  --dark:        #111111;
  --dark-2:      #1A1A1A;
  --dark-3:      #252525;
  --white:       #FFFFFF;
  --off-white:   #F5F0E8;
  --grey:        #888888;
  --grey-light:  #BBBBBB;

  /* Bordes y sombras */
  --border:      rgba(201, 168, 76, 0.22);
  --border-dim:  rgba(255, 255, 255, 0.07);
  --shadow:      0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Tipografía */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;

  /* Espaciado de secciones */
  --section-padding: 6rem 0;

  /* Otros */
  --radius:     5px;
  --transition: 0.28s ease;
  --header-h:   72px;
}


/* ════════════════════════════
   2. RESET & BASE
════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
}


/* ════════════════════════════
   3. UTILIDADES
════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* Etiqueta pequeña dorada sobre el título de sección */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* Título principal de sección */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--gold);
  font-style: italic;
}

/* Subtítulo de sección */
.section-subtitle {
  font-size: 1rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.75;
}

/* Línea decorativa dorada bajo el título */
.gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem 0 2.5rem;
}

/* Separador horizontal */
.divider {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: 3rem 0;
}


/* ════════════════════════════
   4. BOTONES
════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  flex-shrink: 0;
}

/* Dorado sólido — acción principal */
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* Contorno dorado — acción secundaria */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* Fantasma blanco */
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Mapa — botón discreto para enlaces de Google Maps */
.btn-map {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--border-dim);
  font-size: 0.72rem;
  padding: 0.55rem 1.1rem;
}
.btn-map:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Grande — para los CTAs del hero del index */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
}


/* ════════════════════════════
   5. HEADER & NAVEGACIÓN
════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
}

#header.scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* El PNG tiene fondo blanco — brightness(0) invert(1) lo convierte en
     silueta blanca, que encaja con el diseño dark-theme del sitio.
     Si en el futuro se reemplaza por un PNG con fondo transparente,
     quitar este filter. */
  filter: brightness(0) invert(1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Navegación desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-desktop a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop .btn {
  padding: 0.52rem 1.2rem;
  margin-left: 0.5rem;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ════════════════════════════
   6. MENÚ MÓVIL
════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.85rem 2rem;
  transition: color var(--transition);
  text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
}

.mobile-nav-footer {
  position: absolute;
  bottom: 2.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ════════════════════════════
   7. HERO — PÁGINA DE INICIO
   (pantalla completa con 3 CTAs)
════════════════════════════ */
.hero-full {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Reservar espacio para el header fijo para que el contenido no quede detrás */
  padding-top: var(--header-h);
}

/* Imagen de fondo — se setea con style="background-image: url(...)" en cada HTML */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
  will-change: transform;
}

.hero-full.loaded .hero-bg {
  transform: scale(1);
}

/* Degradado sobre la imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4)  0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title em {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

/* Grid de 3 tiles CTA grandes */
.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.cta-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.75rem 1.25rem;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.cta-tile:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.cta-tile-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: border-color var(--transition), background var(--transition);
}

.cta-tile-icon svg {
  width: 20px;
}

.cta-tile:hover .cta-tile-icon {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
}

.cta-tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.2s ease infinite;
}

.hero-scroll svg {
  width: 18px;
}


/* ════════════════════════════
   8. HERO — PÁGINAS INTERIORES
   (altura media con título)
════════════════════════════ */
.hero-page {
  position: relative;
  height: clamp(340px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* padding-top reserva el header fijo; padding-bottom da aire al texto */
  padding-top: var(--header-h);
  padding-bottom: 4rem;
}

.hero-page .hero-bg {
  transform: scale(1.04);
}

.hero-page .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3)  0%,
    rgba(10, 10, 10, 0.65) 60%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

.hero-page-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-page-label {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-page-title span {
  color: var(--gold);
  font-style: italic;
}

.hero-page-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

/* Barra de línea sobre el contenido del hero interior */
.hero-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
  z-index: 3;
}


/* ════════════════════════════
   9. SECCIONES BASE
════════════════════════════ */
.section {
  padding: var(--section-padding);
  position: relative;
}

/* Línea dorada superior para separar secciones */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.18;
}

.section-bg-dark   { background: var(--dark); }
.section-bg-black  { background: var(--black); }
.section-bg-dark2  { background: var(--dark-2); }

.section-header {
  margin-bottom: 3.5rem;
}


/* ════════════════════════════
   10. TARJETAS DE TOURS
════════════════════════════ */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tour-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tour-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.12);
}

/* Contenedor de imagen */
.tour-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark-3);
}

.tour-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tour-card:hover .tour-card-img img {
  transform: scale(1.08);
}

/* Badge de precio/gratis sobre la imagen */
.tour-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
}

.tour-badge.free {
  background: #2E7D32;
  color: var(--white);
}

/* Cuerpo de la tarjeta */
.tour-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.tour-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.tour-meta svg {
  width: 12px;
  flex-shrink: 0;
}

.tour-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.tour-desc {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.68;
  flex: 1;
  margin-bottom: 1.4rem;
}

/* Pie de la tarjeta */
.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-dim);
}

.tour-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  white-space: nowrap;
}

.tour-price small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--grey);
  display: block;
  letter-spacing: 0.08em;
  font-weight: 300;
}


/* ════════════════════════════
   11. TARJETAS DE RESTAURANTES
   Y CATEGORÍAS (bares, heladerías, etc.)
════════════════════════════ */

/* Grid de categorías — título de sección por categoría */
.category-section {
  margin-bottom: 4.5rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-dim);
}

.category-title svg {
  width: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Grid de tarjetas */
.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Tarjeta individual de lugar (restaurante, bar, heladería...) */
.place-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Acento lateral dorado en hover */
.place-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
  border-radius: 0 0 0 6px;
}

.place-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.4);
}

.place-card:hover::before {
  transform: scaleY(1);
}

/* Número decorativo de fondo */
.place-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.09);
  line-height: 1;
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  pointer-events: none;
}

.place-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  padding-right: 2.5rem; /* espacio para el número decorativo */
}

/* Etiqueta de tipo (opcional: "Pasta · Pizza", "Cócteles", etc.) */
.place-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.place-desc {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.65;
  flex: 1;
}

/* Destacado ("Tip" o recomendación especial) */
.place-tip {
  font-size: 0.8rem;
  color: var(--off-white);
  font-style: italic;
  background: rgba(201, 168, 76, 0.06);
  border-left: 2px solid var(--gold-dark);
  padding: 0.4rem 0.7rem;
  border-radius: 0 3px 3px 0;
}

.place-card .btn-map {
  margin-top: 0.6rem;
  align-self: flex-start;
}


/* ════════════════════════════
   12. FORMULARIOS
════════════════════════════ */
.form-wrapper {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.82rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Layout de dos columnas para páginas de formulario */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.form-info p {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.78;
  margin-bottom: 2rem;
}

/* Ítem de info de contacto */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.info-item-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.info-item-icon svg { width: 15px; }

.info-item-text {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.5;
}

.info-item-text strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}


/* ════════════════════════════
   12b. MENSAJE DE ÉXITO (formularios)
════════════════════════════ */
.form-success {
  display: none; /* oculto por defecto, JS lo muestra con display:flex */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
  animation: fadeUp 0.5s ease forwards;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.form-success-icon svg { width: 30px; }

.form-success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
}

.form-success-text {
  font-size: 0.95rem;
  color: var(--grey);
  max-width: 360px;
  line-height: 1.7;
}


/* ════════════════════════════
   13. RATING DE ESTRELLAS
   (feedback.html)
════════════════════════════ */
.star-rating-group {
  margin-bottom: 1.2rem;
}

.star-rating-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-light);
  display: block;
  margin-bottom: 0.75rem;
}

.star-rating {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.star-rating .star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: var(--gold-light);
  transform: scale(1.15);
}

.star-rating .star.selected {
  color: var(--gold);
}

.star-rating .star:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.star-count-label {
  font-size: 0.8rem;
  color: var(--grey);
  margin-left: 0.5rem;
  min-width: 80px;
  font-style: italic;
}


/* ════════════════════════════
   13b. ACORDEÓN DE CATEGORÍAS
════════════════════════════ */

/* Contenedor principal del acordeón */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Ítem de categoría */
.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  transition: border-color 0.3s;
}

.accordion-item.open {
  border-color: var(--border);
}

/* Cabecera clicable */
.accordion-header {
  position: relative;
  width: 100%;
  height: 110px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  display: block;
  text-align: left;
}

/* Imagen de fondo difuminada y oscurecida */
.accordion-bg {
  position: absolute;
  inset: -6px;                     /* ligero desbordamiento para ocultar blur edge */
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transition: filter 0.4s ease;
  z-index: 0;
}

/* Overlay semitransparente sobre la imagen — ajustar opacidad aquí */
.accordion-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.4s ease;
}

.accordion-item.open .accordion-header::after,
.accordion-header:hover::after {
  background: rgba(0, 0, 0, 0.22);
}

/* Contenido de la cabecera (sobre el fondo) */
.accordion-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.75rem;
  height: 100%;
}

/* Icono circular dorado */
.accordion-cat-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background 0.3s;
}

.accordion-cat-icon svg {
  width: 22px;
  height: 22px;
}

.accordion-item.open .accordion-cat-icon {
  background: rgba(201, 168, 76, 0.25);
}

/* Texto de la categoría */
.accordion-cat-info {
  flex: 1;
  min-width: 0;
}

.accordion-cat-count {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.accordion-cat-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flecha chevron — rota cuando está abierto */
.accordion-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  transition: transform 0.35s ease;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

/* ── Cuerpo animado con grid-template-rows ── */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  background: var(--dark-2);
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}

/* Necesario para que grid-template-rows 0fr funcione */
.accordion-body-inner {
  overflow: hidden;
}

/* Contenido interno con padding y separador dorado */
.accordion-body-content {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}


/* ════════════════════════════
   14. FOOTER
════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.87rem;
  color: var(--grey);
  margin-top: 1rem;
  max-width: 290px;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  font-size: 0.87rem;
  color: var(--grey);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-official-btn {
  margin-top: 1.25rem;
  align-self: flex-start;
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-dim);
}

.footer-bottom p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.22);
}

.footer-bottom a {
  color: var(--gold);
  transition: opacity var(--transition);
}

.footer-bottom a:hover {
  opacity: 0.75;
}


/* ════════════════════════════
   15. ANIMACIONES
════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Scroll reveal — se activa con JS cuando el elemento entra en viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para grids */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }


/* ════════════════════════════
   16. RESPONSIVE
════════════════════════════ */

/* Tablet — hasta 1100px */
@media (max-width: 1100px) {
  .tours-grid  { grid-template-columns: repeat(2, 1fr); }
  /* places-grid pasa a 3 columnas (no 2) para evitar el salto brusco de 4→2 */
  .places-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet pequeña — hasta 900px */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }

  /* places-grid baja a 2 columnas en tablet pequeña */
  .places-grid { grid-template-columns: repeat(2, 1fr); }

  .form-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Móvil — hasta 640px */
@media (max-width: 640px) {
  :root { --section-padding: 4rem 0; }

  /* Hero index: altura automática para que el contenido nunca se corte.
     min-height mantiene el aspecto fullscreen si el contenido es corto. */
  .hero-full {
    height: auto;
    min-height: 100svh;
    padding-bottom: 3rem;
  }

  /* Menos margen vertical entre elementos del hero para que quepan mejor */
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-sub     { margin-bottom: 2rem; }

  /* Tiles en horizontal: icono + texto en la misma fila.
     Ahorra ~120px de altura respecto a la versión vertical apilada. */
  .hero-cta-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta-tile {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  /* Ocultar indicador de scroll en móvil */
  .hero-scroll { display: none; }

  /* Hero páginas interiores */
  .hero-page { padding-bottom: 2.5rem; }

  /* Grids de contenido */
  .tours-grid  { grid-template-columns: 1fr; }
  .places-grid { grid-template-columns: 1fr; }

  /* Formularios */
  .form-row     { grid-template-columns: 1fr; }
  .form-wrapper { padding: 1.75rem 1.4rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Acordeón: cabecera más compacta en móvil */
  .accordion-header { height: 88px; }
  .accordion-cat-title { font-size: 1.15rem; }
  .accordion-cat-count { font-size: 0.7rem; }
  .accordion-cat-icon {
    width: 38px;
    height: 38px;
  }
  .accordion-cat-icon svg { width: 18px; height: 18px; }
  .accordion-body-content { padding: 1.5rem 0 2rem; }
}
