/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Crimson Text", serif;
  line-height: 1.6;
  color: #1d1212;
  background-color: #ede4e0;
  overflow-x: hidden;
}

/* ===== UTILIDADES GENERALES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: "Bebas Neue", cursive;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #1d1212;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #fb240c, #ca2f23);
  border-radius: 2px;
}

/* ===== HEADER FIJO ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(29, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGO CON IMAGEN ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* TAMAÑO DEL LOGO: Ajusta aquí el tamaño (línea 156) */
.logo-image {
  height: 45px; /* Cambia este valor para ajustar el tamaño del logo */
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-family: "Bebas Neue", cursive;
  font-size: 2rem;
  color: #ede4e0;
  letter-spacing: 3px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #ede4e0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #fb240c;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fb240c;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Menú hamburguesa para móviles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ede4e0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== BOTONES FLOTANTES DE REDES SOCIALES ===== */
.floating-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.4s ease;
}

.floating-social.visible {
  opacity: 1;
  transform: translateX(0);
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* ANIMACIONES SUTILES - Elimina estas líneas para desactivar animaciones */
.floating-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.floating-btn:hover::before {
  width: 100px;
  height: 100px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.floating-btn {
  animation: pulse 3s infinite;
}
/* FIN DE ANIMACIONES SUTILES */

.floating-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-floating {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.instagram-floating {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.tiktok-floating {
  background: #000000;
}

.maps-floating {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

/* ===== MODAL DE MAPAS ===== */
.maps-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.maps-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.maps-modal-content {
  background: #ede4e0;
  border-radius: 15px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
}

.maps-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #1d1212;
  color: #ede4e0;
}

.maps-modal-header h3 {
  font-family: "Bebas Neue", cursive;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.maps-modal-close {
  background: none;
  border: none;
  color: #ede4e0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.maps-modal-close:hover {
  background: rgba(251, 36, 12, 0.2);
  color: #fb240c;
}

.maps-selector {
  display: flex;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.maps-tab {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-family: "Anton", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #747474;
}

.maps-tab.active {
  background: #ede4e0;
  color: #1d1212;
  border-bottom: 3px solid #fb240c;
}

.maps-tab:hover {
  background: #e0e0e0;
  color: #1d1212;
}

.maps-container {
  padding: 20px;
  height: auto;
  min-height: 500px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

/* ===== CONTENIDO DEL MAPA - DESKTOP (FUNCIONA BIEN) ===== */
.map-content {
  display: none;
  min-height: 100%;
  padding-bottom: 30px;
}

.map-content.active {
  display: block;
}

/* ===== CONTENEDOR DEL MAPA Y IFRAME - DESKTOP ===== */
.map-content iframe,
.map-content > div:first-child {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== SCROLL BAR PERSONALIZADO PARA MODAL ===== */
.maps-container::-webkit-scrollbar {
  width: 8px;
}

.maps-container::-webkit-scrollbar-track {
  background: rgba(237, 228, 224, 0.1);
  border-radius: 10px;
}

.maps-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #fb240c, #ca2f23);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.maps-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ca2f23, #fb240c);
  transform: scale(1.1);
}

/* Para Firefox */
.maps-container {
  scrollbar-width: thin;
  scrollbar-color: #fb240c rgba(237, 228, 224, 0.1);
}

/* ===== SECCIÓN HERO ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(29, 18, 18, 0.6), rgba(29, 18, 18, 0.4)),
    url("https://res.cloudinary.com/dwoau0ajc/image/upload/v1751042967/upscalemedia-transformed_pnfdex.jpg") center / cover
    no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: "Bebas Neue", cursive;
  font-size: 4.5rem;
  color: #ede4e0;
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: #ce7467;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  margin-top: 2rem;
}

/* ===== BOTÓN WHATSAPP MEJORADO ===== */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.whatsapp-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s ease;
  margin-left: 0;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  padding: 15px 30px;
  width: auto;
  border-radius: 50px;
  gap: 12px;
}

.whatsapp-btn:hover .whatsapp-text {
  max-width: 200px;
  opacity: 1;
  margin-left: 8px;
}

/* ===== CENTRADO DEL BOTÓN WHATSAPP ===== */
.whatsapp-container {
  display: flex;
  justify-content: center;
  margin-left: 20px; /* Ajuste para centrar más hacia la derecha */
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid #ede4e0;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.about {
  padding: 100px 0;
  background: #ede4e0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-paragraph {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #1d1212;
  line-height: 1.8;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(29, 18, 18, 0.1);
}

.about-image video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover video {
  transform: scale(1.05);
}

/* ===== CARRUSEL DE PLATILLOS ===== */
.menu-carousel {
  padding: 100px 0;
  background: linear-gradient(135deg, #1d1212, #2a1f1f);
  color: #ede4e0;
}

.menu-carousel .section-title {
  color: #ede4e0;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.carousel-item {
  flex: 0 0 300px;
  margin: 0 10px;
}

.dish-card {
  background: rgba(237, 228, 224, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(237, 228, 224, 0.2);
}

.dish-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dish-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dish-card:hover img {
  transform: scale(1.1);
}

.dish-info {
  padding: 1.5rem;
  text-align: center;
}

.dish-info h3 {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  color: #ede4e0;
}

.dish-price {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fb240c;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(237, 228, 224, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #fb240c;
  transform: scale(1.2);
}

/* ===== GALERÍA VISUAL ===== */
.gallery {
  padding: 100px 0;
  background: #ede4e0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(29, 18, 18, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(29, 18, 18, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== REDES SOCIALES ===== */
.social-media {
  padding: 80px 0;
  background: linear-gradient(135deg, #97231a, #ca2f23);
  color: #ede4e0;
}

.social-media .section-title {
  color: #ede4e0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-btn.whatsapp {
  background: #25d366;
  color: white;
}

.social-btn.tiktok {
  background: #000000;
  color: white;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-btn.maps {
  background: #4285f4;
  color: white;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: #ede4e0;
}

/* ===== FOOTER MEJORADO ===== */
.footer {
  background: #1d1212;
  color: #ede4e0;
  padding: 60px 0 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand h3 {
  font-family: "Bebas Neue", cursive;
  font-size: 2rem;
  color: #ede4e0;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #a18a8d;
}

.footer-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.branch-info {
  background: rgba(237, 228, 224, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(237, 228, 224, 0.1);
  transition: all 0.3s ease;
}

.branch-info:hover {
  background: rgba(237, 228, 224, 0.08);
  border-color: rgba(251, 36, 12, 0.3);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(237, 228, 224, 0.1);
}

.branch-icon {
  color: #fb240c;
  flex-shrink: 0;
}

.branch-header h4 {
  font-family: "Bebas Neue", cursive;
  font-size: 1.5rem;
  color: #ede4e0;
  letter-spacing: 2px;
  margin-bottom: -0.2rem;
}

.branch-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.branch-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #a18a8d;
}

.branch-item svg {
  color: #ce7467;
  flex-shrink: 0;
}

.branch-item span {
  line-height: 1.4;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-social h4 {
  font-family: "Bebas Neue", cursive;
  font-size: 1.8rem;
  color: #ede4e0;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(237, 228, 224, 0.1);
  border-radius: 50%;
  color: #a18a8d;
  transition: all 0.3s ease;
  border: 1px solid rgba(237, 228, 224, 0.1);
}

.social-links a:hover {
  background: #fb240c;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 36, 12, 0.3);
  border-color: #fb240c;
}

/* ===== INDICADOR DE ESTADO DE SUCURSALES ===== */
.branch-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(237, 228, 224, 0.1);
  border: 1px solid rgba(237, 228, 224, 0.2);
  transition: all 0.3s ease;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: statusPulse 2s infinite;
}

.status-indicator.open {
  background: #25d366;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

.status-indicator.closed {
  background: #fb240c;
  box-shadow: 0 0 8px rgba(251, 36, 12, 0.4);
  animation: none;
}

.status-text {
  font-family: "Anton", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ede4e0;
  text-transform: uppercase;
  cursor: help;
}

.info-item {
  opacity: 0.7;
  font-style: italic;
  font-size: 0.8rem !important;
}

.info-item svg {
  color: #4285f4 !important;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== SECCIÓN DE VALORACIÓN - DESKTOP (MANTENER COMO ESTÁ) ===== */
.rating-section {
  margin-top: 55px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  clear: both;
}

.rating-section:hover {
  background: rgba(251, 36, 12, 0.08);
  border-color: rgba(251, 36, 12, 0.2);
}

.rating-title {
  font-family: "Bebas Neue", cursive;
  font-size: 1.5rem;
  color: #1d1212;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.rating-subtitle {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.star {
  font-size: 1.8rem;
  color: grey;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 4px;
  margin: -4px;
  border-radius: 50%;
}

.star:hover,
.star:focus {
  color: #ffd700;
  transform: scale(1.15);
}

.star.hovered {
  color: #ffd700;
  transform: scale(1.1);
}

.star:active {
  transform: scale(0.95);
  background: rgba(255, 215, 0, 0.1);
}

.rating-text {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
  line-height: 1.3;
}

/* ===== SEPARADOR VISUAL PARA RATING ===== */
.rating-section::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fb240c, transparent);
  border-radius: 1px;
}

/* ===== RESPONSIVE DESIGN - CORRECCIONES ESPECÍFICAS ===== */

/* Tablets */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(29, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    padding-right: 0;
  }

  .carousel-item {
    flex: 0 0 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .social-buttons {
    gap: 1rem;
  }

  .social-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-branches {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .branch-header {
    justify-content: center;
  }

  .branch-item {
    justify-content: center;
  }

  .social-links {
    flex-direction: row;
    justify-content: center;
  }

  .whatsapp-container {
    margin-left: 0;
  }

  /* Botones flotantes en tablets */
  .floating-social {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
  }

  /* ===== CORRECCIÓN ESPECÍFICA PARA TABLETS - MODAL DE MAPAS ===== */
  .maps-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .maps-container {
    min-height: 450px;
    max-height: 65vh;
    padding: 15px;
  }

  /* CLAVE: Separar mapa y valoración en tablets */
  .map-content {
    display: none;
    padding-bottom: 20px;
  }

  .map-content.active {
    display: block;
  }

  /* Contenedor específico del mapa en tablets */
  .map-content iframe,
  .map-content > div:first-child {
    height: 280px;
    margin-bottom: 30px; /* Más separación en tablets */
    display: block;
    position: relative;
    z-index: 1;
  }

  /* Rating section específica para tablets */
  .rating-section {
    padding: 16px;
    margin-top: 0; /* Remover margin-top que causa problemas */
    background: rgba(251, 36, 12, 0.05);
    border: 1px solid rgba(251, 36, 12, 0.1);
    border-radius: 10px;
    position: relative;
    z-index: 2;
    clear: both;
  }

  .rating-title {
    font-size: 1.2rem;
  }

  .star {
    font-size: 1.6rem;
    padding: 8px;
    margin: -8px;
  }

  .star-rating {
    gap: 8px;
  }

  .rating-section::before {
    top: -12px;
    width: 70px;
  }

  /* Responsive para indicadores de estado */
  .branch-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .branch-status {
    margin-left: 0;
    margin-top: 0.5rem;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .status-text {
    font-size: 0.9rem;
    font-weight: 500;
  }
}

/* ===== MÓVILES - CORRECCIÓN PRINCIPAL ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-paragraph {
    font-size: 1rem;
  }

  .carousel-item {
    flex: 0 0 250px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .whatsapp-btn {
    width: 60px;
    height: 60px;
  }

  /* Logo responsive */
  .logo-image {
    height: 35px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  /* Botones flotantes en móviles */
  .floating-social {
    bottom: 10px;
    right: 10px;
    gap: 8px;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
  }

  /* ===== CORRECCIÓN CRÍTICA PARA MÓVILES - MODAL DE MAPAS ===== */
  .maps-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .maps-container {
    padding: 12px;
    min-height: 500px; /* Más altura para acomodar contenido */
    max-height: 85vh;
  }

  /* SOLUCIÓN DEFINITIVA: Estructura del contenido del mapa en móviles */
  .map-content {
    display: none;
    padding-bottom: 15px;
    /* CLAVE: Usar flexbox solo en móviles para control total */
    flex-direction: column;
  }

  .map-content.active {
    display: flex; /* Cambiar a flex en móviles */
  }

  /* Contenedor del mapa específico para móviles */
  .map-content > div:first-child,
  .map-content iframe {
    height: 250px !important; /* Altura fija del mapa */
    margin-bottom: 0 !important; /* Sin margin, usar gap de flex */
    flex-shrink: 0; /* No permitir encogimiento */
    order: 1; /* Mapa primero */
  }

  /* Rating section específica para móviles */
  .rating-section {
    padding: 20px;
    margin-top: 0 !important; /* Sin margin-top */
    background: rgba(251, 36, 12, 0.06);
    border: 2px solid rgba(251, 36, 12, 0.15);
    border-radius: 12px;
    order: 2; /* Valoración después */
    flex-shrink: 0; /* No permitir encogimiento */
    margin: 20px 0 0 0; /* Solo margin-top para separación */
  }

  .rating-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .rating-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .star {
    font-size: 1.5rem;
    padding: 12px; /* Área de toque más grande */
    margin: -12px;
  }

  .star-rating {
    gap: 8px;
    margin-bottom: 0.8rem;
  }

  .rating-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .rating-section::before {
    top: -15px;
    width: 80px;
    height: 3px;
  }

  .maps-modal-header {
    padding: 15px 20px;
  }

  .maps-modal-header h3 {
    font-size: 1.4rem;
  }

  .maps-tab {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 40px 0 30px 0;
  }

  .branch-info {
    padding: 1rem;
  }

  .branch-header h4 {
    font-size: 1rem;
  }

  .branch-item {
    font-size: 0.85rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
  }

  /* Responsive para indicadores de estado */
  .branch-status {
    padding: 0.2rem 0.6rem;
  }

  .status-indicator {
    width: 6px;
    height: 6px;
  }

  .status-text {
    font-size: 0.75rem;
    font-weight: 500;
  }

  .info-item {
    font-size: 0.75rem !important;
  }
}

/* ===== PANTALLAS MUY PEQUEÑAS ===== */
@media (max-width: 320px) {
  .hero-title {
    font-size: 2rem;
  }

  .carousel-item {
    flex: 0 0 220px;
  }

  .dish-info {
    padding: 1rem;
  }

  .floating-btn {
    width: 35px;
    height: 35px;
  }

  .maps-container {
    min-height: 450px;
    padding: 10px;
  }

  /* Mapas en pantallas muy pequeñas */
  .map-content > div:first-child,
  .map-content iframe {
    height: 220px !important;
  }

  /* Rating section para pantallas muy pequeñas */
  .rating-section {
    padding: 16px;
    margin: 15px 0 0 0;
  }

  .star {
    font-size: 1.3rem;
    padding: 10px;
    margin: -10px;
  }

  .star-rating {
    gap: 6px;
  }

  .rating-section::before {
    top: -12px;
    width: 60px;
    height: 2px;
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .floating-btn {
    animation: none;
  }

  .floating-btn::before {
    display: none;
  }
}

/* Focus states para accesibilidad */
a:focus,
button:focus {
  outline: 2px solid #fb240c;
  outline-offset: 2px;
}

.floating-btn:focus {
  outline: 3px solid #ede4e0;
  outline-offset: 3px;
}

/* Focus para estrellas */
.star:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
  border-radius: 50%;
}

/* ===== OPTIMIZACIONES DE RENDIMIENTO ===== */
.hero-background,
.about-image img,
.dish-card img,
.gallery-item img {
  will-change: transform;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== ESTADOS ESPECIALES ===== */
.floating-social.hidden {
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
}

/* Mejoras para el modal */
.maps-modal-content {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.maps-modal.active .maps-modal-content {
  transform: scale(1);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
