/* === RESET Y VARIABLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4a6fa5;
  --secondary: #7ec8e3;
  --accent: #f8b195;
  --dark: #2c3e50;
  --light: #f0f8fc;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* === DESACTIVAR SELECCIÓN DE TEXTO (excepto footer) === */
body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
  -webkit-touch-callout: none; /* iOS Safari */
}

/* Permitir selección solo en el footer */
.footer,
.footer * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* === PARTÍCULAS FLOTANTES === */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 21s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 20s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 23s; }

@keyframes float {
  0%, 100% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  50% { transform: translateY(-10vh) scale(1); opacity: 0.5; }
}

/* === NAVEGACIÓN === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 40px rgba(74, 111, 165, 0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 1000px;
  color: var(--primary);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--secondary);
}

.logo::after {
  content: '✨';
  position: absolute;
  right: -25px;
  top: -5px;
  font-size: 1rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
  border-radius: 3px;
}

/* === HERO === */
.hero {
  height: 95;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('VITRINA 2.png') center/cover no-repeat;
  filter: brightness(0.7);
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.7), rgba(126, 200, 227, 0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 40px;
  padding-bottom: 60px;
}

.hero-logo-container {
  position: relative;
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.hero-logo {
  width: 350px;
  height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
  transition: 0.5s;
}

.hero-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-glow {
  display: none;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  margin: 0;
  background: linear-gradient(45deg, #fff, #7ec8e3, #f8b195);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 3px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-btn {
  margin-top: 0.5rem;
  padding: 1rem 3rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126, 200, 227, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover::before {
  left: 100%;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  display: none;
}

/* === SECCIONES === */
section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 3rem;
  color: var(--primary);
}

/* === WELCOME === */
.welcome {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  text-align: center;
  padding-top: 6rem;
}

.welcome-content {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 1s ease;
}

.welcome-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  color: var(--primary);
}

.welcome-content p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--dark);
  opacity: 0.8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === PRODUCTOS === */
.productos {
  background: var(--light);
  text-align: center;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.producto-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.producto-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 60px rgba(74, 111, 165, 0.2);
}

.producto-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.producto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.producto-card:hover .producto-image img {
  transform: scale(1.15);
}

.producto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(126, 200, 227, 0.95), rgba(248, 177, 149, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.producto-card:hover .producto-overlay {
  opacity: 1;
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.producto-info {
  padding: 2.5rem;
  text-align: left;
}

.producto-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.producto-info p {
  color: var(--dark);
  opacity: 0.7;
  line-height: 1.8;
}

/* === MENÚ === */
.menu-section {
  background: var(--white);
  text-align: center;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.tab-btn {
  padding: 1.2rem 3rem;
  background: transparent;
  border: 3px solid var(--secondary);
  color: var(--dark);
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
  width: 300%;
  height: 300%;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--white);
  border-color: var(--secondary);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SABORES === */
.sabores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sabor-item {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--light), var(--white));
  border-radius: 15px;
  text-align: left;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.sabor-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(126, 200, 227, 0.1), rgba(248, 177, 149, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sabor-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(74, 111, 165, 0.15);
  border-left-color: var(--accent);
}

.sabor-item:hover::before {
  opacity: 1;
}

.sabor-number {
  display: block;
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}

.sabor-item h4 {
  font-size: 1.3rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

/* === PRECIOS === */
.precios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.precio-card {
  padding: 3.5rem 2rem;
  background: var(--light);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.precio-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(126, 200, 227, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.precio-card:hover::after {
  top: -100%;
  left: 100%;
}

.precio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(74, 111, 165, 0.2);
  background: var(--white);
}

.precio-card.especial {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  box-shadow: 0 15px 40px rgba(126, 200, 227, 0.3);
}

.precio-card.especial:hover {
  transform: translateY(-10px) scale(1.05);
}

.precio-header {
  margin-bottom: 1.5rem;
}

.precio-personas {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.precio-sub {
  display: block;
  font-size: 0.95rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.precio-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.precio-card.especial .precio-amount,
.precio-card.especial .precio-personas {
  color: var(--white);
}

/* === CONTACTO === */
.contacto {
  background: linear-gradient(180deg, var(--light), var(--white));
  padding: 8rem 0;
}

.info-comprar-card {
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--light);
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-block h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.info-block p {
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.6;
}

.como-comprar-section {
  text-align: center;
}

.como-comprar-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.como-comprar-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.btn-instagram:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(131, 58, 180, 0.6);
}

.btn-instagram span {
  font-size: 1.3rem;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, var(--primary), #5a8ab8);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.footer-brand p {
  opacity: 0.8;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.footer-social a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social a:hover::before {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  opacity: 0.8;
  line-height: 1.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    height: 85vh;
  }

  .hero-content {
    margin-top: 20px;
    gap: 1rem;
  }

  .hero-logo {
    width: 350px;
    height: 30px;
  }
  

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .hero-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  section {
    padding: 5rem 0;
  }

  .welcome {
    padding-top: 4rem;
  }

  .productos-grid,
  .sabores-grid,
  .precios-grid {
    grid-template-columns: 1fr;
  }

  .menu-tabs {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .info-blocks {
    grid-template-columns: 1fr;
  }
  
  .info-comprar-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Esto NO cambia el tamaño del favicon (eso es imposible)
   pero mejora el contraste en la pestaña del navegador */

/* Agrega esto al final de styles.css */

/* Asegurar que las imágenes del favicon tengan mejor renderizado */
link[rel="icon"],
link[rel="apple-touch-icon"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Esto es solo para navegadores webkit (Chrome/Safari) */
@supports (-webkit-appearance: none) {
  link[rel="icon"] {
    image-rendering: -webkit-optimize-contrast;
  }
}