/* ==========================================================================
   ESTILOS DE LA WEB ARMADA INVENCIBLE 1588
   Inspiración: Cartografía renacentista, mar atlántico profundo y oro imperial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --color-abyss: #070F1E;
  --color-navy: #0D1B2A;
  --color-navy-card: #152238;
  --color-navy-light: #1E2D4A;
  --color-gold: #D4AF37;
  --color-gold-hover: #F3CA40;
  --color-gold-dark: #A47E1B;
  --color-emerald: #1B4D3E;
  --color-emerald-light: #2D6A4F;
  --color-parchment: #F8F5EC;
  --color-parchment-subtle: #EFE8D8;
  --color-crimson: #9E2A2B;
}

/* Tipografías */
.font-cinzel {
  font-family: 'Cinzel', Georgia, serif;
}

.font-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-abyss);
  color: #E2E8F0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Efectos de fondo sutiles */
.bg-parchment-pattern {
  background-color: #F8F5EC;
  background-image: radial-gradient(#D4AF37 0.75px, transparent 0.75px), radial-gradient(#1B4D3E 0.75px, #F8F5EC 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.7) 0%, rgba(7, 15, 30, 0.85) 60%, rgba(7, 15, 30, 1) 100%),
              radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, rgba(7, 15, 30, 0) 70%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF0C1 0%, #D4AF37 50%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.gold-btn {
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 50%, #B88E20 100%);
  color: #070F1E;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.gold-btn:hover {
  background: linear-gradient(135deg, #F5D77F 0%, #E5C158 50%, #C99D26 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

/* Marcadores personalizados del Mapa Leaflet */
.leaflet-container {
  background-color: #0d1b2a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.custom-map-icon {
  background: none;
  border: none;
}

.wreck-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #9E2A2B 0%, #540B0E 100%);
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(158, 42, 43, 0.8), 0 0 8px rgba(212, 175, 55, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wreck-pin:hover {
  transform: scale(1.2);
}

.museum-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #1B4D3E 0%, #0D2818 100%);
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(27, 77, 62, 0.8), 0 0 8px rgba(212, 175, 55, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.museum-pin:hover {
  transform: scale(1.2);
}

.pulse-ring {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.6);
  animation: pulseAnimation 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Popups de Leaflet */
.leaflet-popup-content-wrapper {
  background: #0F1E36 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: #0F1E36 !important;
  border-left: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
}

/* Estilos de Calendario Interactivo */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  padding-bottom: 6px;
}

.calendar-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
  border: 1px solid transparent;
}

.calendar-cell.empty {
  opacity: 0.15;
  pointer-events: none;
}

.calendar-cell.disabled {
  color: #475569;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-cell.has-departure {
  background: rgba(30, 45, 74, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  color: #F8FAFC;
  cursor: pointer;
}

.calendar-cell.has-departure:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.calendar-cell.selected {
  background: linear-gradient(135deg, #D4AF37 0%, #9B7616 100%) !important;
  color: #070F1E !important;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  border-color: #FFF !important;
}

.calendar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 3px;
}

.calendar-dot.green {
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.calendar-dot.amber {
  background-color: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

/* Bono / Voucher imprimible con estética de billete histórico */
.ticket-container {
  position: relative;
  background: #0E1A2E;
  border: 2px dashed rgba(212, 175, 55, 0.6);
  border-radius: 16px;
}

.ticket-notch-left, .ticket-notch-right {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-abyss);
  transform: translateY(-50%);
}
.ticket-notch-left {
  left: -12px;
}
.ticket-notch-right {
  right: -12px;
}

/* Estilos de Impresión */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  header, footer, #map-section, #historical-section, #tours-section, #faq-section, .no-print {
    display: none !important;
  }
  #booking-confirmation-modal {
    position: static !important;
    display: block !important;
    background: white !important;
    color: black !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ticket-container {
    background: white !important;
    color: black !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
  .gold-gradient-text {
    color: #8b6b15 !important;
    -webkit-text-fill-color: initial !important;
  }
}
