/* 
 * BeerHouse - Bar & Terraza en Teques
 * Estilos principales
 */

/* ===== VARIABLES ===== */
:root {
  /* Colores principales - Paleta Laguna Tropical */
  --color-primary: #f9a826;       /* Dorado cálido (atardecer) */
  --color-secondary: #2ecc71;     /* Verde palmera */
  --color-accent: #3498db;        /* Azul laguna */
  
  /* Colores neutros */
  --color-dark: #1a2a36;          /* Azul noche profundo */
  --color-dark-alt: #2c3e50;      /* Azul oscuro */
  --color-light: #f9f9f9;         /* Blanco arena */
  --color-muted: #bdc3c7;         /* Gris suave */
  
  /* Fuentes */
  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Permanent Marker', cursive;
  --font-icons: 'Material Symbols Rounded';
  
  /* Tamaños */
  --size-xs: 0.75rem;    /* 12px */
  --size-sm: 0.875rem;   /* 14px */
  --size-base: 1rem;     /* 16px */
  --size-md: 1.125rem;   /* 18px */
  --size-lg: 1.25rem;    /* 20px */
  --size-xl: 1.5rem;     /* 24px */
  --size-2xl: 2rem;      /* 32px */
  --size-3xl: 2.5rem;    /* 40px */
  --size-4xl: 3rem;      /* 48px */
  --size-5xl: 4rem;      /* 64px */
  
  /* Espaciado */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  
  /* Bordes */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --container-padding: 1.5rem;
  --header-height: 6rem; /* Aumentado para dar más espacio vertical */
  --footer-spacing: 2rem;
  --section-spacing: 5rem;
}

/* Tema tropical claro (default) */
.dark-theme {
  --bg-body: #e0f7fa; /* Azul claro tropical */
  --bg-card: #ffffff; /* Blanco para tarjetas */
  --text-primary: #1a2a36; /* Texto oscuro para contraste */
  --text-secondary: #546e7a; /* Texto secundario más oscuro */
  --border-color: rgba(52, 152, 219, 0.2); /* Borde azul laguna */
  
  /* Gradientes tropicales */
  --gradient-sunset: linear-gradient(135deg, #f9a826, #e74c3c);
  --gradient-ocean: linear-gradient(135deg, #3498db, #2ecc71);
  --gradient-tropical: linear-gradient(to right, #f9a826, #3498db);
}

/* Añadir fondo con patrón de palmeras tropicales */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' fill='none'%3E%3Cpath d='M80,40 C85,35 90,40 90,45 C90,50 85,60 80,65 C75,70 65,75 60,70 C55,65 60,55 65,50 C70,45 75,45 80,40 Z' fill='rgba(46, 204, 113, 0.1)'/%3E%3C/svg%3E");
  background-size: 300px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

main {
  position: relative;
  overflow: hidden;
}

section {
  padding: var(--section-spacing) 0;
}

.sec-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.h1, h1 {
  font-size: var(--size-3xl);
}

.h2, h2 {
  font-size: var(--size-2xl);
}

.h3, h3 {
  font-size: var(--size-xl);
}

.h4, h4 {
  font-size: var(--size-lg);
}

.xxl {
  font-size: var(--size-4xl);
  font-weight: 800;
  line-height: 1.1;
}

.lead {
  font-size: var(--size-lg);
  margin-bottom: var(--space-md);
}

.muted {
  color: var(--text-secondary);
}

.accent {
  color: var(--color-primary);
  font-family: var(--font-display);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  color: var(--color-primary);
}

/* ===== COMPONENTES ===== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: rgba(249, 168, 38, 0.1);
  color: #c06800; /* Color más oscuro para mejor contraste */
  border: 2px solid var(--color-primary);
  font-weight: 700;
}

.btn-ghost:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.cta {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

/* Chips / Tags */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.chips li {
  background-color: rgba(249, 168, 38, 0.2);
  color: #c06800; /* Color más oscuro para mejor contraste */
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 700; /* Aumentado para mejor legibilidad */
  border-left: 3px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.chips li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(249, 168, 38, 0.1), transparent);
  z-index: -1;
}

/* Tarjetas */
.case {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.case:hover {
  transform: translateY(-5px);
}

.case-link {
  display: block;
  position: relative;
  color: var(--text-primary);
}

.poster {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-slow);
}

.case:hover .poster {
  transform: scale(1.05);
}

.meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--color-light);
}

.meta h3 {
  margin-bottom: 0.25rem;
  font-size: var(--size-lg);
}

.meta span {
  font-size: var(--size-sm);
  opacity: 0.8;
}

/* Menú de comidas/bebidas */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.menu-category {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.menu-title {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--size-xl);
}

.menu-list li {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed rgba(249, 168, 38, 0.3);
  position: relative;
  padding-left: 5px;
}

.menu-list li::before {
  content: '🍹';
  position: absolute;
  left: -25px;
  opacity: 0;
  font-size: 16px;
  transition: opacity var(--transition-fast);
}

.menu-list li:hover::before {
  opacity: 0.8;
}

.menu-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.item-name {
  font-weight: 600;
  font-size: var(--size-md);
}

.item-price {
  font-weight: 700;
  color: var(--color-primary);
}

.item-desc {
  font-size: var(--size-sm);
  color: var(--text-secondary);
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: var(--space-sm);
  background-color: var(--bg-card);
  font-size: var(--size-sm);
  text-align: center;
  font-weight: 600;
  color: var(--color-dark);
}

/* Eventos / Timeline */
.stepper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.5rem;
  width: 2px;
  background-color: var(--color-primary);
  opacity: 0.3;
}

.step {
  position: relative;
  padding-left: 5rem;
  margin-bottom: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1rem 5rem;
  box-shadow: var(--shadow-sm);
}

.step:last-child {
  margin-bottom: 0;
}

.badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-dark);
  border-radius: 50%;
  font-weight: 800;
  font-size: var(--size-lg);
  z-index: 1;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

/* Ubicación */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.location-info {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.location-info h3 {
  color: var(--color-primary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.location-info h3:first-child {
  margin-top: 0;
}

.hours-list li, .contact-list li {
  margin-bottom: var(--space-xs);
}

.hours-list span {
  font-weight: 600;
  color: var(--color-dark);
}

address {
  font-style: normal;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* Ribbons */
.ribbons {
  padding: 0;
}

.ribbon {
  padding: var(--space-sm) 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
}

.ribbon strong {
  font-weight: 700;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
}

.r1 {
  background-color: rgba(249, 168, 38, 0.1);
  background-image: var(--gradient-sunset);
  background-size: 200% 100%;
  animation: gradient-shift 15s ease infinite;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.r2 {
  background-color: rgba(46, 204, 113, 0.1);
  background-image: var(--gradient-ocean);
  background-size: 200% 100%;
  animation: gradient-shift 15s ease infinite reverse;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.r3 {
  background-color: rgba(52, 152, 219, 0.1);
  background-image: var(--gradient-tropical);
  background-size: 200% 100%;
  animation: gradient-shift 15s ease infinite;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Carril horizontal */
.rail {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.rail-ctrl {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.rail-prev, .rail-next {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--color-primary);
  font-size: var(--size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.rail-prev:hover, .rail-next:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(26, 42, 54, 0.9); /* Color más oscuro para mejor contraste */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(249, 168, 38, 0.2);
  display: flex;
  align-items: center;
}

.hdr::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-tropical);
  opacity: 0.8;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-sm);
  line-height: 1;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 100%;
  line-height: 1;
}

.menu {
  display: flex;
  gap: var(--space-md);
  height: 100%;
  align-items: center;
}

nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.menu a {
  color: var(--color-light);
  font-weight: 700; /* Más peso para mejor legibilidad */
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Sombra para mejorar legibilidad */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--space-xs);
  line-height: 1;
  box-sizing: border-box;
}

.menu li {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

/* Asegurarse de que el contenedor del header tenga flex */
.hdr .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.menu a:hover {
  color: var(--color-primary);
}

.menu a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-body);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.overlay-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.overlay-list a {
  font-size: var(--size-2xl);
  font-weight: 700;
  color: var(--color-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.overlay-list a:hover {
  color: var(--color-primary);
}

.overlay-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

/* ===== FOOTER ===== */
.ftr {
  background-color: rgba(52, 152, 219, 0.2);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.ftr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ftr-brand p {
  margin-top: var(--space-sm);
  color: var(--text-secondary);
}

.ftr h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.ftr-nav ul, .ftr-contact ul, .social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ftr-nav a, .ftr-contact a, .social-links a {
  color: #1a5276; /* Azul más oscuro para mejor contraste */
  font-weight: 600;
  transition: color var(--transition-fast);
}

.ftr-nav a:hover, .ftr-contact a:hover, .social-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.ftr-legal {
  text-align: center;
  color: #2c3e50; /* Color más oscuro para mejor contraste */
  font-size: var(--size-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* ===== SECCIONES ESPECÍFICAS ===== */

/* Hero / Stage */
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + var(--space-lg));
  position: relative;
}

.stage-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.stage-copy {
  max-width: 600px;
}

.orb {
  position: relative;
}

.orb img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: var(--size-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.scroll-hint:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Botones flotantes */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.float-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  color: var(--color-light);
}

.float-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top {
  background-color: var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-accent);
}

.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* Animaciones */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Barra de progreso */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 4rem;
  }
  
  .xxl {
    font-size: var(--size-3xl);
  }
  
  .h1, h1 {
    font-size: var(--size-2xl);
  }
  
  .ftr-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
    --container-padding: 1rem;
  }
  
  .stage-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .menu {
    display: none;
  }
  
  .burger {
    display: flex;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .ftr-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 2.5rem;
  }
  
  .xxl {
    font-size: var(--size-2xl);
  }
  
  .h1, h1 {
    font-size: var(--size-xl);
  }
  
  .lead {
    font-size: var(--size-base);
  }
  
  .rail > * {
    width: 220px;
  }
  
  .step {
    padding-left: 4rem;
  }
  
  .badge {
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--size-base);
  }
}
