body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f8f8f9;
}

.container-fluid {
  max-width: 2000px;
  margin: 0 auto;
}

main {
  padding-top: 98px;
  padding-bottom: 0px;
  background-color: #f8f8f9;
}

.content {
  min-height: calc(100vh - 36px);
}

.navbar {
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.5);
}

header .navbar-brand {
  margin-right: 20px;
}

.navbar-nav {
  flex-direction: row;
  align-items: center;
}

.navbar-nav .nav-item {
  margin-left: 5px;
  margin-right: 5px;
}

.navbar-collapse {
  justify-content: space-between; /* Alternativa a justify-content: center */
  align-items: center;
}

.nav-link:hover {
  color: #faa541;
  text-decoration: none;
}

.navbar-nav.ms-auto .nav-item .nav-link {
  color: white;
}

.navbar-nav .nav-item .nav-link:hover {
  color: #faa541;
}

.custom-nav-link {
  font-size: 1.3rem;
}

.logo {
  padding-right: 10px;
  max-width: 150px;
  height: auto;
}

.logo2 {
  padding-right: 10px;
  padding-left: 10px;
  max-width: 220px;
  height: auto;
}

.dropdown-menu .dropdown-item:hover {
  color: #010c35;
  background-color: #faa541;
  text-decoration: none;
}

#shoppingcart {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

#shoppingcart .bi-cart-fill {
  color: #faa541;
}

.btn-light {
  background-color: #faa541;
  margin-top: 20px;
}

.cart-sidebar {
  display: none;
  position: fixed;
  right: 0;
  top: 0;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
}

.cart-sidebar.active {
  display: block;
}

.cart-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.cart-item p {
  margin: 5px 0;
}

.cart-item button {
  background: rgb(203, 2, 2);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

#userArea {
  flex-direction: column;
  display: flex;
  text-align: center;
  margin-top: 10px;
  align-items: center;
}

#userArea a {
  text-decoration: none;
  color: rgb(193, 191, 195);
  font-family: "Ginebra", sans-serif;
  font-size: 1.2rem;
}

#userArea a:hover {
  color: #faa541;
}

#userArea .bi-person-fill {
  color: #1c1b1a;
  padding-right: 5px;
}

h1,
p {
  font-family: "Ginebra", sans-serif;
}

.remove-from-cart-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.remove-from-cart-btn i {
  font-size: 1.5rem;
  color: black; 
  transition: color 0.3s ease; 
}

.remove-from-cart-btn:hover i {
  color: red; 
}

/************************* PANEL GESTION ***************************/

/* Estilos solo para el formulario con ID adminProductForm */
#adminProductForm {
  width: 70%;
  background-color: #f8f9fa;
  padding: 30px;
}

#adminProductForm .form-label {
  font-weight: bold;
}

#adminProductForm .form-control {
  border-radius: 5px;
}

#adminProductForm h2 {
  color: #343a40;
  font-weight: bold;
}

#adminProductForm .btn {
  font-size: 16px;
  padding: 10px;
  border-radius: 5px;
  margin: 20px;
}

#adminProductForm .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

#adminProductForm .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
}

#adminProductForm .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}
/************************* FORMULARIO PRODUCTOS *********************************/

.form-finalizar-compra {
  margin-bottom: 20px;
}

/************************* FOOTER *******************************/

footer {
  flex-shrink: 0; /* Esto asegura que el footer no se encogerá */
  background-color: rgba(0, 0, 0, 0.5);
}

.footer-logo {
  margin-right: 0px;
  margin-left: 0px;
}

#footer .footer-top {
  border-bottom: 1px solid #faa541;
  padding: 10px 0 5px 0;
}

#footer .footer-top .footer-info {
  margin: 5px 0 5px 30px;
}

#footer .footer-top .footer-links {
  margin-bottom: 5px;
  margin-top: 10px;
}

#footer .footer-top .footer-info h3 {
  color: #1c1e21;
  font-size: 1.2em;
  margin: 0 0 0px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 300;
  font-family: "Ginebra", sans-serif;
}

#footer .footer-top .footer-info p {
  font-size: 1em;
  line-height: 24px;
  margin-top: 10px;
  margin-bottom: 0px;
  font-family: "Ginebra", sans-serif;
  color: #1c1e21;
}

#footer .footer-top .footer-links .social-links {
  display: flex;
  justify-content: center;
  width: 85%;
}

#footer .footer-top .social-links a {
  font-size: 1.2em;
  font-family: "Ginebra", sans-serif;
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: rgb(254, 254, 254);
  line-height: 1;
  padding: 8px 0;
  margin: 04px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:focus,
#footer .footer-top .social-links a:hover {
  background: #faa541;
}

#footer .footer-top h4 {
  font-size: 1em;
  font-family: "Ginebra", sans-serif;
  font-weight: 600;
  color: rgb(254, 254, 254);
  position: relative;
  padding-bottom: 5px;
}

#footer .footer-top p {
  color: rgb(254, 254, 254);
}

#footer .footer-info i.bi-telephone,
#footer .footer-info i.bi-envelope {
  color: #faa541;
  padding-right: 5px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul li {
  padding: 0px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #faa541;
  font-size: 1.2em;
}

#footer .footer-top .footer-links ul a {
  text-decoration: none;
  color: rgb(253, 251, 251);
  transition: 0.3s;
  display: inline;
}

#footer .footer-top .footer-links ul a:hover,
#footer .footer-top .footer-links ul a:focus {
  color: #faa541;
}

#footer .footer-top .footer-newsletter form {
  margin-top: 10px;
  background: #f9f9f8;
  padding: 6px 10px;
  position: relative;
  border-radius: 50px;
  border: 1px solid #454035;
}

#footer .footer-top .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
  background: #f9f9f8;
  color: rgb(15, 1, 1);
}

#footer .footer-top .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px 2px 20px;
  background: #faa541;
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
}
#footer .footer-top .footer-newsletter form input[type="submit"]:focus,
#footer .footer-top .footer-newsletter form input[type="submit"]:hover {
  background: #e88006;
}

#footer .copyright {
  text-align: center;
  padding: 5px 0 5px 0;
  color: black;
  margin-right: 6px;
}
#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 1em;
  color: black;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 2rem;
}

.carousel-caption {
  bottom: 3rem;
  z-index: 10;
  border-radius: 30px;
  transform: none;
  background-color: rgba(
    255,
    255,
    255,
    0.6
  ); /* Fondo blanco semitransparente */
  color: #000; /* Color de texto oscuro */
  padding: 1rem;
  text-align: center;
  width: 70%;
}

.carousel-caption-t {
  bottom: 4rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
}

.carousel-item > svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.5);
}

.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 32rem;
  object-fit: cover; /* Mantiene las proporciones */
}

.btn-color {
  background-color: #faa541;
}

/* MARKETING CONTENT
-------------------------------------------------- */

.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

.marketing .col-lg-4 p {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

/* Featurettes
------------------------- */
.featurette {
  padding-left: 1rem;
  padding-right: 0.5rem;
}

.featurette-divider {
  margin: 2rem 0; /* Space out the Bootstrap <hr> more */
}

.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05rem;
}

/* RESPONSIVE CSS
-------------------------------------------------- */
/* Ajustes para evitar que se alarguen o distorsionen en pantallas pequeñas */
@media (max-width: 768px) {
  .carousel {
    margin-bottom: 1rem;
  }

  .carousel-item {
    height: auto;
    position: relative;
    overflow: hidden;
  }

  .carousel-item img {
    height: auto;
    object-fit: cover;
  }

  .carousel-caption {
    position: relative;
    top: auto;
    bottom: auto;
    transform: none;
    background-color: rgba(255,255,255,0.6);
    color: #000;
    padding: 1rem;
    text-align: center;
    width: 70%;
    border-radius: 0;
  }

  /* Ajusta el tamaño del texto y el botón para pantallas pequeñas */
  .carousel-caption h1 {
    font-size: 1rem;
  }

  .carousel-caption a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    margin-bottom: 0.3rem;
    transform: scale(0.8); /* Reduce el tamaño de las tres líneas (indicadores) */
  }
}

@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

/* Ajustes responsive de la navbar */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté encima del carrusel */
  }

  .navbar-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
  }

  .navbar-brand .logo,
  .navbar-brand .logo2 {
    max-width: 50%;
  }

  .navbar-brand .logo {
    margin-left: 10px;
  }

  .navbar-toggler {
    position: absolute;
    right: 20px;
    top: 10px;
  }

  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    background: rgba(0, 0, 0, 0.6); /* MENU DESPLEGABLE PEQUEÑO */
    flex-direction: column;
    text-align: center;
    color: white;
  }

  /* Estilo para enlaces activos o seleccionados en móviles */
  .navbar-nav .nav-item .nav-link:active,
  .navbar-nav .nav-item .nav-link:focus {
    color: #faa541;
    text-decoration: none;
  }

  .dropdown-menu {
    width: 100%; 
  }

  .dropdown-menu .dropdown-item {
    text-align: center;
  }

  .dropdown-divider {
    margin: 0;
  }

  /* Ajusta el área del carrito y el usuario en pantallas pequeñas */
 
  #userArea {
    width: 100%;
    text-align: center !important;
    margin-top: 10px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    background: rgba(251, 251, 251, 0.6);
  }

  #userArea a {
    margin-top: 5px;
    color: black;
  }

  #cart-container a, p{
    margin-top: 5px;
    color: black;
  }

  #cart-container h1, h2, h3{
    margin-top: 5px;
    color: black;
  }

  .cart-sidebar {
    width: 80%;
    height: 80%;
    bottom: 0;
    top: auto;
    border-radius: 10px 10px 0 0; /* Borde redondeado superior */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    background: rgb(250, 249, 249);
  }

  .cart-sidebar.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Botón de cerrar */
  .cart-sidebar .close-btn {
    display: block;
    position: absolute;
    margin: 5px 10px 10px 0px;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgb(203, 2, 2);
    cursor: pointer;
  }

  .cart-product {
    margin-bottom: 10px;
  }

  .cart-product h3 {
    font-size: 1rem; /* Reduce el tamaño del título */
  }

  .cart-product p {
    font-size: 0.9rem; /* Reduce el tamaño del texto */
    line-height: 1.2; /* Mejora la legibilidad */
  }

  .cart-product .btn {
    font-size: 0.8rem; /* Botones más pequeños */
    padding: 3px 8px;
  }
}

/* Ajustes responsive del footer */
@media (max-width: 768px) {
  .social-links a {
    margin: 0 5px; /* Aumenta el espacio entre los iconos */
    font-size: 1.2rem;
  }

  .footer-top .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
  }

  .footer-top .footer-info,
  .footer-top .footer-links {
    text-align: left;
  }

  .footer-info img {
    padding-right: 30px;
    height: auto;
    max-width: 100%;
  }

  .footer-top {
    justify-content: center;
  }

  /* Centra los iconos de redes sociales */
  .footer-top .social-links {
    justify-content: center;
    margin-top: 10px;
    display: flex;
  }

  .small-text {
    font-size: 0.9rem;
  }

  .footer-links .row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .footer-links ul {
    text-align: center;
    margin-bottom: 1rem;
    padding-left: 0;
  }

  #adminProductForm {
    padding: 10px;
  }

  #adminProductForm h2 {
    font-size: 18px;
  }

  #adminProductForm .btn {
    font-size: 12px;
    padding: 6px;
    margin: 5px 3px;
    width: 100%;
  }

  #adminProductForm .form-control {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  /* Ajusta la distribución de las columnas en tablet */
  .footer-links .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-links ul {
    white-space: nowrap;
    width: auto;
    padding-left: 0;
    text-align: left;
  }

  .footer-links .col-6 {
    flex: 0 0 48%; /* Deja espacio entre columnas */
    margin-bottom: 1rem;
  }

  /* Ajustar los íconos de las redes sociales para que estén bien distribuidos en tablets */
  .social-links a {
    margin: 0 10px;
    font-size: 1.5rem;
  }

  .footer-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Añade puntos suspensivos si el texto es demasiado largo */
  }

  /* Asegura que el icono y el texto estén alineados en la misma línea */
  .footer-info i,
  .footer-info span {
    display: inline-block;
    vertical-align: middle;
  }

  .footer-logo img {
    max-width: 80%;
    height: auto;
  }
}

@supports (-webkit-appearance: none) {
  .navbar-nav .nav-item .nav-link {
      font-size: 1.1rem; /* Ajusta el tamaño para Chrome y Opera */
  }
}

@supports (-moz-appearance: none) {
  .navbar-nav .nav-item .nav-link {
      font-size: 1.2rem; /* Ajusta el tamaño para Firefox */
  }
}

.hidden {
  display: none !important;
}

/* Estilos específicos para la página de privacidad */
.privacy-page {
  margin-left: 20px;
}

.privacy-page h2 {
  margin-bottom: 10px;
}

.privacy-page p {
  margin-top: 5px;
  margin-bottom: 20px;
}

.privacy-page ul {
  margin-top: 10px;
  margin-bottom: 20px;
}

.privacy-page ul li {
  margin-bottom: 10px;
}
