@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}
.usuario-dashboard {
  max-width: 100vw;
  width: 95%;
  margin-left: 2rem;
  padding: 1rem;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}


.encabezado-con-imagen {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
    flex-wrap: wrap; /* ¡IMPORTANTE para móviles! */

}

  @media (max-width: 700px) {

*, *::before, *::after {
  box-sizing: border-box;
  overflow-wrap: break-word;
}
    .imagen-bienvenida{
        display: none;

    }

    .texto-bienvenida {
        word-wrap: break-word;       /* rompe palabras largas */
        overflow-wrap: break-word;   /* alternativa moderna */
        hyphens: auto;               /* divide con guiones si hace falta */
        max-width: 100%;
        position: relative;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .usuario-dashboard {
        max-width: 100vw;
        width: 70%;
        margin-left: 2rem;
        padding: 1rem;
        position: relative;
        font-family: 'Segoe UI', sans-serif;
    }

}


  @media (max-width: 500px) {
    .texto-bienvenida {
        word-wrap: break-word;       /* rompe palabras largas */
        overflow-wrap: break-word;   /* alternativa moderna */
        hyphens: auto;               /* divide con guiones si hace falta */
        max-width: 100%;
        position: relative;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .usuario-dashboard {
        max-width: 100vw;
        width: 70%;
        margin-left: 2rem;
        padding: 0;
        position: relative;
        font-family: 'Segoe UI', sans-serif;
    }

}

.texto-bienvenida{
    width: 60%;
    margin-top: -20px;
      flex: 1;
  min-width: 0;
}

.imagen-bienvenida {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-left: 4rem;
  margin-top: 2rem;
  align-items: right;
}

.texto-bienvenida h2 {
  font-size: 2.3rem;
  color: #00b1a2;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.texto-bienvenida span{
  text-shadow:
  1px 1px 3px rgba(97, 97, 97, 0.15),
  0 0 8px rgba(161, 161, 161, 0.2);

  font-family: 'Poppins', sans-serif;
}

body.dark .texto-bienvenida span{
    text-shadow:
  1px 1px 3px rgba(184, 225, 226, 0.144),
  0 0 8px rgba(184, 255, 249, 0.219);
}

body.dark .texto-bienvenida p{
   color: #ffffff;
}


.texto-bienvenida p {
  font-size: 1rem;
  color: black;
  margin-top: 0.3rem;
}

.subtitulo {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  color: #1efff4;
}

.favoritos-contenedor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
}




    @media (max-width: 1050px) {
    .favoritos-contenedor {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      padding: 0;
    }

      .usuario-dashboard {
        max-width: 100vw;
        width: 100%;
        margin-left: 0;
        padding: 1rem;
        position: relative;
        font-family: 'Segoe UI', sans-serif;
      }

  }




  .contenedor-portalUsuario {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #ebebeb;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tarjeta-portalUsuario {
  position: relative;
  border-radius: 16px;
  background-color: white;
  overflow: hidden;
  width: 100%;
  height: 220px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.233);
}

.link-principalPortalUsuario{

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 25%;
  min-width: 300px;
}
.tarjeta-portalUsuario:hover {
  transform: scale(1.03);
}

.contenido-img-portalUsuario {
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
  position: relative;
}

.contenido-img-portalUsuario img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Contenedor inferior sobre la imagen */
.info-inferior-portalUsuario {
  position: absolute;
  bottom:35%;
  width: 100%;
  height: 80px;
  padding: 10px;
  background: rgba(145, 145, 145, 0.185);
  color: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}


.item-perfil{
    background: linear-gradient(to right, #4DBDB2, rgb(21, 220, 255));
}


.item-pedidos{
    background: linear-gradient(to right, #4DBDB2, rgb(21, 220, 255));
}

.item-compras{
      background: linear-gradient(to right, #4DBDB2, rgb(21, 220, 255));
}

.item-favorito{
    background: linear-gradient(to right, #4DBDB2, rgb(21, 220, 255));
}


.item-soporte{
        background: linear-gradient(to right, #4DBDB2, rgb(21, 220, 255));
}





.seccion-bienvenida-portalUsuario {
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f8f8, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenedor-bienvenida-portalUsuario {
  max-width: 900px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.contenedor-bienvenida-portalUsuario img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 30px;
}

.contenedor-bienvenida-portalUsuario h1 {
  font-size: 2rem;
  color: #2b2d42;
  margin-bottom: 15px;
}

.contenedor-bienvenida-portalUsuario p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}





.etiqueta-portalUsuario {
  background: #fffffff5;
  color: #000;
  padding: 17px 17px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.iconoPortalUser{
  font-size: 1.4rem;
  color: rgb(0, 52, 56);
}

.nombre-portalUsuario {
  font-weight: 600;
}

/* Hover con texto */
.contenido-hover-portalUsuario {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #a084e8, #79c2d0);
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tarjeta-portalUsuario:hover .contenido-img-portalUsuario {
  opacity: 0;
}

.tarjeta-portalUsuario:hover .contenido-hover-portalUsuario {
  opacity: 1;
}


/* CONTENEDOR GLOBAL */
.dashboard-portalUsuario {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 30px;
  background: #f5f7fa;
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  align-items: flex-start; /* ¡importante para sticky! */
}
/* PANEL IZQUIERDO */
.panel-izquierdo-portalUsuario {
  width: auto;
  min-width: 250px;
  max-width: 280px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 30px; /* distancia desde el top */
  align-self: flex-start;
  height: fit-content;
}
/* PANEL DERECHO */
.panel-derecho-portalUsuario {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  min-height: 400px;
  overflow-y: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dashboard-portalUsuario {
    flex-direction: column;
  }

  .panel-izquierdo-portalUsuario {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .panel-derecho-portalUsuario {
    width: 100%;
    margin-top: 20px;
  }
}


/* Header de bienvenida */
.usuario-header-portalUsuario {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.icono-usuario-portalUsuario {
  font-size: 35px;
  background: linear-gradient(to right,#fcccdd ,#7dd6ff);
  border-radius: 50%;
  padding: 10px;
  color: white;
}

.texto-bienvenida-portalUsuario h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.texto-bienvenida-portalUsuario p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* Tarjetas menú */
.tarjeta-menu-portalUsuario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(to right, #a4ddf8, #fde0ea);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  font-weight: 500;
  margin-bottom: 10px;
}

.tarjeta-menu-portalUsuario:hover {
  transform: scale(1.03);
  background: linear-gradient(to right, #6a11cb, #2575fc);
}

.icono-menu-portalUsuario {
  background: white;
  color: #0072ff;
  padding: 8px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenido-fade {
  animation: fadeIn 0.4s ease;
}


.perfil-contenedor-portalUsuario {
  font-family: 'Poppins', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 25px
}

.header-perfil-container{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.titulo-perfil-portalUsuario {
  font-size: 1.8rem;
  color: #444;
  font-weight: 600;
  opacity: 0.9;
}

.datos-perfil-portalUsuario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fila-datos {
  display: flex;
  gap: 20%;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.dato {
  display: flex;
  gap: 10px;
  font-size: 1rem;
  color: #555;
}

.etiqueta {
  font-weight: 500;
  color: #777;
}

.valor {
  font-weight: 600;
}

.btn-editar-perfil {
  align-self: flex-start;
  padding: 10px 20px;
  background: linear-gradient(to right, #7f7fd5, #86a8e7);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn-editar-perfil:hover {
  transform: scale(1.05);
}

.direcciones-portalUsuario{
  margin-top: 30px;

}

.direcciones-portalUsuario h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lista-direcciones li {
  background: #f3f6fa;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Modal */
.modal-overlay-perfil {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10000;
}

.modal-contenido {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-contenido input,
.modal-contenido select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

.btn-guardar {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.modal-overlay-perfil.activo-perfil {
  display: flex;
  opacity: 1;
}

/* Animación de entrada */
.fade-in-perfil {
  animation: fadeInPerfil 0.3s ease forwards;
}

/* Animación de salida */
.fade-out-perfil {
  animation: fadeOutPerfil 0.3s ease forwards;
}

@keyframes fadeInPerfil {
  from { opacity: 0; transform: scale(1); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutPerfil {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1); }
}

@media (max-width: 901px){
  /* PANEL IZQUIERDO */
  .panel-izquierdo-portalUsuario {
    width: auto;
    min-width: 100%;
    max-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    position: relative;
    gap: 15px;
    top: 30px; /* distancia desde el top */
    height: fit-content;
  }

  .dashboard-portalUsuario{
    padding: 0;
  }

  .tarjeta-menu-portalUsuario{
    width: 45%;
    min-width: 200px;

  }

  .usuario-header-portalUsuario{
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 450px){
  /* PANEL IZQUIERDO */

  .dashboard-portalUsuario{
    padding: 10px;
  }

  .panel-izquierdo-portalUsuario{
    padding: 0;
  }

  .compra-card-portalUsuario{
    flex-direction: column;
  }
}

@media (max-width: 640px){
  /* PANEL IZQUIERDO */
  .compra-card-portalUsuario{
    flex-direction: column;
  }
}

.strong-compra-info{
  color: #1d1d1d;
  font-weight: bold;
}




.compras-contenedor-portalUsuario {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 25px;
  font-family: 'Poppins', sans-serif;
}

.titulo-compras-portalUsuario {
  font-size: 1.8rem;
  font-weight: 600;
  color: #444;
  opacity: 0.9;
}

.lista-compras-portalUsuario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compra-card-portalUsuario {
  display: flex;
  align-items: center;
  background: #f6f8fc;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  gap: 20px;
}

.compra-card-portalUsuario:hover {
  transform: scale(1.01);
}

/* Icono a la izquierda */
.compra-icono i {
  font-size: 2.5rem;
  color: #7f7fd5;
}

/* Info del pedido */
.compra-info {
  flex: 1;
}

.compra-info p {
  margin: 17px 0;
  color: #727272;
  font-size: 0.95rem;
}

/* Acciones a la derecha */
.compra-acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.estado {
  padding: 6px 22px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-align: center;
  width: fit-content;
}

/* Diferentes estados */
.etiqueta.enviado {
  background: linear-gradient(to right, #f7971e, #ffd200);
}

.etiqueta.entregado {
  background: linear-gradient(to right, #56ab2f, #a8e063);
}

.etiqueta.cancelado {
  background: linear-gradient(to right, #e53935, #e35d5b);
}

.btn-detalles-compra {
  background: linear-gradient(to right, #7f7fd5, #86a8e7);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.btn-detalles-compra:hover {
  background: linear-gradient(to right, #667eea, #764ba2);
}

.fecha-compra {
  font-size: 0.75rem;
  color: #888;
}



.modal-overlay-detalles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-detalles-contenido {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 15px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.producto-detalle {
  border: 1px solid #eee;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #ffffff;
  position: relative;
  margin-top: 20px;
}

.producto-header {
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: bold;
  font-size: 14px;
  color: #888;
}

.producto-cuerpo {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-around;
}

.img-producto {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: flex;

}

.info-producto{
  color: #333;
}

.info-producto h3 {
  margin: 0;
}

.extras-producto {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* Por si hay muchos, que se acomoden */
  flex-direction: column;
}

.circulo-talla {
  background: #eee;
  border-radius: 50%;
  padding: 8px 14px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.producto-acciones .navidad-temporada-button{
  background-color: rgb(255, 27, 27);
}

.circulo-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.producto-acciones {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.producto-acciones button {
  border: none;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.4s ease;
}


.producto-acciones button {
  border: none;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.4s ease;
}

.producto-acciones button:hover {
  background: linear-gradient(to right, #8adaff, #ffb5cf);
  transform: scale(1.05);
}

.empaque-extra {
  display: none;
  margin-top: 15px;

  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.empaque-item {
  text-align: center;
}

.empaque-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 580px) {
  .producto-cuerpo{
    flex-direction: column;
  }
  .extras-producto{
    flex-direction: row;
  }

  .producto-acciones{
    flex-direction: row;
  }
}


.no-sesion-container {
  padding: 3rem;
  background-color: #fff;
  border-radius: 12px;
  margin-top: 15%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.btn-iniciar-sesion {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-iniciar-sesion:hover {
  transform: scale(1.05);
}



.soporte-contenedor-portalUsuario {
  padding: 2rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  animation: fadeIn 0.4s ease-in-out;
}

.titulo-soporte-portalUsuario {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.texto-soporte-portalUsuario {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.botones-soporte-portalUsuario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-soporte-portalUsuario {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  color: white;
}

.btn-soporte-portalUsuario.correo {
  background: linear-gradient(45deg, #fffbee, #ffe7cc);
}

.btn-soporte-portalUsuario.whatsapp {
  background: linear-gradient(45deg, #51d180, #128C7E);
}

.btn-soporte-portalUsuario:hover {
  transform: scale(1.03);
  opacity: 0.9;
}


.mini-contacto-portalUsuario {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 12px;
  background-color: #f9f9f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.numero-contacto {
  font-size: 1rem;
  color: #333;
}

.btn-preguntas-frecuentes {
  background: linear-gradient(45deg, #feffb4, #ffb489);
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn-preguntas-frecuentes:hover {
  transform: scale(1.05);
  opacity: 0.9;
}









.pedido-portalUsuario {
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.17);
}


.titulo-pedido {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}


.header-container-pedido{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nombre-pedido{
  font-size: 28px;
  padding-left: 22px;
  padding-bottom: 30px;
}

.id-pedido{
  font-size: 24px;
  color: #8b8b8b;
  padding-right: 30px;
  padding-bottom: 30px;
  font-family: 'Times New Roman', Times, serif ;
}


.productos-pedido {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}



.producto-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #f6f8fc;
  padding: 1rem;
  border-radius: 12px;
  flex-wrap: wrap; /* permite que los hijos se acomoden abajo */
  align-items: center;
}

.imagen-producto {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.info-producto {
  flex: 1;
  min-width: 250px; /* Evita que se colapse demasiado */
}
.nombre-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.nombre-producto {
  font-size: 1.2rem;
  margin: 0;
}

.precio-producto {
  font-weight: bold;
  color: #444;
}

.atributos-producto {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.etiqueta {
  font-weight: 600;
  margin-right: 0.3rem;
}

.color-circulo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.talla-circulo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: #333;
}

.btn-editar-producto {
  background: linear-gradient(to right, #8adaff, #ffb5cf);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform 0.2s;
}

.btn-editar-producto:hover {
  transform: scale(1.05);
}

.resumen-pedido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}
.totales{

  padding: 20px;
}

.totales p {
  margin: 0.4rem 0;
  font-size: 1.2rem;
  color: #444;
}

.acciones-pedido {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn-envio,
.btn-cancelar-pedido,
.btn-seguimiento {
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seguimiento{
  background: white;
  border: 1px solid #919191;
}
.btn-envio {
  background: linear-gradient(to right, #8adaff, #ffb5cf);
  color: white;
}

.btn-cancelar-pedido {
  display: none;
  background: #ff3c3c;
  color: white;
}

.btn-envio:hover,
.btn-cancelar:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

@media screen and (max-width: 800px) {
  .producto-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-producto {
    width: 100%;
    margin-top: 1rem;
  }
} 




@media (max-width: 450px){
    
    .pedido-portalUsuario {
      padding: 5px;
    }
    
    .atributos-producto {
      gap: .5rem;
    }

}




/* Estilos generales para el contenedor de soporte de usuario */
.soporte-usuario-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto visual al pasar el ratón */
.soporte-usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Título del soporte */
.soporte-usuario-titulo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilo para la información del soporte */
.soporte-usuario-info {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.soporte-usuario-info strong {
    font-weight: 600;
    color: #333;
}

.soporte-usuario-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.soporte-usuario-info a:hover {
    text-decoration: underline;
}

/* Estilo para las fechas y el mensaje */
.soporte-usuario-info p {
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Espaciado entre párrafos para mejorar la legibilidad */
.soporte-usuario-info p:last-child {
    margin-bottom: 0;
}

/* Contenedor de soporte */
.soporte-usuario-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}













/* Contenedor de soporte */
.soporte-usuario-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the support card */
.soporte-usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Titulo del soporte */
.soporte-usuario-titulo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Información del soporte */
.soporte-usuario-info p {
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Icono de respuesta */
.soporte-respuesta-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: red;
    font-size: 24px;
}

/* Estado de respuesta */
.soporte-estado {
    margin-bottom: 15px;
}

.estado-pendiente {
    color: #f39c12;
}

.estado-respondido {
    color: #2ecc71;
}

/* Botón de ver respuesta */
.btn-ver-respuesta {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-ver-respuesta:hover {
    background-color: #2980b9;
}

/* Contenedor de respuesta */
.soporte-respuesta {
    margin-top: 15px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 4px;
    display: none;
}





.numero-guia-container {
  background-color: #f4f6f9;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.numero-guia-container h2 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.numero-guia {
  font-size: 16px;
  font-weight: bold;
  color: #003536; /* Color verde para el número de guía */
  display: inline-block;
  margin-top: 5px;
  padding: 5px 15px;
  border: 1px solid #2894a7;
  border-radius: 4px;
  background-color: #e7f8f9;
  cursor: pointer;
}

.numero-guia-container .numero-guia:hover {
  background-color: #61cdff;
  border: 1px solid #2894a71e;
}





/* Overlay del modal (fondo oscuro y translúcido) */
.modal-overlay-details {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo translúcido */
  display: flex; /* Usamos flexbox para centrar el contenido */
  justify-content: center; /* Centrar horizontalmente */
  align-items: center; /* Centrar verticalmente */
  z-index: 10000; /* Asegura que se muestre encima de otros elementos */
  padding: 20px; /* Espacio alrededor para que el modal no toque los bordes */
}

/* Contenido del modal */
.modal-contenido-details {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 100%; /* Aseguramos que tenga un ancho máximo de 500px y sea responsivo */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  max-height: 80%; /* Limitar la altura */
  overflow-y: auto; /* Agregar scroll si el contenido es muy grande */
}

/* Animación de entrada */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título del modal */
.modal-contenido-details h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Información del pedido */
.info-envio p {
  font-size: 1rem;
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
}

/* Etiquetas para los campos (Dirección, Estado, Transportadora) */
.info-envio strong {
  color: #333;
  font-weight: 500;
}

/* Botón de cerrar (X) */
.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #ff2a2a;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar-modal:hover {
  color: #333;
}

/* Estilo para el botón de "Detalles de Envío" */
.btn-envio {
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-envio:hover {
  background-color: #3f51b5;
}

/* Botón de cancelación */
.btn-cancelar-pedido {
  background-color: #ff4081;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-cancelar-pedido:hover {
  background-color: #f50057;
}







/* Modal de confirmación */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Asegura que se muestre encima de otros elementos */
}

.modal-contenido {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-contenido h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.modal-contenido p {
  margin: 20px 0;
  font-size: 1.1rem;
  color: #555;
}

.botones-confirmacion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
  gap: 10px;
}

.btn-confirmar,
.btn-cancelar {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-confirmar {
  background-color: #ff4081;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-confirmar:hover {
  background-color: #f50057;
}

.btn-cancelar {
  background-color: #5c6bc0;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-cancelar:hover {
  background-color: #3f51b5;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar-modal:hover {
  color: #333;
}


/* Contenido del modal de éxito */
.modal-contenido-exito {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Animación de entrada */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-contenido-exito h2 {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.modal-contenido-exito p {
  margin: 10px 0;
  font-size: 1rem;
  color: #555;
}

.icono-exito {
  color: green;
}

/* Botón de cerrar (X) */
.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cerrar-modal:hover {
  color: #333;
}

.btn-guardar-guia {
  background: linear-gradient(145deg, #63ffea, #00c2e4); /* Gradiente moderno */
  color: white; /* Color del texto */
  border: none; /* Sin borde */
  border-radius: 30px; /* Bordes redondeados */
  padding: 10px 25px; /* Espaciado dentro del botón */
  font-size: 16px; /* Tamaño de la fuente */
  font-weight: bold; /* Negrita */
  cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
  transition: all 0.3s ease; /* Transición suave para efectos */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
  display: block; /* Asegura que el botón se comporte como un bloque */
  margin: 20px auto; /* Centra el botón horizontalmente y agrega margen */
  text-align: center; /* Alinea el texto en el centro */
}

.btn-guardar-guia:hover {
  background: linear-gradient(145deg, #3b2a99, #6c63ff); /* Cambia el gradiente en el hover */
  transform: translateY(-3px); /* Efecto de elevación al hacer hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Efecto de sombra al pasar el mouse */
}

.btn-guardar-guia:active {
  transform: translateY(1px); /* Efecto al hacer clic */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* Vuelve la sombra a la normalidad */
}







.estado {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  text-align: center;
}

/* Colores por estado */
.estado-pendiente-usuario {
  background: linear-gradient(to right, #f7971e, #ffd200);
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font-size: 0.90rem;
  font-weight: 600;
  color: white;
  border: none;
  text-align: center;
}

.estado-aprobado-usuario {
  background: linear-gradient(to right, #56ab2f, #a8e063);
  padding: 12px 60px;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font-size: 0.90rem;
  font-weight: 600;
  color: white;
  text-align: center;
  border: none;
}
.estado-cancelado-usuario {
  background: linear-gradient(to right, #e53935, #e35d5b);
  padding: 12px 60px;
  border-radius: 20px;
  font-size: 0.90rem;
  font-weight: 600;
  color: white;
  text-align: center;
    width: 100%;
  height: 40px;
  border: none;
}
.estado-enviado-usuario {
  background: linear-gradient(to right, #1ef0f7, #008da0);
  padding: 12px 60px;
  border-radius: 20px;
  font-size: 0.90rem;
  font-weight: 600;
  color: white;
  text-align: center;
    border: none;
    width: 100%;
  height: 40px;
}
.estado-entregado-usuario {
  background: #2980b9;
  padding: 12px 60px;
  border-radius: 20px;
  font-size: 0.90rem;
  border: none;
  font-weight: 600;
  color: white;
  text-align: center;
    width: 100%;
  height: 40px;
}