/* ===== OPTIMIZACIONES DE LOGOS RESPONSIVOS ===== */

/* Contenedores de logos */
.logo-container,
.footer-logo-container,
.hero-logo-container,
.cart-logo-container {
  display: block;
}

/* Logos principales */
.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop - logos más grandes */
@media (min-width: 768px) {
  .logo-img {
    width: 126px;
    height: 60px;
  }

  .hero-logo {
    width: 174px;
    height: 83px;
  }
}

/* Mobile - logos más pequeños */
@media (max-width: 767px) {
  .logo-img {
    width: 84px;
    height: 40px;
  }

  .hero-logo {
    width: 130px;
    height: 62px;
  }
}

/* Footer logos */
.footer-logo-container img {
  width: 100px;
  height: 47px;
}

/* Cart/thumbnail logos */
.cart-logo {
  width: 64px;
  height: 30px;
}

/* Optimización de carga con lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="eager"] {
  opacity: 1;
}

/* Mejoras de rendimiento para logos */
.logo-container picture,
.footer-logo-container picture,
.hero-logo-container picture {
  display: block;
  line-height: 0;
}

/* Soporte para formatos modernos */
picture {
  display: block;
}

picture img {
  width: 100%;
  height: auto;
}

/* ===== FIN OPTIMIZACIONES DE LOGOS ===== */

/* FOOTER CONTACT FIX - FORZAR ELEMENTOS EN COLUMNA */
.footer .contact-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.footer .contact-info p {
  display: flex !important;
  width: 100% !important;
  margin-bottom: 15px !important;
}

/* Unificar tamaño y alineación de botones de login y Google en login.html */
.login-form .btn-login,
.btn-google {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  box-sizing: border-box;
}

.btn-google {
  background: #4285f4;
  color: white;
  border: none;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-login {
  background: #8b0000;
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #a52a2a;
  transform: translateY(-2px);
}
/* Reset global para eliminar espacios no deseados */
* {
  box-sizing: border-box;
}

/* Estilos específicos para la página de inicio */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0; /* Añadir padding 0 para eliminar espacios */
  font-family: "Montserrat", Arial, sans-serif;
  background: #fff8f0;
  color: #2d2d2d;
  overflow-x: hidden; /* Prevenir scroll horizontal */
}

/* Barra de contacto superior - COMPLETAMENTE DESHABILITADA */
.contact-bar {
  display: none !important;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: #e63946;
  width: 16px;
  text-align: center;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #e63946;
}

.contact-hours {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-hours i {
  color: #e63946;
}
.hero {
  background: url("../img/hero.jpg") center/cover no-repeat;
  min-height: calc(100vh - 70px); /* Restar la altura del navbar (70px) */
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 2px 2px 8px #000a;
  margin-top: 70px; /* Solo la altura del navbar */
  margin-bottom: 0; /* Eliminar margen inferior */
  position: relative;
  width: 100%;
}
.hero-logo {
  width: 600px;
  height: auto;
  margin-bottom: 1em;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
}

/* Asegurar que el logo del navbar sea diferente al del hero */
.navbar img {
  width: 48px !important;
  height: 48px !important;
}
.hero h1 {
  font-size: 3rem;
  margin: 0.5em 0 0.2em 0;
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 1.5em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0; /* Reducido de 3rem a 0 para eliminar espacio extra */
}

/* Asegurar que no haya espacios entre hero y footer */
.hero + .footer {
  margin-top: 0;
}

.cta {
  background: #e63946;
  color: #fff;
  padding: 1.2em 3em;
  border: none;
  border-radius: 35px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.cta:hover {
  background: #b71c1c;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.cta-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.cta-secondary:hover {
  background: #fff;
  color: #e63946;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}
.section {
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px #0001;
}
.cortes {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}
.corte {
  flex: 1 1 220px;
  background: #fbeee0;
  border-radius: 12px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 1px 6px #0001;
}
.corte img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1/1;
  background: #eee;
  display: block;
  margin: 0 auto 1em auto;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .contact-item {
    font-size: 0.8rem;
  }

  .contact-hours {
    font-size: 0.8rem;
  }

  .navbar {
    top: 0 !important;
    height: 70px !important;
  }

  .hero {
    margin-top: 70px; /* Solo la altura del navbar en mobile también */
    min-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0; /* Reducido de 4rem a 0 para eliminar espacio extra */
  }

  .cta {
    width: 100%;
    max-width: 280px;
    font-size: 1.1rem;
    padding: 1em 2em;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-logo {
    width: 240px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* NAVBAR - SOLO NAVBAR EN LA PARTE SUPERIOR */
.navbar {
  background: #000000 !important;
  color: white !important;
  padding: 15px 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 70px !important;
  box-sizing: border-box !important;
  transform: none !important;
  margin: 0 !important;
  border: none !important;
  min-height: auto !important;
  max-height: none !important;
}

.nav-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 2em !important;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-logo {
  display: flex !important;
  align-items: center !important;
  font-weight: bold !important;
  font-size: 1.3em !important;
  color: #fff !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar .nav-logo img {
  width: 96px !important;
  height: 48px !important;
  margin-right: 0.7em;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px #0006;
  object-fit: contain;
  padding: 4px;
}

.nav-menu {
  list-style: none !important;
  display: flex !important;
  gap: 1.5em !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-menu a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 1em;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #e63946 !important;
}

.cart-icon {
  position: relative;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.8em;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-icon:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e63946;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Fix para SweetAlert2 toast - evitar que quede debajo del navbar */
.swal-toast-fixed {
  top: 80px !important;
  z-index: 99999 !important;
}

/* Estilos para el nuevo formato de contacto */
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.contact-number {
  color: #ff6b35;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-details strong {
  color: #fff;
  font-size: 0.9rem;
}

.contact-details a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #fff;
  text-decoration: underline;
}
