html {
  --primaryColor: #011C40;
  --secondaryColor: #023859;
  --bgColor: #26658C;
  --fifthColor: #54ACBF;
  --color-light: #A7EBF2;
  --textColor: #FFFFFF;
  --hgColor: #FDF5AA;
  --mainFamilyFont: "Outfit", sans-serif;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(90deg, var(--secondaryColor) 0%, var(--bgColor) 100%);
  min-height: 100vh;
  color: var(--textColor);
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.main-wrapper {
  max-width: 85rem;
}

/* ------------------------------
   ZONA SUPERIOR HERO
   ------------------------------ */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  max-width: 81.25rem;
  margin: 0 auto;
}

.hero-card {
  min-height: 39.063rem;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0.625rem 1.25rem #011C40;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}

/* ------------------------------
   TEXTO CENTRO HERO
   ------------------------------ */
.hero-center {
  background-image: url('assets/FondoUno.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center-card .overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem 1rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-relative {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* TITULO GRANO & CLICK */
.brand-title {
  color: var(--hgColor);
  font-weight: 43.75rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  font-size: 2.3rem;
}

/* ICONOS */
.feature-icon {
  color: var(--hgColor);
}

.hero-info p {
  font-size: 0.95rem;
}

.mt-2 {
  color: var(--textColor);
}

/* ------------------------------
   SECCIÓN DE TÍTULO PRODUTOS
   ------------------------------ */
.section-title-container h2 {
  font-size: 3rem;
  color: var(--hgColor);
  font-weight: 35rem;
  margin-bottom: 0 !important;
  line-height: 1.2;
}

/* ------------------------------
   SECCIÓN DE PRODUCTOS
   ------------------------------ */

.classics-section {
  padding-bottom: 0;
  max-width: 1200px;
  padding-top: 75px;
  margin: 0 auto;
}

.classic-card {
  background-color: var(--color-light);
  border-radius: 13rem 13rem 2rem 2rem;
  /* Forma de arco superior */
  padding: 0.5rem 0.2rem 0rem 0.2rem;
  transition: transform 0.3s ease;
  margin-bottom: 0;
  box-shadow: 0 -10px 25px rgba(1, 28, 64, 0.3);
  position: relative;
}

.classic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 -15px 50px rgba(1, 28, 64, 0.25);
}

.classic-arch-img {
  background-color: var(--color-light);
  border-radius: 13rem 13rem 0 0;
  /* Arco interno */
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
  position: relative;

}

.classic-arch-img img {
  width: 66%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  position: absolute;
  bottom: 33px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.classic-content {
  padding: 1.5rem;
  background: linear-gradient(90deg, var(--primaryColor) 0%, var(--bgColor) 100%);
  border-radius: 3rem 3rem 2rem 2rem;
}

.product-name {
  color: var(--hgColor);
}

.product-description {
  font-size: 0.9rem;
  color: var(--textColor);
  margin-bottom: 1.5rem;
  min-height: 3rem;
  opacity: 0.9;
}

/* Ajuste para que quede pegado al footer */
#page-content {
  margin-bottom: 0 !important;
}

.mb-5.products-container {
  display: none;
  /* Ocultamos la versión anterior */
}


/* ------------------------------
   BOTONES VER DETALLES
   ------------------------------ */
.btn-details {
  background-color: var(--hgColor);
  color: var(--primaryColor);
  font-size: 1rem;
  font-weight: 37.5rem;
  border-radius: 3.125rem;
  padding: 0.5rem 1.5rem;
  border: none;
  transition: transform 0.2s, background-color 0.2s;
  min-height: 2.75rem;
}

.btn-details:hover {
  background-color: var(--color-light);
  transform: scale(1.01);
}

/* GRUPO 2: Imágenes Grandes */
.large-products-group {
  display: flex;
  gap: 3rem;
  flex: 2;
  justify-content: center;
}

.large-img-box img {
  width: 13.25rem;
  height: 16rem;
  object-fit: cover !important;
  border-radius: 0.938rem;
  box-shadow: 0 0.5rem 1.25rem #011C40;
}

/* ------------------------------
   NAVBAR
   ------------------------------ */

/* --- ANIMACIÓN DE ENTRADA (FADE-IN) --- */
@keyframes fadeInNavbar {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#encabezado {
  position: sticky !important;
  top: 0;
  z-index: 3000 !important;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeInNavbar 0.8s ease-out forwards;
}

.navbar {
  width: 95%;
  max-width: 1300px;
  margin: 15px auto !important;
  border-radius: 50px !important;
  background: rgba(38, 101, 140, 0.8) !important;
  backdrop-filter: blur(15px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: 'Outfit', sans-serif;
  padding: 8px 25px !important;
  position: relative !important;
}

#encabezado {
  position: sticky !important;
  top: 0;
  z-index: 2000 !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar {
  width: 95%;
  max-width: 1300px;
  margin: 15px auto !important;
  border-radius: 50px !important;
  background: #26658C !important;
  backdrop-filter: blur(15px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
  padding: 8px 20px !important;
  position: sticky !important;
  top: 15px;
  z-index: 2000 !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #FDF5AA !important;
  text-shadow: 0 0 10px rgba(253, 245, 170, 0.2);
  transform: translateY(-1px);
}

#btn-abrir-carrito {
  background: #FDF5AA;
  border: 1px solid rgba(253, 245, 170, 0.4);
  color: #011C40 !important;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

#btn-abrir-carrito:hover {
  background: #FDF5AA !important;
  box-shadow: 0 0 15px rgba(253, 245, 170, 0.3);
}

/* Estilos del Carrito Lateral */

.carrito-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #023859 !important;
  color: #ffffff !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
}

.carrito-sidebar.active {
  right: 0 !important;
}

.carrito-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 2400;
  backdrop-filter: blur(3px);
}

.carrito-overlay.active {
  display: block !important;
}

.carrito-header {
  padding: 20px 25px;
  background: #011C40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #FDF5AA;
}

.carrito-header h3 {
  margin: 0;
  font-family: 'Aref Ruqaa',
    serif;
  color: #FDF5AA !important;
}

#cerrar-carrito {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.carrito-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y:
    auto;
  background: rgba(1, 28, 64, 0.7);
}

.item-carrito-sidebar {
  border-bottom: 1px solid rgba(253, 245, 170, 0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.carrito-footer {
  padding: 25px;
  background: #011C40;
  border-top: 1px solid rgba(253, 245, 170, 0.2);
}

.btn-pagar-custom {
  width: 100%;
  padding: 14px;
  background-color: #FDF5AA !important;
  color: #011C40 !important;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-pagar-custom:hover {
  background-color: #ffffff !important;
  transform: translateY(-2px);
}

/* --- boton eliminar producto --- */

.btn-qty {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-qty:hover {
  background: #FDF5AA;
  color: #011C40;
  border-color: #FDF5AA;
}

.btn-eliminar-item {
  background: none;
  border: none;
  color: #A7EBF2;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.btn-eliminar-item:hover {
  color: #FDF5AA;
  text-decoration: underline;
}

/* botón cerrar sesión */
.dropdown-menu {
  background-color: var(--secondaryColor);
  border: 1px solid #FDF5AA;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(167, 235, 242, 0.2);
  margin: 5px !important;
}

.dropdown-item {
  color: #FDF5AA !important;
  font-family: 'Inter Tight', sans-serif;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(167, 235, 242, 0.3);
  color: #A7EBF2 !important;
}

.logout-btn {
  font-weight: bold;
  color: var(--hgColor) !important;
}

.logout-btn:hover {
  background-color: rgba(39, 41, 1, 0.1);
  color: var(--hgColor) !important;
}

.swal2-confirm {
  color: var(--primaryColor) !important;
  font-weight: 700;
}

.swal2-cancel {
  color: var(--primaryColor) !important;
  font-weight: 700;
}


/* ------------------------------
   ESTILOS DE FOOTER
   ------------------------------ */
.footer-gradient a,
.footer-gradient .small,
.footer-gradient div {
  color: #011C40 !important;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
}

.footer-gradient a:hover {
  color: #023859 !important;
  text-decoration: underline !important;
}

#footer-container {
  flex-shrink: 0;
  width: 100%;
}

.footer-gradient {
  background: linear-gradient(to right, white, var(--fifthColor));
  padding: 1rem 0;
  margin-top: 0 !important;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: var(--primaryColor);
  text-decoration: none;
}


/* ------------------------------
   RESPONSIVIDAD (Media Queries)
   ------------------------------ */

@media (max-width: 64rem) {

  .hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
    position: relative;
    height: 100%;
    min-height: 31.25rem;
  }

  .hero-card {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    height: auto !important;
    min-height: 31.25rem;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: none;
  }

  .hero-card img {
    height: 100%;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
  }

  .content-relative {
    position: relative;
    z-index: 10;
  }

  .hero-left,
  .hero-right {
    display: none !important;
  }

  .hero-center {
    z-index: 5;
    background-image: url('assets/FondoUno.png') !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center !important;

    padding: 1rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section-title-container h2 {
    font-size: 2rem;
    text-align: center;
  }

  .products-layout {
    flex-direction: column;
    align-items: center;
  }

  .small-products-group {
    justify-content: row;
  }

  .large-products-group {
    flex-direction: row;
    align-items: center;
  }

  .classics-section {
    padding-left: 0.5rem;
    padding-right: 1rem;
    padding-top: 10px;
  }

  .classic-card {
    margin-top: 60px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .classic-arch-img {
    height: 150px;
  }


  .classic-card {
    border-radius: 13rem 13rem 3rem 3rem;
  }

  .classic-content {
    border-radius: 3rem 3rem 2rem 2rem;
  }

  .small-products-group,
  .large-products-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 1rem;
  }

  .navbar {
    position: relative;
  }

  #mainNavbarContent {
    position: absolute;
    top: 85%;
    right: 0;
    width: 10rem;
    background-color: var(--secondaryColor);
    padding: 1rem;
    border-radius: 1rem;
    z-index: 1000;
  }

  .Btn,
  .Btn2 {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .Btn::before,
  .Btn2::before {
    transition: none !important;
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    background-color: transparent !important;
  }

  .Btn:hover,
  .Btn2:hover {
    transform: none !important;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103) !important;
  }

  .Btn:hover::before,
  .Btn2:hover::before {
    transform: none !important;
  }

  .Btn:active,
  .Btn2:active {
    transform: none !important;
  }

  .footer-links {
    align-items: center;
  }

  .navbar-nav .dropdown-menu {
    background: transparent !important;
    position: static !important;
    float: none;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* EL BOTÓN DE CERRAR SESIÓN */
  .dropdown-item.logout-btn {
    width: auto !important;
    display: inline-block !important;
    margin: 1px !important;
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--hgColor) !important;
    border-radius: 8px;
    text-align: center;
  }

  .dropdown-item.logout-btn:hover {
    background-color: rgba(39, 41, 1, 0.1) !important;
    color: var(--hgColor) !important;
    border-color: var(--color-light) !important;
  }

  .nav-item.dropdown {
    width: 100%;
    margin-bottom: 0.5rem !important;
  }
}