/* ========== ESTILOS GENERALES ========== */
:root {
  --primary-color: #e63946;
  --secondary-color: #f1faee;
  --accent-color: #a8dadc;
  --dark-color: #1d3557;
  --light-color: #ffffff;
  --text-color: #333333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, #e63946, #c72a3a);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== HEADER ========== */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  padding: 15px 0;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

nav {
  display: flex;
  justify-content: center;
  background-color: var(--dark-color);
}

nav a {
  color: var(--light-color);
  text-decoration: none;
  padding: 15px 20px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: var(--primary-color);
}

/* ========== CARRUSEL ========== */
.carousel {
  padding: 40px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  margin: 20px 0;
  position: relative;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-item {
  min-width: calc(100% / 3);
  padding: 0 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
  margin-top: 10px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  margin: 0 10px;
}

.carousel-control:hover {
  background-color: var(--primary-color);
  color: white;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicator.active {
  background-color: var(--primary-color);
}

/* ========== MENÚ DE PLATILLOS ========== */
.menu.contenedor {
  padding: 30px 15px;
}

.texto-platillos {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--dark-color);
}

.botones-platillos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-verde {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-verde:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.platillos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.platillo {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.platillo:hover {
  transform: translateY(-5px);
}

.platillo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.platillo h3 {
  padding: 10px 15px 0;
  font-size: 1.2rem;
}

.platillo p {
  padding: 0 15px;
  color: #666;
  font-size: 0.9rem;
  margin: 10px 0;
}

.precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 15px;
}

.precio p {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
}

.precio button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== SECCIONES COMUNES (HISTORIA, UBICACIÓN) ========== */
.seccion {
  padding: 60px 0;
}

.seccion-titulo {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 40px;
  position: relative;
}

.seccion-titulo::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Historia */
.historia-contenido {
  background: var(--light-color);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 1.1rem;
  border-left: 5px solid var(--primary-color);
}

/* Locales */
.locales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.local-card {
  background: var(--light-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.local-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.local-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}

.local-card:hover img {
  transform: scale(1.05);
}

.local-info {
  padding: 20px;
}

.local-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.local-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.local-info i {
  color: var(--primary-color);
  width: 20px;
  font-size: 1.1rem;
}


.contacto-seccion {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.contacto-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--light-color);
  border-radius: 40px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  padding: 50px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}


.contacto-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 20px;
}

.collage-item {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.collage-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 45px rgba(230, 57, 70, 0.3);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collage-item:hover img {
  transform: scale(1.1);
}

.collage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(230, 57, 70, 0.9), rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.collage-item:hover .collage-overlay {
  opacity: 1;
}


.collage-item.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.collage-item.tall {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}


.contacto-derecha {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}


.contacto-info {
  flex: 1 1 300px;
  background: var(--gradient);
  color: white;
  padding: 40px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 30px rgba(230, 57, 70, 0.3);
  position: relative;
  overflow: hidden;
}

.contacto-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0.5;
}

.contacto-info h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.contacto-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.contacto-info i {
  width: 30px;
  font-size: 1.5rem;
}

.contacto-info .redes-contacto {
  margin-top: 25px;
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.contacto-info .redes-contacto a {
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-info .redes-contacto a:hover {
  transform: translateY(-8px) scale(1.1);
  background: rgba(255,255,255,0.4);
}

/* Formulario de contacto */
.contacto-form {
  flex: 2 1 500px;
  background: #ffffff;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
}

.contacto-form .form-group {
  margin-bottom: 25px;
}

.contacto-form .form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacto-form .form-group input,
.contacto-form .form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #edf2f7;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: #fafdff;
}

.contacto-form .form-group input:focus,
.contacto-form .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.1);
  outline: none;
  background-color: white;
}

.contacto-form .form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-enviar {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 60px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
  transition: all 0.3s;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-enviar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-enviar:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(230, 57, 70, 0.4);
}

.btn-enviar:hover::before {
  left: 100%;
}

.mensaje-exito {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: #1a5a3a;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* ========== FOOTER ========== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 0 0;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.footer-section {
  padding: 0 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-text {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4CAF50;
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  color: #fff;
  background: #333;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #4CAF50;
  transform: translateY(-3px);
}

.footer-links,
.footer-hours,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-hours li,
.footer-contact li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #4CAF50;
}

.footer-hours li span {
  color: #4CAF50;
  font-weight: 500;
  display: inline-block;
  width: 70px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

.footer-contact i {
  color: #4CAF50;
  width: 20px;
  text-align: center;
}

.reserve-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 200px;
}

.reserve-btn:hover {
  background: #3e8e41;
  transform: translateY(-2px);
}

.footer-bottom {
  background: #111;
  padding: 1.2rem 1rem;
  text-align: center;
  margin-top: 1rem;
}

.footer-bottom p {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.legal-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #4CAF50;
}

/* ========== CHAT WIDGET ========== */
#chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  z-index: 9999;
}

#chat-header {
  background-color: #25d366;
  color: white;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

#send-btn {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
}

#chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
}

.user-message {
  background-color: #d4f8d4;
  align-self: flex-end;
}

.bot-message {
  background-color: #e8e8e8;
  align-self: flex-start;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-reply {
  background-color: #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}

/* Estilos para el formulario de datos (chat) */
.datos-cliente-form {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.btn-enviar-datos {
  padding: 10px 15px;
  background-color: #ff6b00;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.opciones-envio {
  margin-top: 15px;
}

.opcion-envio {
  padding: 12px;
  margin: 8px 0;
  background-color: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.opcion-envio:hover {
  background-color: #e0e0e0;
}

.opcion-envio span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
  .carousel-item {
    min-width: 50%;
  }

  .contacto-collage {
    grid-template-columns: repeat(3, 1fr);
  }

  .collage-item.wide,
  .collage-item.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
  }

  nav.active {
    display: flex;
  }

  .carousel-item {
    min-width: 100%;
  }

  .carousel-controls {
    display: none;
  }

  .platillos {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .platillo h3 {
    font-size: 1rem;
  }

  .platillo p {
    font-size: 0.8rem;
  }

  .precio p {
    font-size: 0.9rem;
  }

  .botones-platillos {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
  }

  .seccion-titulo {
    font-size: 2rem;
  }

  .locales-grid {
    grid-template-columns: 1fr;
  }

  .contacto-wrapper {
    padding: 30px;
  }

  .contacto-collage {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .collage-item {
    aspect-ratio: 1 / 1;
  }

  .contacto-derecha {
    flex-direction: column;
  }

  .contacto-info {
    text-align: center;
  }

  .contacto-info p {
    justify-content: center;
  }

  .contacto-info .redes-contacto {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .platillos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .platillo img {
    height: 120px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 0.8rem;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-heading {
    font-size: 1.1rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-hours li {
    display: flex;
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .reserve-btn {
    margin: 0.8rem auto 0;
  }

  .footer-bottom {
    padding: 1rem 0.5rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .contacto-collage {
    grid-template-columns: 1fr;
  }

  .collage-item {
    aspect-ratio: 16 / 9;
  }

  .contacto-wrapper {
    padding: 20px;
  }

  .contacto-info {
    padding: 30px;
  }

  .contacto-form {
    padding: 30px;
  }
}