@media (max-width: 370px) {
.logo img[alt="logoExito"] {
  height: 1.4rem;
  width: auto;
  max-width: 70px;
  aspect-ratio: 1/1;
  object-fit: contain;
}
    .logo img:not([alt="logoExito"]) {
    height: 4rem;
    max-width: 200px;
  }
}
.abrir-menu img {
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.icone-home svg {
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), height 0.4s cubic-bezier(0.4,0,0.2,1);
}



@font-face {
  font-family: 'gordo';
  src: url('../src/assets/fonts/DK LONGREACH.OTF') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'dimbo';
  src: url('../src/assets/fonts/DIMBO REGULAR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* --------------------- */
/* 🧁 Estructura general  */
/* --------------------- */

/* Fondo oscuro al abrir menú */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Encabezado */
.header-container {
  background-color: #de0a17;
  height: 110px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  z-index: 1000;
}

/* Logo centrado */
.logo {
  height: 120%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3%;
  gap: 3rem;
}

@media (max-width: 480px) {
  .logo {
    gap: 0.6rem;
  }
}

.logo img {
  height: clamp(6.4rem, 5vw, 6rem);
  width: auto;
  max-width: 100%;

}

/* Ola decorativa */
.wave-header {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-top: -1.5%;
  margin-left: -50vw;
  overflow: hidden;
  line-height: 1;
  transform: scaleY(-1);
  filter: drop-shadow(0px -15px 7px rgba(114, 56, 33, 0.22));
  z-index: 2;
}

/* Header fijo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
}

/* Espacio debajo del header */
body {
  padding-top: 130px;
  font-size: clamp(16px, 1.2vw, 18px);
}

/* --------------------- */
/* 🍔 Menú hamburguesa    */
/* --------------------- */

.abrir-menu {
  background: none;
  border: none;
  font-size: clamp(2.4rem, 3vw, 3.5rem);
  color: white;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 2001;
  transition: transform 0.3s ease-in-out;
}
.logo img[alt="logoExito"] {
  height: 7rem;
}
.abrir-menu:hover {
  transform: scale(1.08) rotate(3deg);
}

.abrir-menu img {
  width: 70px;
  height: 100px;
}

/* Menú lateral */
.nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: min(350px, 85vw);
  height: 100vh;
  background-color: white;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 2000;
  box-shadow: 0px 0 10vmax rgba(0, 0, 0, .5);
  overflow-y: auto;
}

.nav.visible {
  transform: translateX(0);
}

.cerrar-menu {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #de0a17;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
}

.nav-title {
  font-size: clamp(2rem, 1.5vw, 1.6rem);
  font-weight: bold;
  color: #de0a17;
  margin-bottom: 0.2rem;
  margin-top: -0.01rem;
  font-family: "gordo", "dimbo", Arial, sans-serif;
}

.nav-separator hr {
  all: unset;
  display: block;
  height: 3px;
  width: 100%;
  background-color: #de0a17;
  margin: 0rem 0 1rem 0;
}

.nav-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-list li a {
  text-decoration: none;
  color: rgba(114, 56, 33);
  font-family: "gordo", "dimbo", Arial, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  transition: all 0.2s ease-in-out;
}

.nav-list li a:hover {
  text-decoration: underline;
  color: #de0a17;
}

/* -------------------- */
/* 🏠 Icono de home     */
/* -------------------- */

.icone-home {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

.icone-home:hover {
  transform: scale(1.08) rotate(-2deg);
}

.icone-home svg {
  width: 80px;
  height: 80px;
  fill: white;
  color: white;
}

/* --------------------- */
/* 📱 Responsive media   */
/* --------------------- */

@media (max-width: 768px) {
  .header-container {
    height: 100px;
    padding: 0 0.5rem;
  }

  .logo img {
    height: 5rem;
  }

  .abrir-menu {
    font-size: 2.8rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  .logo img[alt="logoExito"] {
    height: 6rem;
    gap: 0.5em; /* Espacio entre los logos */

}
  .nav {
    width: 80%;
    padding: 1.5rem 1rem;
  }

  .icone-home svg {
    width: 60px;
    height: 60px;
    margin-top: 15px;
  }

  .icone-home {
    top: 15px;
    right: 15px;
  }

  body {
    padding-top: 110px;
  }
  .abrir-menu img {
  width: 55px;
  height: 80px;
}
}

@media (max-width: 480px) {
  .wave-header{
    margin-top: -3.8px;
  }
  .header-container {
    height: 90px;
  }

  .logo img {
    height: 5rem;
    padding-top: 0.5rem;
  }
  .abrir-menu {
    font-size: 1.4rem;
    top: 0.4rem;
    left: 0.4rem;
  }

  .nav {
    width: 90%;
  }

  .icone-home svg {
    width: 40px;
    height: 40px;
  }

  .icone-home {
    top: 10px;
    right: 10px;
  }

  body {
    padding-top: 100px;
  }
  .abrir-menu img {
  width: 40px;
  height: 60px;
}
}



