/* ==========================
   Fuentes
========================== */
.ubuntu-light {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .ubuntu-light-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .ubuntu-regular-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .ubuntu-medium-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .ubuntu-bold-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
  }

/* ==========================
   Configuración global
========================== */
/* No permitir seleccionar */
html {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: "Ubuntu", sans-serif;
}

/* ==========================
   Header
========================== */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    font-family: "Ubuntu", sans-serif;
    border-radius: 10px 10px 10px 10px;
}

header hr {
    margin-top: 20px;
    border-top: 2px solid white;
}

header nav {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

header .letras {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 225px;
    height: 50px;
}

header .letras a {
    display: flex;
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-align: center;
    margin-left: 5px;
}

header nav ul {
    margin-left: auto;
    margin-right: 20px;
    list-style: none;
    display: flex;
    gap: 20px;
    text-align: right;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    display: flex;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2em;
}

header nav ul li a:hover {
    color: rgb(170, 41, 41);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.842);
}

/* Contenedor | Cabecera - 2*/
.contenedor {
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    padding: 20px;
    border-radius: 10px 10px 10px 10px;
    height: 20px;
}

/* ==========================
   Sidebar del carrito
========================== */
.contenedor .cart-container {
    position: absolute;
    top: 10px;
    right: 20px;
}

.cart-icon {
    width: 50px; /* Botón cuadrado */
    height: 50px;
    background: rgba(170, 41, 41);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1.5em;
    text-decoration: none;
    position: relative;
    transition: background 0.3s ease;
}

.cart-icon:hover {
    background: rgba(170, 41, 41, 0.75);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    color: rgb(170, 41, 41);
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #333;
    font-family: 'Ubuntu', sans-serif;
    color: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5em;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

.cart-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cart-sidebar ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.9em;
}

.cart-sidebar ul li .product-name {
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    margin-right: 10px;
}

.cart-sidebar ul li .quantity {
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    margin: 0 5px;
    color: white;
    font-family: 'Ubuntu', sans-serif;
}

.cart-sidebar ul li .price,
.cart-sidebar ul li .subtotal {
    font-family: 'Ubuntu', sans-serif;
    color: white;
    margin-left: 5px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    letter-spacing: 0;
}

.cart-item-details .product-name {
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 0;
}

.cart-item-details .quantity-price {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 0.9em;
    letter-spacing: 0;
}

.cart-item-details .quantity {
    font-weight: bold;
}

.cart-item-details .price {
    font-weight: bold;
}

.delete-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1em;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.delete-btn:hover {
    color: rgba(170, 41, 41, 0.8);
}

.cart-footer {
    margin-top: 20px;
    border-top: 2px solid #555;
    padding-top: 10px;
}

.cart-footer p {
    font-family: 'Ubuntu', sans-serif; 
    font-size: 1.2em;
    margin: 10px 0;
    font-family: 'Ubuntu', sans-serif;
}

.checkout-btn {
    font-family: 'Ubuntu', sans-serif;
    background-color: rgba(170, 41, 41);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: rgba(170, 41, 41, 0.8);
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

#cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================
   Sidebar
========================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #333;
    color: white;
    padding: 20px;
    transition: transform 0.3s ease;
    transform: translateX(-100%); 
    z-index: 1000; 
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.open-sidebar {
    width: 50px;
    height: 50px;
    background: rgba(170,41,41);
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 20px;
    border-radius: 5px;
}

.open-sidebar:hover {
    background: rgba(170,41,41,0.75);
}

.close-btn {
    background-color: rgb(170, 41, 41);
    position: absolute;
    align-items: center;
    text-align: center;
    height: 30px;
    width: 30px;
    top: 20px;
    right: 20px;
    font-size: 20px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(170, 41, 41, 0.75);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================
   Mapa
========================== */
/* ==========================
   Main
========================== */
main {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url(../img/fondomain.png);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px 10px 10px 10px;
    height: 900px;
}
.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: -40px;
}

iframe {
    border: 0;
    border-radius: 10px;
    width: 80%;
    height: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================
   Footer
========================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-family: Arial, sans-serif;
    border-radius: 10px 10px 10px 10px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-section {
    max-width: 300px;
    text-align: left;
}

.footer-section h2 {
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    text-align: center;
    text-shadow: 
    1.5px 1.5px 1px rgb(9, 6, 9,0.6),
    1.5px 1.5px 2px rgba(34, 23, 23, 0.3),
    1.5px 1.5px 3px rgb(77, 37, 37);
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 15px;
    margin-left: 30px;
    font-size: 14px;
    text-align: left;
}

.perfil-container {
    position: relative;
    display: inline-block;
}

.foto-perfil {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: -7.5px;
}

.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    width: auto; /* Ajusta el ancho automáticamente al contenido */
    padding: 5px 10px; /* Opcional: Añade un poco de espacio alrededor del texto */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Transiciones suaves */
}

.dropdown-menu a:hover {
    color: rgba(170, 41, 41, 0.9); /* Cambia el color del texto */
    text-shadow: 2px 2px 5px rgba(170, 41, 41, 0.8); /* Agrega un efecto de sombra */
    transform: scale(1.05); /* Efecto de agrandamiento */
}

.btn-iniciar-sesion {
    display: inline-block;
    background-color: rgba(170, 41, 41, 0.9); /* Color de fondo principal */
    color: white; /* Color del texto */
    font-family: 'Ubuntu', sans-serif;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px; /* Bordes redondeados */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra inicial */
}

.btn-iniciar-sesion:hover {
    background-color: rgba(170, 41, 41, 0.75); /* Color de fondo al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandamiento */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.8); /* Sombra en el texto */
}