/* ==========================
   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;
}

/* Quitar subrayado de los enlaces */
a {
    text-decoration: none; /* Elimina el subrayado */
}

/* Mantener el subrayado solo al pasar el mouse si es necesario */
a:hover {
    text-decoration: none; /* Asegura que no haya subrayado al pasar el mouse */
}

/* ==========================
   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;
}

.clear-cart-btn {
    background-color: rgba(170, 41, 41);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaciado entre el icono y el texto */
    width: 100%; /* Ocupa todo el ancho del contenedor */
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px; /* Espaciado superior */
}

.clear-cart-btn i {
    font-size: 1.2em; /* Tamaño del icono */
}

.clear-cart-btn:hover {
    background-color: rgba(170, 41, 41, 0.8);
    transform: scale(1.05); /* Efecto de agrandamiento */
}

/* Contenedor del botón "Vaciar Carrito" */
.cart-clear {
    margin-top: auto; /* Empuja el botón hacia la parte inferior */
    padding-top: 20px;
    border-top: 2px solid #555; /* Línea separadora */
    text-align: center;
}

/* ==========================
   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;
}

/* ==========================
   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: 1850px;
}

/* ==========================
   Productos informáticos
========================== */
#productos-informaticos {
    text-align: left;
    padding: 20px;
    background-color: transparent;
}

#productos-informaticos h2 {
    color: rgb(255, 255, 255);
    font-size: 28px;
    font-family: 'Ubuntu', sans-serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.842);
}

/* ==========================
   Carrusel
========================== */
.carousel-container {
    width: 100%;
    max-width: 2000px;
    height: 340px;
    margin: auto;
    margin-top: -20px;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}
.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.text-container {
    flex: 1;
    padding: 20px;
}
.text-container h2 {
    font-size: 24px;
    color: #111;
}
.image-container {
    flex: 1;
    text-align: center;
}
.image-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 10px;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(170, 41, 41, 0.897);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 30%;
    z-index: 10;
    pointer-events: auto;
}

.prev { left: 10px; }
.next { right: 10px; }
.hidden { display: none !important;}

/* ==========================
   Carrusel de productos
========================== */
.productos-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px auto;
  z-index: 5;
}

.productos-carousel {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.productos-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.3s ease-in-out;
}

/* Ajustar el diseño del contenedor producto */
.producto {
  display: flex;
  flex-direction: column; /* Asegura que los elementos estén en columna */
  align-items: center; /* Centra los elementos horizontalmente */
  justify-content: center; /* Centra los elementos verticalmente */
  text-align: center; /* Centra el texto */
  flex: 0 0 calc(11% - 10px);
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #222;
  border-radius: 50px;
  padding: 15px;
  width: 225px;
  transition: transform 300ms ease-in-out;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 15px;
}

.producto p {
  font-family: 'Ubuntu', sans-serif;
  font-size: 15px;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  margin-top: 10px; /* Añade un margen superior para separar el texto de la imagen */
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.producto:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 1px rgb(170, 41, 41);
}

.titulo-con-linea {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: -20px;
}

.titulo-con-linea .line {
    width: 5px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    margin-right: 8px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.separador_main {
    width: 3px;
    height: 50px;
    background-color: rgba(170,41,41);
    border: none;
    margin-left: 10px;
    border-radius: 5px;
}

.productos-carousel-container .producto img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.productos-carousel-container .producto img:hover {
    transform: scale(1.1);
}

/* Estilo llamativo para las letras */
.productos-carousel-container .producto p {
    font-family: "Ubuntu", sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(220, 220, 220);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.productos-carousel-container .producto p:hover {
    transform: scale(1.1);
}

.productos-carousel-container .producto {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(170, 41, 41, 0.8);
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productos-carousel-container .producto:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================
    Reseñas
========================== */
#reseñas {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin: 20px auto;    
}

#reseñas h2 {
    color: rgb(255, 255, 255);
    font-size: 28px;
    font-family: 'Ubuntu', sans-serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.842);
}

/* ==========================
   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 */
}

/* Puedes pegar esto en css/style.css */
.sobre-tienda-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 18px;
  margin: 20px 0 30px 0;
  padding: 32px 24px;
  gap: 32px;
  flex-wrap: wrap;
}
.sobre-tienda-info {
  flex: 1 1 320px;

}
.sobre-tienda-info h2 {
    font-family: 'Ubuntu', sans-serif;
    margin-bottom: 12px;
}
.sobre-tienda-info p {
  font-family: 'ubuntu', sans-serif;
  font-size: 1.1em;
  color: black;
  margin-bottom: 18px;
  line-height: 1.6;
}
.btn-saber-mais {
  display: inline-block;
  background: #aa2929;
  color: #fff;
  padding: 10px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(170,41,41,0.12);
}
.btn-saber-mais:hover {
  background: #7a1e1e;
}
.sobre-tienda-img {
  flex: 0 0 220px;
  text-align: right;
}
.sobre-tienda-img img {
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(170,41,41,0.10);
}