/* ═══════════════════════════════════════
   AMIGOS DEL MARE — Mexican Beach Bar
   ═══════════════════════════════════════ */

:root {
  --green: #2ECC71;
  --green-dark: #1EA85A;
  --red: #E74C3C;
  --red-dark: #c0392b;
  --yellow: #F39C12;
  --yellow-dark: #d68910;
  --black: #1a1a1a;
  --black-2: #222;
  --black-3: #2a2a2a;
  --white: #fff;
  --gray: #888;
  --gray-light: #eee;
  --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 40%, #1a2a1a 100%);
  --gradient-sunset: linear-gradient(135deg, #E74C3C, #F39C12, #2ECC71);
  --gradient-sunset-2: linear-gradient(135deg, #c0392b 0%, #e67e22 50%, #1ea85a 100%);
  --gradient-dark: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  --font-display: 'Righteous', cursive;
  --font-body: 'Poppins', sans-serif;
  --max-width: 1140px;
  --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--gradient-sunset);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(231,76,60,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(231,76,60,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

/* ═══ SECTION SHARED ═══ */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-sunset);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s ease;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.1); }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(26,26,26,0.98); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: 20px;
  transition: all 0.3s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  padding-top: var(--nav-height);
  padding-bottom: 120px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 100%);
              radial-gradient(ellipse at 70% 50%, rgba(243,156,18,0.08) 0%, transparent 50%);
  z-index: 0;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 40px 20px;
}
.hero-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 24px;
  border-radius: 50px;
  color: var(--gray-light);
  font-size: 0.85rem;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: 4px;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gray-light);
  margin-bottom: 8px;
}
.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gray);
  margin-bottom: 40px;
  font-style: italic;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

/* ═══ FLOATING EMOJIS ═══ */
.floating-emojis {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.float-emoji {
  position: absolute;
  font-size: 2rem;
  animation: floatUp linear infinite;
  opacity: 0.15;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ═══ ABOUT ═══ */
.about {
  background: var(--white);
  color: var(--black);
}
.about-text {
  text-align: center;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  line-height: 1.8;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-8px); }
.stat-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.stat-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; color: var(--black); }
.stat-card p { font-size: 0.9rem; color: var(--gray); }

/* ═══ FORMULA ═══ */
.formula {
  background: var(--black);
  color: var(--white);
}
.formula .section-title { color: var(--white); }
.formula-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, #222, #1a1a1a);
  border: 1px solid #333;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(46,204,113,0.05);
  transition: transform 0.3s;
}
.formula-card:hover { transform: translateY(-5px); }
.formula-header {
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(46,204,113,0.1), rgba(243,156,18,0.05));
  border-bottom: 1px solid #333;
  position: relative;
}
.formula-badge {
  display: inline-block;
  background: var(--gradient-sunset);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.formula-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.formula-price { margin-bottom: 8px; }
.price-main {
  font-family: var(--font-display);
  font-size: 3.5rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-per { font-size: 1rem; color: var(--gray); }
.formula-upgrade { font-size: 0.9rem; color: var(--yellow); }
.formula-body { padding: 30px 40px; }
.formula-body h4 { font-family: var(--font-display); margin-bottom: 16px; font-size: 1.1rem; color: var(--green); }
.formula-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.formula-item {
  font-size: 0.85rem;
  color: #bbb;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.formula-item::before { content: '🌮'; font-size: 0.7rem; }
.formula-btn {
  display: block;
  margin: 0 40px 40px;
  text-align: center;
  justify-content: center;
}

/* ═══ MENU ═══ */
.menu {
  background: var(--white);
  color: var(--black);
}
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.menu-tab {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: #555;
}
.menu-tab:hover { border-color: var(--green); color: var(--green); }
.menu-tab.active {
  background: var(--gradient-sunset);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(231,76,60,0.2);
}

.menu-content { max-width: 800px; margin: 0 auto; }

.menu-section-note {
  text-align: center;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 30px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 12px;
  font-size: 0.9rem;
}

.menu-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.menu-section-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray-light);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed #eee;
  gap: 16px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item-info { flex: 1; }
.menu-item-name {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-item-name .tags {
  display: inline-flex;
  gap: 4px;
}
.tag-popular {
  font-size: 0.6rem;
  background: var(--green);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-new {
  font-size: 0.6rem;
  background: var(--yellow);
  color: var(--black);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.menu-item-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
  line-height: 1.5;
}
.menu-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--red);
  flex-shrink: 0;
}

.drink-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.drink-sub-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 0.85rem;
  gap: 8px;
}
.drink-sub-item .name { font-weight: 500; }
.drink-sub-item .price { font-weight: 600; color: var(--red); }

/* ═══ GALLERY ═══ */
.gallery {
  background: var(--black);
  color: var(--white);
}
.gallery .section-title { color: var(--white); }
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; display: block; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:nth-child(1) { height: 300px; }
.gallery-item:nth-child(2) { height: 350px; }
.gallery-item:nth-child(3) { height: 250px; }
.gallery-item:nth-child(4) { height: 300px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ LIGHTBOX ═══ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.show { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--red); }

/* ═══ RESERVATION ═══ */
.reservation {
  background: var(--white);
  color: var(--black);
}
.reservation-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: linear-gradient(145deg, #f9f9f9, var(--white));
  border-radius: 24px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.reservation-tagline {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 32px;
  font-style: italic;
}
.reservation-actions a[href*="wa.me"] {
  background: #25D366;
  color: var(--white);
  border: 2px solid #25D366;
}
.reservation-actions a[href*="wa.me"]:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
}
.reservation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.reservation-breakfast {
  padding: 16px;
  background: #fef9e7;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #7d6608;
  border: 1px solid #f9e79f;
}

/* ═══ CONTACT ═══ */
.contact {
  background: var(--black);
  color: var(--white);
}
.contact .section-title { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}
.contact-info a { color: var(--green); transition: color 0.3s; }
.contact-info a:hover { color: var(--yellow); }
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.open-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-top: 12px;
}
.open-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.open-dot.open { background: var(--green); box-shadow: 0 0 12px rgba(46,204,113,0.5); }
.open-dot.closed { background: var(--red); box-shadow: 0 0 12px rgba(231,76,60,0.3); }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 60px 0 30px;
  text-align: center;
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline { color: var(--gray); font-size: 0.9rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--gray);
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--gradient-sunset); color: var(--white); transform: translateY(-3px); }
.footer-copy { color: #555; font-size: 0.8rem; margin-top: 16px; }
.footer .open-indicator { justify-content: center; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid #333;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }

  .hero-title { letter-spacing: 2px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .stat-card { padding: 30px 16px; }
  .formula-items { grid-template-columns: 1fr; }
  .formula-body { padding: 20px; }
  .formula-btn { margin: 0 20px 30px; }
  .formula-header { padding: 30px 20px; }

  .menu-tabs { gap: 6px; }
  .menu-tab { padding: 8px 14px; font-size: 0.8rem; }
  .gallery-grid { columns: 2; }
  .gallery-item:nth-child(1) { height: 220px; }
  .gallery-item:nth-child(2) { height: 260px; }
  .gallery-item:nth-child(3) { height: 200px; }
  .gallery-item:nth-child(4) { height: 220px; }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .reservation-card { padding: 30px 20px; }

  .drink-sub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 40px; }
  .gallery-grid { columns: 1; }
  .gallery-item { height: 250px !important; }
}
