/* ═══════════════════════════════════════════════════════════
   Hotel Asturias · Acceso Festival
   styles.css – versión con mapa Leaflet interactivo
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --wine-dark: #4a0a19;
  --wine: #6b1028;
  --wine-mid: #8b1a35;
  --wine-light: #a82040;
  --gold: #c9a96e;
  --gold-light: #e8c98e;
  --gold-subtle: #f0e6d0;
  --cream: #fdf8f2;
  --gray-soft: #f4f0ea;
  --gray-mid: #d4cfc8;
  --gray-text: #5a5550;
  --text-dark: #1a1210;
  --green-route: #2d7a3e;
  --blue-route: #1a5fa8;
  --red-closed: #c0392b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(74, 10, 25, 0.08);
  --shadow-md: 0 4px 20px rgba(74, 10, 25, 0.14);
  --shadow-lg: 0 8px 40px rgba(74, 10, 25, 0.20);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(107, 16, 40, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
}

.page-wrapper {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 0 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(160deg, var(--wine-dark) 0%, var(--wine) 40%, var(--wine-mid) 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.site-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.08);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.header-ornament {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.25rem;
}

.hotel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.badge-star {
  font-size: 0.6rem;
  color: var(--gold);
}

.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.title-hotel {
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: #fff;
  display: block;
  margin-top: 0.1rem;
}

.site-subtitle {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.site-subtitle strong {
  font-weight: 500;
  color: var(--gold-light);
}

.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1.4rem;
  text-align: left;
  backdrop-filter: blur(4px);
}

.alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.05rem;
}

.alert-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════ */
.tabs-section {
  padding: 1.5rem 1.25rem 0.5rem;
}

.tabs-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.75rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: var(--gray-soft);
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-mid);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  color: var(--gray-text);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.tab:hover:not(.tab--active) {
  background: rgba(107, 16, 40, 0.06);
  color: var(--wine);
}

.tab--active {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 16, 40, 0.35);
}

.tab-icon {
  font-size: 1.15rem;
  display: block;
}

.tab-text {
  display: block;
  line-height: 1.35;
}

.tab small {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════
   MAPA LEAFLET
═══════════════════════════════════════════════════════ */
.route-content {
  padding: 1rem 1.25rem 0;
}

.map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-mid);
  background: #e8e0d8;
}

#map {
  height: 360px;
  width: 100%;
  display: block;
}

/* ── Leyenda ── */
.map-legend {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(253, 248, 242, 0.97);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  pointer-events: none;
  min-width: 160px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

/* Línea de color para la ruta activa */
.legend-line {
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  transition: background var(--transition);
}

/* Línea roja discontinua para calles cortadas */
.legend-line--dashed {
  background: transparent;
  border-top: 4px dashed var(--red-closed);
  height: 0;
  border-radius: 0;
}

.legend-dot--wine {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--wine);
  flex-shrink: 0;
}

.legend-text {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ── Marcadores personalizados Leaflet ── */

/* Marcador de hotel */
.hotel-pin {
  background: var(--wine, #6b1028);
  color: white;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(107, 16, 40, 0.55);
  border: 3px solid white !important;
}

/* Círculo de número de giro */
.turn-marker {
  background: #fff;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

/* Ícono de calle cortada */
.closed-tag {
  background: var(--red-closed, #c0392b);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Popup Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: none !important;
}

.leaflet-popup-content {
  margin: 0.75rem 1rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  color: var(--text-dark) !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

/* Tooltip de giro */
.leaflet-tooltip {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--gray-mid) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ═══════════════════════════════════════════════════════
   INDICACIONES PASO A PASO
═══════════════════════════════════════════════════════ */
.steps-wrapper {
  margin-top: 1.1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeSlideIn 0.35s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps-wrapper.is-animating {
  animation: fadeSlideIn 0.35s ease both;
}

.steps-header {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.steps-header-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.steps-header-text {
  flex: 1;
}

.steps-header-route {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.steps-header-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.steps-body {
  padding: 1rem 1.25rem 1.25rem;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-soft);
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
  box-shadow: 0 2px 8px rgba(107, 16, 40, 0.3);
}

.step-item--hotel .step-number {
  background: linear-gradient(135deg, var(--gold), #a07838);
  color: var(--wine-dark);
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
  flex: 1;
}

.step-text strong {
  font-weight: 600;
  color: var(--wine);
}

.step-item--hotel .step-text strong {
  color: var(--text-dark);
}

.steps-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--gold-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.7rem 0.9rem;
  margin-top: 0.9rem;
}

.steps-note-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--wine-mid);
}

.steps-note-text {
  font-size: 0.77rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.closed-streets-note {
  background: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.closed-icon {
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--red-closed);
}

.closed-text {
  font-size: 0.79rem;
  color: #7a2020;
  line-height: 1.5;
}

.closed-text strong {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   CALL TO ACTIONS
═══════════════════════════════════════════════════════ */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.25rem 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(107, 16, 40, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 16, 40, 0.5);
}

.btn--secondary {
  background: #fff;
  color: var(--wine);
  border: 2px solid var(--wine);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--wine);
  color: #fff;
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #128c4a, #25d366);
  color: #fff;
  box-shadow: 0 4px 20px rgba(18, 140, 74, 0.3);
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(18, 140, 74, 0.45);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-mid), transparent);
  margin: 0 auto 1rem;
}

.footer-hotel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine);
  letter-spacing: 0.04em;
}

.footer-sub {
  font-size: 0.74rem;
  color: var(--gray-text);
  margin-top: 0.2rem;
}

.footer-note {
  font-size: 0.69rem;
  color: var(--gray-mid);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (min-width: 580px) {
  .page-wrapper {
    padding: 1.5rem 0 3rem;
  }

  .site-header {
    border-radius: var(--radius-xl);
  }

  #map {
    height: 420px;
  }

  .cta-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  #btn-whatsapp {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}