/* ============================================================
   EMPANADAS DOÑA RAQUEL — style.css
   ============================================================ */

:root {
  --rojo:     #D32F2F;
  --verde:    #2E7D32;
  --dorado:   #F9A825;
  --crema:    #FFF8E1;
  --blanco:   #FFFFFF;
  --oscuro:   #1A1A1A;
  --verde-wa: #25D366;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--blanco);
  color: var(--oscuro);
  overflow-x: hidden;
}

/* ── TOP BANNER ──────────────────────────────────────────── */
.top-banner {
  background: var(--rojo);
  color: var(--crema);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 1001;
  font-family: 'Fredoka One', cursive;
  font-size: 12px;
}

.banner-btn {
  background: var(--dorado);
  color: var(--oscuro);
  border: none;
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.banner-btn:hover { opacity: 0.85; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(211,47,47,0.15);
  position: sticky;
  top: 36px;
  z-index: 1000;
  height: 65px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

#navMenu {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: #D32F2F;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: #2E7D32; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-llamar {
  background: #D32F2F;
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-llamar:hover { background: #B71C1C; }

#cart-btn {
  background: #F9A825;
  color: #1A1A1A;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}
#cart-btn:hover { background: #F57F00; color: #fff; }

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #D32F2F;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 5px 0;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,7px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-7px); }

@media (max-width: 768px) {
  .hamburger { display: block; }

  #navMenu {
    display: none;
    position: fixed;
    top: 101px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 1.2rem;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    transform: none;
  }
  #navMenu.open { display: flex; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(211,47,47,0.78) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(46,125,50,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 30px 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Partículas hero */
.hero-particles {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.hero-particles span {
  position: absolute; display: block; border-radius: 50%;
  animation: float-up linear infinite;
}
.hero-particles span:nth-child(1)  { left:5%;  width:6px;  height:6px;  background:rgba(249,168,37,0.8);  animation-duration:8s;  animation-delay:0s;   }
.hero-particles span:nth-child(2)  { left:15%; width:5px;  height:5px;  background:rgba(211,47,47,0.8);   animation-duration:10s; animation-delay:1s;   }
.hero-particles span:nth-child(3)  { left:25%; width:8px;  height:8px;  background:rgba(249,168,37,0.8);  animation-duration:7s;  animation-delay:2s;   }
.hero-particles span:nth-child(4)  { left:40%; width:4px;  height:4px;  background:rgba(46,125,50,0.8);   animation-duration:9s;  animation-delay:0.5s; }
.hero-particles span:nth-child(5)  { left:55%; width:6px;  height:6px;  background:rgba(249,168,37,0.8);  animation-duration:11s; animation-delay:3s;   }
.hero-particles span:nth-child(6)  { left:65%; width:5px;  height:5px;  background:rgba(211,47,47,0.8);   animation-duration:8s;  animation-delay:1.5s; }
.hero-particles span:nth-child(7)  { left:75%; width:7px;  height:7px;  background:rgba(46,125,50,0.8);   animation-duration:10s; animation-delay:2.5s; }
.hero-particles span:nth-child(8)  { left:82%; width:4px;  height:4px;  background:rgba(249,168,37,0.8);  animation-duration:7s;  animation-delay:0s;   }
.hero-particles span:nth-child(9)  { left:90%; width:6px;  height:6px;  background:rgba(211,47,47,0.8);   animation-duration:9s;  animation-delay:4s;   }
.hero-particles span:nth-child(10) { left:96%; width:5px;  height:5px;  background:rgba(46,125,50,0.8);   animation-duration:12s; animation-delay:1s;   }

@keyframes float-up {
  0%   { bottom:-10px; opacity:0; transform:translateX(0) scale(1); }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { bottom:110%; opacity:0; transform:translateX(15px) scale(0.5); }
}

/* Heartbeat logo */
@keyframes heartbeat {
  0%,100% { transform:scale(1); }
  14%     { transform:scale(1.12); }
  28%     { transform:scale(1); }
  42%     { transform:scale(1.07); }
  70%     { transform:scale(1); }
}
.hero-logo { animation: heartbeat 2s ease-in-out infinite !important; }
@media(max-width:768px) {
  .hero-logo { width:170px!important; max-width:170px!important; height:170px!important; }
}
@media(max-width:480px) {
  .hero-logo { width:145px!important; max-width:145px!important; height:145px!important; }
}

.hero-flags {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(249,168,37,0.95);
  color: var(--oscuro);
  font-family: 'Fredoka One', cursive;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.hero-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.8rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 8px;
  text-align: center;
}
@media(max-width:768px) { .hero-title { font-size: 2rem; } }
@media(max-width:480px) { .hero-title { font-size: 1.7rem; } }

.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 4px;
}

.hero-phone-box {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--dorado);
  border-radius: 20px;
  padding: 20px 28px;
  display: inline-block;
  margin: 18px auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.hero-phone-box p {
  color: var(--dorado);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.btn-call-hero {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(211,47,47,0.5);
  transition: all 0.3s;
}
.btn-call-hero:hover { background: var(--dorado); color: var(--oscuro); }
@media(max-width:480px) { .btn-call-hero { font-size: 1.3rem; padding: 12px 22px; } }

.hero-sec-btns {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.btn-sec {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: 'Fredoka One', cursive;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-sec:hover { background: #fff; color: var(--rojo); }
.btn-wa {
  background: var(--verde-wa);
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: 'Fredoka One', cursive;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-wa:hover { background: #1da851; }

/* ── INFO BAR ────────────────────────────────────────────── */
.info-bar {
  background: var(--verde);
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.info-sep {
  color: var(--dorado);
  font-weight: 700;
}
@media(max-width:600px) {
  .info-bar { flex-direction: column; gap: 4px; }
  .info-sep { display: none; }
}

/* ── MENÚ ────────────────────────────────────────────────── */
.menu-section {
  background: var(--crema);
  padding: 60px 5%;
}

.section-title {
  font-family: 'Pacifico', cursive;
  color: var(--rojo);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--dorado);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.menu-flags {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media(min-width:600px)  { .menu-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px)  { .menu-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1200px) { .menu-grid { grid-template-columns: repeat(4,1fr); max-width:1300px; } }

.menu-card {
  background: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(211,47,47,0.1);
  border: 1px solid rgba(211,47,47,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(211,47,47,0.2);
  border-color: var(--dorado);
  border-width: 2px;
}

.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.menu-card:hover img { transform: scale(1.05); }

.img-ref {
  text-align: center;
  font-size: 0.62rem;
  color: #bbb;
  font-style: italic;
  margin: 0;
  padding: 3px 0;
  background: #fafafa;
}

.card-body {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-family: 'Pacifico', cursive;
  color: var(--rojo);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card-price {
  font-family: 'Fredoka One', cursive;
  color: var(--verde);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-desc {
  font-family: 'Nunito', sans-serif;
  color: #777;
  font-size: 0.82rem;
  margin-bottom: 12px;
  flex: 1;
  line-height: 1.4;
}

.btn-add {
  display: block;
  width: 100%;
  background: var(--rojo);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}
.btn-add:hover { background: var(--dorado); color: var(--oscuro); }
.btn-wa-special { background: var(--verde-wa); }
.btn-wa-special:hover { background: #1da851; color: #fff; }

/* ── CARRITO ─────────────────────────────────────────────── */
#cart-panel {
  position: fixed; right: -400px; top: 0;
  width: 360px; height: 100vh;
  background: #fff;
  border-left: 3px solid var(--rojo);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
#cart-panel.open { right: 0; }

.cart-header {
  background: var(--rojo);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-family: 'Pacifico', cursive; font-size: 1.1rem; margin: 0; }
#close-cart { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

#cart-items { flex: 1; overflow-y: auto; padding: 15px; }
.cart-empty { text-align: center; padding: 2rem; color: #999; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(211,47,47,0.15);
  gap: 0.5rem;
}
.cart-item-name { font-family: 'Nunito'; font-weight: 700; color: var(--oscuro); font-size: 0.9rem; flex: 1; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  background: var(--rojo);
  color: #fff; border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

.cart-footer { padding: 15px; border-top: 2px solid rgba(211,47,47,0.15); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--oscuro);
  margin-bottom: 12px;
}
#cart-total { color: var(--rojo); }

#whatsapp-order {
  width: 100%;
  background: var(--verde-wa);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
#whatsapp-order:hover { background: #1da851; }

#cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  display: none;
}
#cart-overlay.show { display: block; }

@media(max-width:480px) { #cart-panel { width: 100%; right: -100%; } }

/* ── CATERING ────────────────────────────────────────────── */
.catering-section {
  background: var(--blanco);
  padding: 60px 5%;
}

.catering-title {
  font-family: 'Pacifico', cursive;
  color: var(--rojo);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
}

.catering-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 30px auto 0;
  align-items: start;
}

.catering-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 20px;
}

.catering-list {
  list-style: none;
  padding: 0;
}
.catering-list li {
  color: var(--verde);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(46,125,50,0.1);
}

.catering-form-wrap {
  background: var(--crema);
  border-radius: 16px;
  padding: 24px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--rojo);
  font-size: 0.85rem;
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid rgba(211,47,47,0.2);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: var(--oscuro);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rojo);
}
.form-group textarea { resize: vertical; }

.btn-catering {
  background: var(--verde-wa);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}
.btn-catering:hover { background: #1da851; }

/* ── RESEÑAS ─────────────────────────────────────────────── */
.reviews-section {
  background: var(--crema);
  padding: 60px 5%;
  text-align: center;
}

.google-badge { margin-bottom: 36px; }
.google-logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.google-stars { font-size: 1.5rem; margin-bottom: 6px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: var(--blanco);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(211,47,47,0.1);
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}
.review-card:hover { border-color: var(--dorado); transform: translateY(-4px); }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-text {
  color: #555;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
}

/* ── SOBRE NOSOTROS ──────────────────────────────────────── */
.about-section {
  background: var(--rojo);
  padding: 60px 5%;
  text-align: center;
}

.about-title {
  font-family: 'Pacifico', cursive;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  line-height: 1.8;
  font-family: 'Nunito', sans-serif;
}

.about-flags {
  font-size: 3rem;
  margin-top: 20px;
  display: block;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--oscuro);
  padding: 50px 5% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col { display: flex; flex-direction: column; gap: 6px; }

.footer-h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--dorado);
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--dorado); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* ── WHATSAPP FLOTANTE ───────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  background: var(--verde-wa);
  color: #fff;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  text-decoration: none;
  animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50%     { box-shadow: 0 4px 25px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ── FADE-IN ─────────────────────────────────────────────── */
.fade-in { opacity:0; transform:translateY(25px); transition:opacity 0.6s ease,transform 0.6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:768px) {
  .catering-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .catering-img { height: 280px; }
}
@media(max-width:480px) {
  .menu-grid { grid-template-columns: repeat(1,1fr) !important; }
  #cart-panel { width: 100%; right: -100%; }
}
