@import "./_variables/_colors.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--color-secondary);
  background-color: var(--color-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background 0.3s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 3px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #d4af37;
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: auto;
}

.nav-button {
  background: linear-gradient(135deg, #d4af37, #f4d467);
  color: #000;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  transform: translateY(-2px);
}

/* ACCESO RÁPIDO - Mejorado */
.quick-access {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  padding: 10px 12px;
  align-items: flex-end;
  border: 1px solid var(--color-primary);
}

.quick-btn {
  background: linear-gradient(135deg, #d4af37, #f4d467);
  color: #222;
  padding: 8px 22px;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 8px rgba(212, 175, 55, 0.10);
  margin: 0;
  text-align: center;
  min-width: 110px;
  letter-spacing: 1px;
}

.quick-btn:hover {
  background: #f4d467;
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.18);
  transform: translateY(-1px) scale(1.03);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #d4af37;
  cursor: pointer;
  margin-left: 10px;
  z-index: 1100;
  /* Nuevo: posición absoluta en móvil */
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2a4a2a; /* Verde temporal para debug */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1; /* Asegurar que esté por encima */
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.hero-dot.active {
  background: #d4af37;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.hero-dot:hover {
  background: rgba(212, 175, 55, 0.7);
}

.hero-content h1 {
  font-size: 80px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #e5e5e5 !important;
}

.hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #e5e5e5 !important;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-button:hover {
  background: white;
  color: #000;
}

/* About Section */
.about {
  padding: 120px 0;
  background: var(--color-light);
  color: var(--color-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 30px;
  color: #d4af37;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.about-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services Section */
.services {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.services h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #d4af37;
}

.services-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.service-item {
  text-align: center;
  padding: 40px 20px;
}

.service-number {
  font-size: 48px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-item p {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Products Section */
.products-section {
  background: var(--color-light);
  color: var(--color-secondary);
}

.products-title {
  text-align: center;
  font-size: 48px;
  font-weight: 300;

  color: #d4af37;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-accent);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-carousel {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 30px;
}

.product-name {
  font-size: 24px;
  margin-bottom: 15px;
  color: #d4af37;
}

.product-price {
  font-size: 20px;
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-description {
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 14px;
}

.btn-green {
  background: linear-gradient(135deg, #d4af37, #f4d467);
  color: #000;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-green:hover {
  transform: translateY(-2px);
}

/* Productos botones */
.productos-botones {
  text-align: center;
  margin-top: 40px;
}

.productos-botones .btn-green {
  width: auto;
  margin: 0 10px;
}

#loading-productos {
  text-align: center;
  color: var(--color-gray);
  margin-top: 20px;
}

/* Signature cocktails */
.signature-section {
  padding-top: 120px;
  background: var(--color-accent);
  color: var(--color-secondary);
  text-align: center;
}

.signature-section h2 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #d4af37;
}

.signature-subtitle {
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.signature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.signature-card {
  background: var(--color-light);
  border: 1px solid var(--color-primary);
  padding: 40px 20px;
  border-radius: 10px;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #d4af37;
  color: #000;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Reservas y Login sections */
.reservas-section, .login-section {
  padding: 80px 0;
  text-align: center;
  color: var(--color-secondary);
}

.reservas-section {
  background: var(--color-light);
}

.login-section {
  background: var(--color-accent);
}

.section-anchor {
  position: relative;
  top: -80px;
  visibility: hidden;
  height: 0;
}

/* Footer */
.footer {
  background: var(--color-light);
  color: var(--color-secondary);
  padding: 80px 0 30px;
  border-top: 1px solid var(--color-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #d4af37;
}

.footer-brand p {
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 16px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: #d4af37;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--color-gray);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s, padding-left 0.3s;
  font-size: 15px;
}

.footer-section ul li a:hover {
  color: #d4af37;
  padding-left: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #d4af37, #f4d467);
  color: #000;
  text-decoration: none;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s;
  font-weight: 600;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.contact-info {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--color-gray);
  font-size: 15px;
}

.contact-item i {
  margin-right: 12px;
  color: #d4af37;
  width: 20px;
  font-size: 16px;
}

.contact-item a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #d4af37;
}

.footer-bottom {
  border-top: 1px solid var(--color-primary);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-left {
  color: var(--color-gray);
  font-size: 14px;
}

.footer-bottom-right {
  display: flex;
  gap: 30px;
}

.footer-bottom-right a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-bottom-right a:hover {
  color: #d4af37;
}

.newsletter {
  margin-top: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--color-primary);
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 6px;
  font-size: 14px;
}

.newsletter-input:focus {
  outline: none;
  border-color: #d4af37;
}

.newsletter-button {
  background: linear-gradient(135deg, #d4af37, #f4d467);
  color: #000;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
  font-size: 14px;
}

.newsletter-button:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
    letter-spacing: 4px;
  }

  .hero-dots {
    bottom: 20px;
    gap: 10px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signature-cards {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .quick-access {
    flex-direction: column;
    gap: 5px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .nav-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-button {
    padding: 12px 30px;
    font-size: 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Avatar Gmail style - mejor alineación */
.nav-avatar-item {
  position: relative;
}

.user-avatar,
.user-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.6);
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-secondary);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.user-avatar:hover,
.user-avatar-initials:hover {
  border-color: #d4af37;
  box-shadow: 0 2px 16px rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}

.user-avatar-initials {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1a1a2e 100%);
  color: #d4af37;
  letter-spacing: 0.5px;
}

.user-avatar-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: var(--color-accent);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  z-index: 2000;
  padding: 10px 0;
  border: 1px solid var(--color-primary);
}

.nav-avatar-item:focus-within .user-avatar-dropdown-content,
.nav-avatar-item:hover .user-avatar-dropdown-content {
  display: block;
}

.user-avatar-dropdown-content a {
  color: #d4af37;
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
}

.user-avatar-dropdown-content a:hover {
  background: var(--color-light);
}

.user-avatar-dropdown-content .dropdown-greeting {
  padding: 10px 20px;
  color: var(--color-secondary);
  font-size: 15px;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: 5px;
}

.nav-menu .nav-strong {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-secondary) !important;
  text-transform: uppercase;
}

/* Ajuste para los botones y avatar en la barra */
.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: auto;
}

/* En móvil: avatar y menú hamburguesa bien alineados */
@media (max-width: 900px) {

  .service-item {
    padding: 20px 0;
  }
  .header {
    padding: 10px 0;
  }
  .nav {
    flex-wrap: wrap;
    position: relative;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    z-index: 1201;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-accent);
    border: 1px solid var(--color-primary);
    z-index: 1002;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 20px 0 10px 0;
    text-align: center;
    width: 90dvw;
  }
  .nav-menu.show {
    display: flex;
  }
  .nav-menu li {
    margin: 0 0 10px 0;
  }

  .nav-avatar-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-primary);
  }

  .user-avatar-dropdown-content {
    position: relative;
    top: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px 0 0;
    min-width: auto;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
    margin-left: 0;
    margin-top: 10px;
    align-items: flex-end;
  }
  .nav-button {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    border-radius: 20px;
  }
  .quick-access {
    flex-direction: column;
    gap: 6px;
    top: 10px;
    right: 10px;
  }
  .user-avatar-dropdown {
    position: absolute;
    right: 70px;
    top: 12px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .quick-access {
    top: 60px;
    right: 8px;
    padding: 7px 8px;
    gap: 7px;
    border-radius: 14px;
  }
  .quick-btn {
    font-size: 13px;
    padding: 7px 10px;
    min-width: 80px;
    border-radius: 12px;
  }
  .user-avatar-dropdown {
    right: 60px;
    top: 10px;
  }
  .nav-buttons {
    align-items: flex-end;
  }
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-indicator .arrow {
  width: 30px;
  height: 30px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
  opacity: 0;
  animation: scrollDown 1s infinite;
}

/* Animación en cascada */
@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(10px) rotate(-45deg);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) rotate(-45deg);
  }
}

/* Retrasos para el efecto en cascada */
.scroll-indicator .arrow:nth-child(1) {
  animation-delay: 0s;
}

.scroll-indicator .arrow:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator .arrow:nth-child(3) {
  animation-delay: 0.4s;
}

.scroll-indicator .arrow:nth-child(4) {
  animation-delay: 0.6s;
}

/* Media query para pantallas grandes - menú horizontal */
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
  }
}
