@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

:root {
  --bg: #FFF9F0;
  --primary: #FF5722;
  --secondary: #6A00F4;
  --accent: #00BFA5;
  --highlight: #FFB400;
  --text: #1A1A1A;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --shadow: rgba(26, 26, 26, 0.1);
  --shadow-strong: rgba(26, 26, 26, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5' fill='%23FFB400' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow-strong);
}

.lang-toggle:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.custom-cursor {
  cursor: url('/tito.svg') 16 16, auto;
}

nav {
  background: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  font-weight: 700;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  background: var(--primary);
  color: var(--white);
}

header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

header h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 0.5rem;
  position: relative;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
}

.tito-hero {
  width: 150px;
  height: 180px;
  margin: 2rem auto 0;
  animation: titoWave 1s ease-in-out infinite alternate;
}

@keyframes titoWave {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

.hero-tagline {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--highlight);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--highlight);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.menu-tab {
  background: var(--white);
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-tab:hover, .menu-tab.active {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106, 0, 244, 0.3);
}

.menu-content {
  display: none;
  animation: slideIn 0.4s ease;
}

.menu-content.active {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.menu-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.menu-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.menu-card .desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.flavor-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.flavor-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px var(--shadow-strong);
}

.flavor-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--highlight), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.flavor-info {
  padding: 1rem;
}

.flavor-info h3 {
  color: var(--secondary);
  font-size: 1.2rem;
}

.flavor-info .ingredients {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.flavor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.flavor-modal.open {
  display: flex;
}

.flavor-modal-content {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.flavor-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.review-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
  position: relative;
}

.review-card::before {
  content: '"';
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  color: var(--highlight);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  opacity: 0.3;
}

.review-card p {
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.review-card .author {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px var(--shadow-strong);
}

.social-link .icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

footer {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer a {
  color: var(--highlight);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.schedule-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  border-top: 4px solid var(--accent);
}

.schedule-card h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.schedule-card .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.schedule-card .location {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.schedule-card .deal {
  background: var(--highlight);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.5rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea, select {
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}

button[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: var(--secondary);
  transform: scale(1.02);
}

.tito-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 80px;
  height: 96px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tito-floating.visible {
  opacity: 1;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--highlight), transparent);
}

.bilingual {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bilingual .es {
  color: var(--secondary);
  font-style: italic;
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tito-floating {
    width: 60px;
    height: 72px;
  }
}

.text-en { display: block; }
.text-es { display: none; }
html.lang-es .text-en { display: none; }
html.lang-es .text-es { display: block; }