/* Estilos para la sección del título y la navegación */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f7f5ee;
  color: #1a1a1a;
}

/* Contenedor principal */
.containerAqui {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #eee9d9);
}

/* Sección principal estilo banner */
.TiName {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  padding: 2rem 0;
  max-width: 1100px;
  margin-inline: auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.textoTiName {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffffaa;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(11, 1, 97, 0.2);
}

input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #a08c4e;
  box-shadow: 0 0 0 2px #f4e6b4;
}

button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: rgba(18, 2, 163, 0.3);

  color: #252525; 
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #ebebeb;
}

/* Título y subtítulo */
.NewformMain {
  font-size: 4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.Newform {
  font-size: 2rem;
  font-weight: 300;
  color: #3a3a3a;
}

/* Responsive */
@media (max-width: 768px) {
  .TiName {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .NewformMain {
    font-size: 3rem;
  }

  .textoTiName {
    width: 100%;
    align-items: center;
  }

  form {
    width: 100%;
    max-width: 350px;
  }
}

.AboutContainer{
  background-color: #ffffff;
  min-height: 100vh;  
  display: flex;
}

.About {
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: flex-start;  
  max-width: 1100px;         
  margin: 0 auto;           
  box-sizing: border-box;
}

.About h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0b0161; 
  text-align: left; 
  width: 100%;
}

.textoAbout {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-align: left;
  max-width: 100%;
  font-size: 1.3rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
  .About {
    padding: 1.5rem 1.5rem;
    max-width: 95%;
  }

  .About h2 {
    font-size: 2rem;
  }

  .textoAbout {
    font-size: 1rem;
  }
}


/* 🔹 Imagen de fondo */
.ImgBack {
  background-image: url("/img/ase");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  grid-area: ImgBack;
}

/* 🔹 Sección de Entrega */
.Send {
  grid-area: Send;
  height: 100vh;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

.containerSend {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.3rem;
  line-height: 1.4;
  max-width: 1100px;
  margin: 0 auto;
}

.FirstPart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
}
  .FirstPart h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0b0161; 
    text-align: left; 
    width: 100%;
  }


/* 🔸 Responsive para mobile */
@media (max-width: 768px) {
  .ContainerLocat {
    grid-template-columns: 1fr;
  }

  .ImgBack {
    background-attachment: scroll;
    height: 200px;
  }

  .NewformMain {
    font-size: 2.5rem;
  }

  .Newform {
    font-size: 1rem;
  }

  .About, .Send, .Locat {
    padding: 3rem 1rem;
  }

  .textoAbout, .containerSend {
    padding: 0 1rem;
  }

  .picNi {
    width: 180px;
    height: 180px;
  }
}

/* 🔻 Footer Moderno */
.Pie {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #1d1c1c;
  color: #dcdcdc;
  padding: 2rem;
  width: 100%;
  grid-area: Pie;
  font-size: 0.95rem;
}

.Pie p {
  margin: 0.25rem 0;
  width: 100%;
  text-align: right;
}

/* 🔷 Productos */
#productos-container {
  grid-area: Shoping;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  width: 100%;
  background-color: rgba(241, 241, 241, 0.7);
  font-family: 'Outfit', sans-serif;
}

/* 🔸 Card del producto */
.ali {
  flex: 1 1 220px;
  max-width: 220px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}


.ali img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.ali:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.description-product {
  font-size: 0.95rem;
  padding: 1rem;
  text-align: center;
  color: #2c2c2c;
}


/* 🔧 Adaptación responsive */
@media (max-width: 768px) {
  #productos-container {
    flex-direction: column;
    align-items: center;
  }

  .ali {
    max-width: 90%;
  }

  .description-product {
    font-size: 1rem;
  }

  .buttonplace {
    width: 100%;
  }
}


/* 🛒 Carrito */
.Carrito {
  background-color: #f7f7f7;
  color: #2c2c2c;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 350px;
  margin: 3rem auto;
}

.titleCarro {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0b0161;
  padding-bottom: 0.3rem;
  color: #0b0161;
  text-align: center;
}

.emptyCart {
  font-style: italic;
  color: #666;
  text-align: center;
  padding: 2rem 0;
}

#cartItems {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #ddd;
}

.product-name {
  flex: 2;
  font-weight: 600;
  color: #333;
}

.product-qty {
  flex: 1;
  text-align: center;
  color: #555;
}

.product-price {
  flex: 1;
  text-align: right;
  font-weight: 600;
  color: #0b0161;
}

#totalPrice {
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 1rem;
  text-align: right;
  color: #0b0161;
}

.buttonplace {
  background-color: #0b0161;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
  width: 100%;
}

.buttonplace:hover {
  background-color: #1c1187;
  cursor: pointer;
}

/* Scrollbar styling for cart items */
#cartItems::-webkit-scrollbar {
  width: 6px;
}

#cartItems::-webkit-scrollbar-track {
  background: #f7f7f7;
}

#cartItems::-webkit-scrollbar-thumb {
  background-color: #0b0161;
  border-radius: 10px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .Carrito {
    max-width: 100%;
    padding: 1rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-name, .product-qty {
    font-size: 0.9rem;
  }

  .buttonplace {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}


/* 📱 Responsive para mobile */
@media (max-width: 768px) {
  .Pie {
    align-items: center;
    text-align: center;
  }

  .Pie p {
    text-align: center;
  }

  #productos-container {
    flex-direction: column;
    align-items: center;
  }

  .ali {
    max-width: 90%;
  }

  .Carrito {
    padding: 1.5rem 0.5rem;
  }

  .titleCarro {
    font-size: 1.5rem;
  }
}

/* Navbar general */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 20px;
  padding: 1rem 0;
}

/* Contenedor interno para limitar ancho y centrar */
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

#logoo {
  font-family:  sans-serif;
  color: #0b0161;
  font-size: 35px;
  margin: 0;
  transition: color 0.3s ease;
}

#logoo:hover {
  color: #1c1187;
}

/* Menú de enlaces */
.secondary-full {
  display: flex;
  gap: 2rem;
}

.secondary-full a {
  font-size: 20px;
  color: #0b0161;
  text-decoration: none;
  font-weight: 400;
  padding: 12px 18px;
  border-radius: 6px;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.secondary-full a:hover,
.secondary-full a:focus {
  transform: scale(1.1);
  color: #1c1187;
  background-color: rgba(11, 1, 97, 0.1);
  outline: none;
}

/* Media query para móvil */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .secondary-full {
    gap: 1rem;
  }
  #logoo {
    font-size: 28px;
  }
  .secondary-full a {
    font-size: 18px;
    padding: 8px 12px;
  }
}

/* Estilos Base para dispositivos móviles */
@media (max-width: 768px) {
.desktop {
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}
.desktop a {
    padding: 10px;
    font-size: 16px; /* Tamaño de fuente más pequeño para enlaces */
}
.containerAqui {
grid-template-areas:
    "TiName"
    "Shoping"
    "About"
    "ImgBack"
    "Send"
    "Locat"
    "Pie";
grid-template-rows: auto auto auto auto auto auto 0.3fr; /* ajusta la altura de las filas */
}
.TiName, .About, .Send, .Locat {
padding: 15px;
}
.textoTiName, .textoAbout, .FirstPart, .infoCont {
padding: 5%; /* Padding más generoso para mejorar la legibilidad */
}
.Carrito, #productos-container {
flex-direction: column;
}
.ali {
min-width: 100%; /* Las cajas de productos ocupan todo el ancho */
margin-bottom: 20px; /* Añade espacio entre productos */
}
.ali img {
max-height: auto;
max-width: 100%;
}
.Pie {
flex-direction: column;
align-items: center; /* Centra los elementos del pie de página */
}
.Pie p {
text-align: center; /* Alinea el texto al centro */
margin: 10px;
}
.picNi {
width: 100%; /* Ajusta la imagen para que sea responsiva */
height: auto;
}
.SecondPart {
display: none; /* Opcionalmente, oculta partes del diseño no esenciales */
}
}
