/* Imagen principal */
.camisa-preview {
  max-width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.camisa-preview:hover {
  transform: scale(1.05);
}

.btn-container{
  display: flex;
  gap: 10px;
}

/* Fondo popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Ventana popup*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.modal-content h2 {
  margin: 10px 0 5px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Estilo de la imagen en la ventana */
.popup-content img {
  width: 250px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Contenedor principal del popup */
.popup-content {
  display: grid;
  place-items: center;
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Estilo para el fondo oscuro del popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.price {
  color: #27ae60;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sizes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.size {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.size:hover,
.size.selected {
  background-color: #0052cc;
  color: #fff;
  border-color: #0052cc;
}

.quantity-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.qty-btn {
  padding: 6px 14px;
  font-size: 18px;
  cursor: pointer;
  background-color: #eee;
  border: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.qty-btn:hover {
  background-color: #ccc;
}

#qtyInput {
  width: 40px;
  text-align: center;
  font-size: 16px;
  border: none;
}

.seguir-comprando-btn {
  background-color: transparent;
  color: gray;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-bottom: 3px solid blue;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.seguir-comprando-btn:hover {
  background-color: blue;
  color: white;
}

.item-carrito label {
  display: block;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  margin-bottom: 3px;
}

.bloque-carrito {
  margin-top: 10px;
  margin-bottom: 10px;
}

.bloque-carrito label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.precio-unitario,
.total-producto {
  font-size: 14px;
  color: #000;
}

.add-to-cart {
  background-color: transparent;
  color: gray;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-bottom: 3px solid green;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.add-to-cart:hover {
  background-color: green;
  color: white;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 40px;
  color:#902;
  cursor: pointer;
}

/* Ãcono flotante */
#carrito-flotante {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(245, 245, 220, 0.6);
  border-radius: 10px 0 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#carrito-flotante img {
  width: 60%;
  height: 60%;
}

#carrito-flotante.glow-border {
  box-shadow: 0 0 15px 4px #007bff; /* luz azul */
  animation: glowBorderClass 1s ease-in-out infinite alternate;
  border: 2px solid #007bff;
}

@keyframes glowBorderClass {
  from {
    box-shadow: 0 0 5px 2px #007bff;
    transform: scale(1);
  }
  to {
    box-shadow: 0 0 15px 6px #007bff;
    transform: scale(1.05);
  }
}

/* Panel deslizable desde la derecha */
.panel-carrito {
  position: fixed;
  top: 0;
  right: -200%;
  width: 40%;
  max-width: 100%;
  height: 100vh;
  background-color: white;
  border-radius: 15px 0 0 15px;
  padding: 20px;
  overflow-y: auto;
  z-index: 2000;
  transition: right 0.3s ease-in-out;
}

.panel-carrito.abierto {
  right: 0;
}

/* Contenido dentro del panel */
.contenido-carrito {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

/* BotÃ³n de cerrar */
.cerrar {
  position: absolute;
  top: 1px;
  right: 15px;
  font-size: 30px;
  color:#902;
  cursor: pointer;
}
.cerrar:hover {
  color: #000;
}
/* Fondo oscuro opcional si quieres un telÃ³n detrÃ¡s del panel */
body.panel-abierto::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
}
/* Contenedor interno */
.contenido-carrito {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.carrito-contenido {
  flex: 0 0 50%;
  overflow-y: auto;
  padding: 10px 20px;
  text-align: left;
}

/* TÃTULO */
.carrito-titulo {
  flex: 0 0 20%;
  background-color: #003366; /* Azul como el logo PFU */
  color: white;
  font-size: 1.5em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.carrito-titulo .icono-carrito {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* CONTENIDO */
.carrito-body {
  flex: 0 0 50%;
  padding: 20px;
  overflow-y: auto;
  text-align: left;
  font-family: Verdana, sans-serif;
}

/* FOOTER */
.carrito-footer {
  flex: 0 0 30%;
  background-color: #f5f5f5;
  color: #003366;
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.carrito-footer a {
  color: #004080;
  text-decoration: underline;
  font-weight: bold;
}

.logo-footer {
  width: 80px;
  height: auto;
  margin: 0 auto;
}

.popup-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 18px;
  color: #333;
}

.popup-row label {
  font-weight: bold;
  color: #004080; /* azul como PFU */
  min-width: 80px;
}

.popup-row .price {
  margin: 0;
  color: #000;
}

/*ESTILO LISTADO A PAGAR*/
.carrito-listado {
  max-height: 400px;
  overflow-y: auto;
}

.item-carrito {
  display: grid;
  grid-template-columns: 30px 150px 1fr 120px 120px 30px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.nombre {
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
}

.detalle-tallas {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.talla-caja {
  background-color: rgba(300, 0, 0, 0.6);
  color: white;
  align-items:center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  width: 150px;
  text-align:center;
}

.x-eliminar {
  cursor: pointer;
  font-size: 18px;
  color: red;
  user-select: none;
}

.x-eliminar:hover {
  color: darkred;
}

.boton-wompi {
  display: none;
  margin-top: 15px;
  background-color: #00cc66;
  color: black;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.boton-wompi:hover {
  background-color: #00b359;
}

@media (max-width: 768px) {
  .panel-carrito {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/** CSS PARA MENSAJES PERSONALIZADOS**/
.alert {
  padding: 15px 20px;
  margin: 10px auto;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  width: 90%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tipos de alerta */
.alert.success {
  background-color: #e6f9f0;
  border-left: 5px solid #2ecc71;
  color: #1e7e34;
}

.alert.error {
  background-color: #fdecea;
  border-left: 5px solid #e74c3c;
  color: #a94442;
}

.alert.warning {
  background-color: #fff8e5;
  border-left: 5px solid #f1c40f;
  color: #8a6d3b;
}

.alert.info {
  background-color: #e8f4fd;
  border-left: 5px solid #3498db;
  color: #31708f;
}

/* Ãconos opcionales */
.alert .icon {
  font-size: 20px;
}

/* BotÃ³n de cerrar (opcional) */
.alert .close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
}

.alerta-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo inhabilitado */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alerta-contenido {
  background-color: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 80%;
  animation: fadeIn 0.3s ease;
}

.alerta-contenido p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

.icono {
  font-size: 40px;
  display: block;
}

.btn-alerta {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  background-color: #0056b3;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-alerta:hover {
  background-color: #00408f;
}

.oculto {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px auto;
  max-width: 1000px;
}

.checkout-left,
.checkout-right {
  flex: 1 1 45%;
  min-width: 300px;
}

.checkout-left form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.checkout-left form input,
.checkout-left form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-wompi {
  padding: 12px 30px;
  background: #00a99d;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.transportista-info,
.resumen-carrito {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.resumen-carrito ul {
  list-style: none;
  padding: 0;
}

.resumen-carrito li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.resumen-carrito .total {
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding-top: 10px;
}

select {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select option {
  white-space: normal; /* permite que el texto se ajuste a varias lÃ­neas */
}

button[type="submit"]:hover {
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
  transform: translateY(-2px);
}

#pantalla-completa {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #f7f7f7;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: sans-serif;
}

/*#galeria-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); tres columnas iguales
    gap: 2rem;
    padding: 2rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  #galeria-productos img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  #galeria-productos img:hover {
    transform: scale(1.03);
  }

  #galeria-productos figcaption {
    padding: 1rem;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
  }*/

#galeria-productos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#galeria-productos .wp-block-image {
  width: calc(33.333% - 16px); /* 3 columnas con espacio entre ellas */
  height: 100%; /* altura fija para todas */
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
  border-radius: 8px;
}

.wp-block-image:hover{
  transform: scale(1.05);
  bottom:50px;
  border-radius: 30px !important;
}

.precio {
  position: absolute;
  bottom: 10px; /* 10px desde abajo */
  left: 50%;
  transform: translateX(-50%); /* centra horizontalmente */
  background: rgba(300, 0, 0, 0.6); /* fondo semitransparente */
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 20px;
}

.titulo {
  position: absolute;
  top: 1px; /* 10px desde arriba */
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}

#galeria-productos .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#galeria-productos figcaption {
  text-align: left;
  padding: 8px 4px;
  font-size: 14px;
  color: #333;
}

/* âœ… Responsive para mÃ³viles */
@media (max-width: 1024px) {
  #galeria-productos {
    grid-template-columns: repeat(2, 1fr);
  }
  .precio {
    position: absolute;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%); /* centra horizontalmente */
    background: rgba(300, 0, 0, 0.6); /* fondo semitransparente */
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 20px;
  }

  .titulo {
    position: absolute;
    display: inline-block;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  #galeria-productos {
    grid-template-columns: 1fr;
  }
  .precio {
    position: absolute;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%); /* centra horizontalmente */
    background: rgba(300, 0, 0, 0.6); /* fondo semitransparente */
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 20px;
  }

  .titulo {
    position: absolute;
    display: inline-block;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
  }
}

.mi-banner-full-width {
  color: skyblue;
  font-size: 25px;
  text-align: left;
  width: 90vw !important;
  max-width: 90vw !important;
  position: relative !important;
  background-color: transparent;
}
/** Banner**/
.pfu-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 16px 24px;
  gap: 16px;
  position: sticky; /* Se queda arriba al hacer scroll */
  width: 80vw !important;
  max-width: 80vw !important;
}

/* Logo + nombre */
.pfu-logo-nombre {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.pfu-logo {
  height: 100px;
  width: auto;
  display: block;
  padding: 6px;
}

.pfu-nombre {
  font-size: 25px;
  font-weight: 700;
  color: #004080;
  line-height: 1.1;
}

.pfu-subtitulo {
  font-size: 26px;
  color: #666666;
  line-height: 1.5;
  text-align: center;
}

/* Mensaje poderoso */
.pfu-mensaje {
  text-align: right;
  max-width: 700px;
  flex: 1;
  font-size: 16px;
  font-style: italic;
  color: #b36b00;
  line-height: 1.35;
}
/** Fin Banner**/

/*Barra superior del menÃº*/
/* Barra menÃº */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #162456;
  padding: 5px 30px;
  position: relative;
  width: 90vw !important;
  max-width: 90vw !important;   
}

/* Opciones menÃº */
.menu-links {
  display: flex;
  gap: 20px;
}

.menu-links li {
  list-style: none;
  position: relative; /* necesario para los submenÃºs */
}

.menu-links > li > a {
  text-decoration: none;
  font-size: 15px;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px;
}

/* Separador con | */
.menu-links > li:not(:last-child) > a::after {
  content: " | ";
  color: white;
  margin-left: 20px;
}

/* Hover o activo */
.menu-links > li > a:hover,
.menu-links > li > a.active {
  color: #f87c63;
  font-size: 20px;
  padding: 20px;
}

.menu-links > li > a:hover::before,
.menu-links > li > a.active::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 70%;
  height: 10px;
  border-radius: 5px;
}

/* SubmenÃºs */
.submenu {
  display: none;
  position: absolute;
  top: 40px; /* debajo del menÃº */
  left: 0;
  background: beige;
  min-width: 180px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.submenu li {
  border-bottom: 1px solid #ccc;
}

.submenu li:hover {
  background-color: rgba(245, 197, 39, 0.1);
  font-size: 20px;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #222;
  transition: background 0.3s;
}

.submenu a:checked,
.submenu a.active {
  background: #ddd;
  font-weight: bold;
}

/* Mostrar submenÃº al hacer hover */
.menu-links li:hover .submenu {
  display: block;
}

/* Caja bÃºsqueda */
.search-box {
  border: none;
  border-bottom: 5px solid blue;
  padding: 5px 10px;
  font-size: 15px;
  outline: none;
  background: transparent;
  transition: background 0.3s ease;
}

.search-box::placeholder {
  color: white;
}

.search-box:hover,
.search-box:focus {
  background: #cce4ff; /* azul bastante claro */
}

.busqueda-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-buscar {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 8px;
}

.btn-buscar:hover {
  color: darkblue;
  transform: scale(1.1);
}

.img-articulo {
  display: block;
  margin: 0 auto;        
  max-width: 100%;       
  height: auto;          
  border-radius: 10px;   
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.img-articulo:hover {
  transform: scale(1.2); /* pequeÃ±o zoom al pasar el mouse */
}

.cart-count {
  position: absolute;
  top: -3px;     /* mueve hacia arriba */
  right: 25px;   /* mueve hacia la derecha */
  background: red;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  text-align: center;
}

.acciones-simples {
  position: absolute; /* Para fijarlos dentro de la tarjeta */
  bottom: 20px;
  right: 10px;
  display: flex;
  gap: 3px; /* separación entre + y - */
}

.btn-mas,
.btn-menos {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Botón + (verde elegante) */
.btn-mas {
  background: #28a745;
  color: #fff;
}

.btn-mas:hover {
  background: #218838;
  transform: scale(1.05);
}

/* Botón - (rojo elegante) */
.btn-menos {
  background: #dc3545;
  color: #fff;
}

.btn-menos:hover {
  background: #c82333;
  transform: scale(1.05);
}

#caja-cantidad-st {
  width: 30px !important;
  height: 40px !important;           /* le das altura fija */
  text-align: center !important;     /* centra horizontal */
  line-height: 40px !important;      /* centra vertical (igual a la altura) */  
  border: 1px solid #DA8A67 !important;
  border-radius: 8px !important;
  outline: none !important;
  padding: 0 !important;
  font-weight: bold !important;
  font-size: 20px !important;
  color:#DA8A67 !important;/* quita relleno que lo descuadra */
}