/* ==========================================================================
   MUSEO TEXTIL EL HUAYCO - SYSTEM STYLE
   Colores del Logotipo: Naranja (#F5971D), Teal/Verde (#3B9B88), Azul (#7BB1D9)
   Tipografía: Display (Playfair Display), Serif (Source Serif 4), Sans (Inter)
   ========================================================================== */

:root {
  /* Colores de Marca (Logotipo) */
  --brand-orange:      #F5971D;
  --brand-orange-dark: #D77E0C;
  --brand-teal:        #3B9B88;
  --brand-teal-dark:   #2E816D;
  --brand-blue:        #7BB1D9;
  --brand-beige:       #F1DEB4;
  
  /* Paleta Base Fabril */
  --carbon:            #1A1714;
  --carbon-light:      #2D2925;
  --carbon-border:     #3E3830;
  --lino:              #F5F0E8;
  --lino-dark:         #EDE6D6;
  --white:             #FFFFFF;
  --text-dark:         #2D2925;
  --text-muted:        #7A6F64;
  --error:             #DC2626;
  --success:           #10B981;

  /* Tipografías */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-serif:   'Source Serif 4', Georgia, serif;
  --f-sans:    'Inter', system-ui, sans-serif;

  /* Sombras y Radios */
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--f-sans);
  background-color: var(--lino);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--brand-teal-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--brand-orange);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background: var(--carbon);
  border-bottom: 3px solid var(--brand-orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  overflow: visible; /* Permitir que el logotipo sobresalga */
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible; /* Permitir que el logotipo sobresalga */
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: visible;
  position: relative;
}

/* Logotipo Flotante Sobresaliente */
.brand-logo-img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  border: 3px solid var(--brand-beige);
  background: white;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(245, 151, 29, 0.4);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
  z-index: 110;
  margin-bottom: -15px; /* Hace que flote y sobresalga de la cabecera */
  margin-top: -5px;
}

.brand-logo-wrapper:hover .brand-logo-img {
  transform: scale(1.08) rotate(360deg);
  box-shadow: 0 8px 25px rgba(245, 151, 29, 0.6);
}

.brand-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  padding-left: 0.25rem;
}
.brand-title span {
  color: var(--brand-orange);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  padding: 0.6rem 1rem;
  color: var(--lino-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.nav-item:hover {
  color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  color: var(--carbon);
  background: var(--brand-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ticket-priority {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #D77E0C 100%);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 151, 29, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ticket-priority:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 151, 29, 0.6);
}

.lang-switch {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--carbon-border);
  color: var(--lino-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-switch:hover {
  background: var(--brand-teal);
  color: var(--white);
}

/* Menu Toggle Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- TABS SYSTEM --- */
.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SLIDER --- */
.hero-slider-container {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--carbon);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26,23,20,0.85) 0%, rgba(26,23,20,0.4) 60%, rgba(26,23,20,0.1) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: 10%;
  padding: 2rem;
  color: var(--white);
}

.slide-content h2 {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--brand-beige);
}

.slide-content p {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

.slider-btn-group {
  display: flex;
  gap: 1rem;
}

.btn-slider-primary {
  background: var(--brand-teal);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.btn-slider-primary:hover {
  background: var(--brand-teal-dark);
  transform: translateY(-1px);
}

.btn-slider-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.btn-slider-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid var(--carbon-border);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--brand-orange);
  transform: scale(1.2);
}

/* --- METRICS / CIFRAS --- */
.metrics-section {
  background: var(--carbon-light);
  border-bottom: 2px solid var(--brand-orange);
  color: var(--white);
  padding: 3rem 2rem;
}

.metrics-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-card h3 {
  font-family: var(--f-display);
  font-size: 3rem;
  color: var(--brand-orange);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-card p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lino-dark);
  opacity: 0.8;
}

/* --- COMMON SECTIONS --- */
.section {
  padding: 5rem 2rem;
}
.section-dark {
  background: var(--carbon);
  color: var(--white);
}

.container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  font-family: var(--f-sans);
  color: var(--brand-teal);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}
.section-dark .section-subtitle {
  color: var(--brand-orange);
}

.section-title {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--carbon);
  line-height: 1.1;
}
.section-dark .section-title {
  color: var(--white);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-orange);
}

.section-desc {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.section-dark .section-desc {
  color: var(--lino-dark);
  opacity: 0.85;
}

/* --- GRID FEATURES --- */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--brand-teal);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-card.orange {
  border-top-color: var(--brand-orange);
}
.feature-card.blue {
  border-top-color: var(--brand-blue);
}

.feat-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h4 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--carbon);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- MINI DOCUMENTAL --- */
.documental-block {
  background: var(--carbon-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--carbon-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.doc-video-mock {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245,151,29,0.5);
  transition: var(--transition);
  border: none;
}
.doc-video-mock:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--brand-orange-dark);
}

.doc-info {
  padding: 3rem;
  color: var(--white);
}
.doc-info h4 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--brand-beige);
  margin-bottom: 1rem;
}
.doc-info p {
  font-family: var(--f-serif);
  font-size: 1rem;
  color: var(--lino-dark);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* --- HISTORIA & TIMELINE --- */
.timeline-thread-wrapper {
  background: var(--carbon);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-lg);
}

.timeline-title {
  text-align: center;
  color: var(--brand-orange);
  font-family: var(--f-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.thread-line-container {
  position: relative;
  height: 60px;
  margin: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thread-svg-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-teal) 50%, var(--brand-blue) 100%);
  transform: translateY(-50%);
  z-index: 1;
}

.thread-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.thread-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--carbon);
  border: 3px solid var(--brand-orange);
  transition: var(--transition);
}
.thread-node:hover .thread-dot, .thread-node.active .thread-dot {
  transform: scale(1.3);
  background: var(--brand-orange);
}
.thread-node.active .thread-dot {
  border-color: var(--white);
}

.thread-year {
  position: absolute;
  top: 25px;
  color: var(--lino-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.thread-node.active .thread-year {
  color: var(--brand-orange);
  transform: scale(1.1);
}

.timeline-content-card {
  background: var(--white);
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  min-height: 350px;
}

.timeline-img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--lino-dark);
  box-shadow: var(--shadow-sm);
}

.timeline-info h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--carbon);
  margin-bottom: 0.5rem;
}
.timeline-info h3 span {
  color: var(--brand-orange);
  font-style: italic;
  font-weight: 400;
  margin-left: 10px;
}
.timeline-info .timeline-tag {
  display: inline-block;
  background: rgba(59, 155, 136, 0.1);
  color: var(--brand-teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.timeline-info p {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* --- FOUNDERS SECTION --- */
.founders-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 5rem;
}

.founder-info h4 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--carbon);
  margin-bottom: 1.5rem;
}
.founder-info p {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.founder-img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--lino-dark);
}
.founder-img-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.founder-img-caption {
  background: var(--carbon);
  color: var(--brand-beige);
  padding: 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-family: var(--f-sans);
}

/* --- TESTIMONIALS & AUDIO --- */
.audio-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lino-dark);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.audio-play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
  border: none;
}
.audio-play-icon:hover {
  background: var(--brand-teal-dark);
  transform: scale(1.05);
}

.audio-details {
  flex: 1;
}
.audio-details h5 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--carbon);
}
.audio-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-transcript {
  background: none;
  border: 1px solid var(--brand-teal);
  color: var(--brand-teal-dark);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-transcript:hover {
  background: var(--brand-teal);
  color: var(--white);
}

/* --- MUSEO (CATALOGUE) --- */
.catalogue-controls {
  background: var(--white);
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.search-wrapper {
  position: relative;
  flex: 1;
}
.search-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  background: var(--lino);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-wrapper input:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 155, 136, 0.15);
}
.search-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
}
.filter-tag {
  background: var(--lino);
  border: 1px solid var(--lino-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tag:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-dark);
}
.filter-tag.active {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--white);
}

.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.machine-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lino-dark);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.machine-img-mock {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--lino-dark);
}

.machine-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--white);
}
.machine-status-badge.conservado { background: var(--success); }
.machine-status-badge.proceso { background: var(--brand-orange); }
.machine-status-badge.restaurado { background: var(--brand-teal-dark); }
.machine-status-badge.pendiente { background: var(--error); }

.machine-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.machine-body h4 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--carbon);
  margin-bottom: 0.25rem;
}
.machine-body .machine-maker {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.machine-body .machine-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--lino);
  padding-top: 0.75rem;
}
.machine-body .machine-meta p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.btn-machine-details {
  background: var(--carbon);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.btn-machine-details:hover {
  background: var(--brand-orange);
}

/* --- CENTRO GEOLÓGICO --- */
.geo-rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.geo-room-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lino-dark);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.geo-room-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.geo-room-num {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--brand-blue);
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: block;
}
.geo-room-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--carbon);
  margin-bottom: 0.5rem;
}
.geo-room-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- VISITAS (BOOKING TICKETS FORM) --- */
.booking-split-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.booking-form-card {
  background: var(--white);
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--brand-orange);
}

.booking-form-card h3 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--carbon);
  margin-bottom: 0.5rem;
}
.booking-form-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--lino-dark);
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  background: var(--lino);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: var(--white);
}

.booking-price-preview {
  background: rgba(245, 151, 29, 0.08);
  border: 1px dashed var(--brand-orange);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-orange-dark);
}

.btn-book-submit {
  width: 100%;
  background: var(--brand-orange);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245,151,29,0.3);
  transition: var(--transition);
}
.btn-book-submit:hover {
  background: var(--brand-orange-dark);
  box-shadow: 0 6px 20px rgba(245,151,29,0.45);
}

.tariffs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.tariffs-table th, .tariffs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--lino-dark);
}
.tariffs-table th {
  background: var(--carbon-light);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}
.tariffs-table td {
  font-size: 0.95rem;
}

.map-mock {
  background: var(--carbon-light);
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-btn-overlay {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--white);
  color: var(--carbon);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* --- GLASS PANEL (CONTACT) --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.glass-panel h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--carbon);
  margin-bottom: 0.5rem;
}
.glass-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Form feedback */
.form-feedback {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
  font-weight: 600;
}
.form-feedback.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Spinner loader */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- MODAL POPUP --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--brand-orange);
  position: relative;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover {
  color: var(--brand-orange);
}

.modal-body-content {
  padding: 2.5rem;
}

/* Ticket checkout style */
.ticket-virtual-receipt {
  border: 2px dashed var(--brand-orange);
  background: var(--lino);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
}
.ticket-virtual-receipt::before, .ticket-virtual-receipt::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-virtual-receipt::before { left: -10px; }
.ticket-virtual-receipt::after { right: -10px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--carbon);
  color: var(--lino-dark);
  padding: 3rem 2rem 2rem 2rem;
  border-top: 3px solid var(--brand-teal);
  text-align: center;
  font-size: 0.9rem;
}

.footer-logo {
  height: 45px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: white;
  padding: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  list-style: none;
  font-weight: 600;
}
.footer-links a {
  color: var(--lino-dark);
}
.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-copy {
  opacity: 0.5;
  font-size: 0.8rem;
  border-top: 1px solid var(--carbon-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  .nav-menu {
    display: none; /* Mobile menu collapsed by default */
  }
  .menu-toggle {
    display: block;
  }
  .brand-logo-img {
    height: 60px;
    width: 60px;
    margin-bottom: -5px;
  }
  .hero-slider-container {
    height: 420px;
  }
  .slide-content h2 {
    font-size: 2.2rem;
  }
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid-3, .machines-grid, .geo-rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-content-card, .founders-block, .booking-split-container, .documental-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .metrics-container, .feature-grid-3, .machines-grid, .geo-rooms-grid {
    grid-template-columns: 1fr;
  }
  .slide-content {
    margin-left: 5%;
    margin-right: 5%;
  }
  .slide-content h2 {
    font-size: 1.8rem;
  }
}
