@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, sans-serif;
  background-color: #fbfbfd;
  color: #1d1d1f;
}

.main-content-layout {
  display: flex;
  min-height: 100vh;
}

.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 65px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.main-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-header .logo {
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1f;
  text-decoration: none;
}
.main-header .logo .brand {
  color: #0071e3;
}
.main-header .hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1d1d1f;
}
.main-header .main-nav .close-btn {
  display: none;
}
.main-header .main-nav .nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}
.main-header .main-nav .nav-links a {
  text-decoration: none;
  color: #515154;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.main-header .main-nav .nav-links a:hover {
  color: #0071e3;
}
.main-header .main-nav .nav-links .btn-publicar {
  background-color: #0071e3;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  transition: transform 0.2s;
}
.main-header .main-nav .nav-links .btn-publicar:hover {
  transform: scale(1.05);
  color: #fff;
}
.main-header .main-nav .nav-links .logout-btn {
  background: none;
  border: none;
  color: #ff3b30;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.main-header .main-nav .nav-links .logout-btn:hover {
  text-decoration: underline;
}
.main-header .main-nav .nav-links .search-btn-icon {
  background: none;
  border: none;
  color: #86868b;
  cursor: pointer;
  font-size: 16px;
}

/* --- RESPONSIVO --- */
@media (max-width: 991px) {
  .main-header .hamburger {
    display: block;
  }
  .main-header .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 60px 25px;
    z-index: 1001;
  }
  .main-header .main-nav.active {
    right: 0;
  }
  .main-header .main-nav .close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #86868b;
    cursor: pointer;
  }
  .main-header .main-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .main-header .main-nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f5f5f7;
    padding-bottom: 10px;
  }
  .main-header .main-nav .nav-links a, .main-header .main-nav .nav-links .logout-btn {
    font-size: 18px;
    width: 100%;
    display: block;
  }
  .main-header .main-nav .nav-links .btn-publicar {
    text-align: center;
    border-bottom: none;
    margin-top: 10px;
  }
  .main-header .main-nav .nav-links .search-trigger-header {
    border-bottom: none;
  }
}
.main-footer {
  background-color: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  padding: 60px 0 30px 0;
  margin-top: 80px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.main-footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-footer {
  /* Grid de columnas superior */
}
.main-footer .footer-top {
  display: flex;
  justify-content: space-between;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.main-footer .footer-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-footer .footer-column nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.main-footer .footer-column nav a {
  color: #6e6e73;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.main-footer .footer-column nav a:hover {
  color: #0066cc;
  text-decoration: none;
}
.main-footer .footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
}
.main-footer .branding p {
  font-size: 14px;
  color: #86868b;
  max-width: 300px;
}
.main-footer {
  /* Sección inferior */
}
.main-footer .footer-bottom {
  border-top: 1px solid #d2d2d7;
  padding-top: 25px;
}
.main-footer .footer-bottom .footer-disclaimer {
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
  margin-bottom: 20px;
}
.main-footer .footer-bottom .footer-legal {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6e6e73;
  font-weight: 500;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .main-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .main-footer .footer-bottom .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}
.main-sidebar {
  width: 280px;
  padding: 20px;
  background-color: #ffffff;
  border-right: 1px solid #d2d2d7;
  height: calc(100vh - 65px);
  position: sticky;
  top: 65px;
}
.main-sidebar .sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}
.main-sidebar .sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.main-sidebar .sidebar-list .sidebar-link {
  text-decoration: none;
  color: #1d1d1f;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
  transition: background 0.2s;
}
.main-sidebar .sidebar-list .sidebar-link:hover {
  background-color: #f5f5f7;
  color: #0071e3;
}

/* =============================================================
   SECCIÓN DE PRODUCTOS - RadarEcommerce
   ============================================================= */
.productos-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.productos-wrapper h1.page-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #1d1d1f;
}

/* Filtro de Orden (Limpiado, sin style inline) */
.filtro-orden {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  justify-content: flex-end;
}
.filtro-orden label {
  font-weight: bold;
}
.filtro-orden select {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background-color: #fff;
  cursor: pointer;
}
.filtro-orden select:focus {
  border-color: #0071e3;
  outline: none;
}

/* Grid de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Tarjeta del producto (Uso de article para semántica) */
.producto-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f2f2f2;
}
.producto-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.producto-item .producto-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.producto-imagen {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-imagen img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.producto-info {
  padding: 20px;
}
.producto-info h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #1d1d1f;
}

/* Valoraciones (Caja limpia) */
.valoracion-box {
  background-color: #f0f8ff;
  border-left: 4px solid #007bff;
  padding: 10px 12px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.valoracion-box .estrella {
  color: #ffcc00;
  font-size: 1.1rem;
}
.valoracion-box.sin-valoraciones {
  background-color: #f8f9fa;
  border-left: 4px solid #d2d2d7;
  color: #86868b;
}

/* Paginación (Encapsulada) */
.paginacion-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
  gap: 15px;
}
.paginacion-container .boton-paginacion {
  background-color: #fff;
  color: #0071e3;
  border: 1px solid #0071e3;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.paginacion-container .boton-paginacion:hover {
  background-color: #0071e3;
  color: #fff;
}
.paginacion-container .paginas-lista {
  display: flex;
  gap: 8px;
}
.paginacion-container .paginas-lista .pagina {
  text-decoration: none;
  color: #1d1d1f;
  padding: 8px 14px;
  border-radius: 8px;
}
.paginacion-container .paginas-lista .pagina:hover {
  background-color: #f5f5f7;
}
.paginacion-container .paginas-lista .pagina.activa {
  background-color: #1d1d1f;
  color: #fff;
  font-weight: bold;
}

/* Breakpoints */
@media (max-width: 991px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
  .productos-wrapper {
    margin: 20px auto;
  }
}
/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Contenedor principal */
.contenedor-producto {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Layout de producto */
.producto-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .producto-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}
/* Imagen principal */
.imagen-principal {
  width: 100%;
  max-width: 600px;
  height: 500px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.imagen-principal img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.galeria-adicional {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.imagen-galeria {
  width: 90px;
  height: 90px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.imagen-galeria:hover {
  border-color: #2980b9;
  transform: scale(1.05);
}

/* Detalles del producto */
.detalles-producto {
  flex: 1;
}

.titulo-producto {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

.precio {
  font-size: 1.6rem;
  color: #27ae60;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.boton-comprar {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  background-color: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.boton-comprar:hover {
  background-color: #1b4f72;
  transform: translateY(-2px);
}

/* Descripción */
.descripcion {
  margin-top: 2rem;
}

div#descripcion.tabcontent p {
  margin-bottom: 1em;
}

.descripcion h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #333;
}

/* Calificación promedio */
.calificacion-promedio {
  margin-top: 2.5rem;
}

.barra-promedio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

.barra-fondo {
  width: 50%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.barra-valor {
  height: 100%;
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  transition: width 0.4s ease;
}

.valor-num {
  font-weight: 600;
  color: #555;
}

/* Separadores */
.separador {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Valoraciones */
.valoraciones h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.valoracion {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.usuario-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.foto-perfil {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #ccc;
}

.fecha-publicacion {
  font-size: 0.9rem;
  color: #888;
}

/* Estrellas */
.valoracion-estrellas {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.5rem 0;
}

.estrella {
  font-size: 1.2rem;
  color: #ccc;
}

.estrella.llena {
  color: #f1c40f;
}

.comentario {
  font-style: italic;
  margin: 0.5rem 0 0.3rem 0;
  color: #444;
}

.imagen-valoracion {
  width: 100%;
  max-width: 300px;
  margin-top: 0.7rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.imagen-valoracion:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Formulario de valoración */
.formulario {
  margin-top: 3rem;
}

.formulario h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
}

.formulario-valoracion {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #555;
}

textarea {
  resize: vertical;
  min-height: 100px;
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input[type=file] {
  padding: 0.5rem 0;
}

.btn.btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 0.7rem 1.5rem;
  max-width: 200px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.btn-primary:hover {
  background-color: #374151;
  transform: translateY(-1px);
}

/* Estrellas del formulario */
.star-rating {
  display: flex;
  justify-content: flex-start;
  width: -moz-max-content;
  width: max-content;
  gap: 6px;
}

.star-input {
  display: none;
}

.star-label {
  font-size: 1.7rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-input:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
  color: #f1c40f;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow: auto;
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.cerrar {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.cerrar:hover,
.cerrar:focus {
  color: #bbb;
}

/* =======================
   RESPONSIVE TABS FIX
========================== */
/* Contenedor de tabs: flex con scroll horizontal */
.tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Suaviza scroll en iOS */
  border-bottom: 1px solid #ddd;
  scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

/* Botones de tab */
.tablink {
  flex: 0 0 auto; /* No se estira ni reduce */
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
  white-space: nowrap; /* Evita que el texto se divida */
}

.tablink.active {
  border-bottom-color: #2980b9;
  font-weight: 600;
  color: #2980b9;
}

/* Contenido de tabs */
.tabcontent {
  padding: 1rem 0;
  overflow-x: auto; /* Permite scroll horizontal para tablas u otros contenidos */
}

/* Tabcontent tablas */
.tabcontent table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px; /* Para permitir scroll horizontal */
}

/* Scrollbar estilizada para tabcontent */
.tabcontent::-webkit-scrollbar {
  height: 6px;
}

.tabcontent::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.tabcontent::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.tabcontent::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ajuste padding en móviles */
@media (max-width: 767px) {
  .tabcontent {
    padding: 0.8rem 0.5rem;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.modal-contenido {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  cursor: zoom-in;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.modal-contenido.fullscreen {
  max-width: 100%;
  max-height: 100vh;
  cursor: zoom-out;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  z-index: 1001;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.flecha:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.flecha-izquierda {
  left: 30px;
}

.flecha-derecha {
  right: 30px;
}

.contador-imagen {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #FFFFFF;
  background-color: rgba(0, 0, 255, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 999;
}

.tabs {
  display: flex;
  margin-top: 30px;
  border-bottom: 2px solid #ccc;
}

.tablink {
  background-color: #f5f5f5;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-right: 5px;
}

.tablink.active {
  background-color: #fff;
  border-bottom: 2px solid white;
  font-weight: bold;
}

.tabcontent {
  display: none;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
}

.tabcontent.active {
  display: block;
}

.tabla-wrapper {
  max-width: 600px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.tabla-caracteristicas {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.tabla-caracteristicas td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  white-space: nowrap;
}

.nombre-caracteristica {
  font-weight: bold;
  background-color: #f7f7f7;
  color: #333;
  white-space: nowrap;
  width: 1%;
}

.valor-caracteristica {
  color: #444;
  background-color: #fff;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fila-par {
  background-color: #f4f4f4;
}

.fila-impar {
  background-color: #f4f4f4;
}

/* Estilo para los números de parte en Equivalencias */
#equivalencias .valor-caracteristica code {
  color: #2c3e50; /* Un azul marino profesional */
  background-color: #f8f9fa; /* Fondo grisáceo muy suave */
  padding: 3px 8px;
  border: 1px solid #e0e0e0; /* Borde sutil */
  border-radius: 5px;
  font-family: "Courier New", Courier, monospace; /* Mantiene el look técnico */
  font-size: 0.95rem;
  display: inline-block; /* Para que el padding se aplique bien */
}

/* Efecto opcional: resalta un poco al pasar el mouse */
#equivalencias .valor-caracteristica code:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

/* =============================================================
   VITRINAS DE USUARIO - RadarEcommerce
   ============================================================= */
.vitrina-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.perfil-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #f2f2f2;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.perfil-header .perfil-info-principal {
  display: flex;
  align-items: center;
  gap: 30px;
}
.perfil-header .perfil-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f7;
  flex-shrink: 0;
}
.perfil-header .perfil-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.perfil-header .perfil-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #86868b;
}
.perfil-header .perfil-nombre {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.perfil-header .perfil-bio {
  color: #515154;
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 600px;
}

.perfil-stats {
  display: flex;
  gap: 25px;
}
.perfil-stats .stat-item {
  display: flex;
  flex-direction: column;
}
.perfil-stats .stat-item .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
}
.perfil-stats .stat-item .stat-label {
  font-size: 12px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vitrina-tabs {
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 25px;
}
.vitrina-tabs .tab-link {
  display: inline-block;
  padding: 12px 0;
  margin-right: 30px;
  font-weight: 600;
  font-size: 15px;
  color: #1d1d1f;
  border-bottom: 2px solid transparent;
}
.vitrina-tabs .tab-link.active {
  border-bottom-color: #0071e3;
  color: #0071e3;
}

/* Contenedor Principal */
.container-explorar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header y Categorías */
.explorar-header {
  text-align: center;
  margin-bottom: 40px;
}

.categorias-burbujas {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bubble {
  padding: 8px 18px;
  background: #efefef;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.3s;
}

.bubble:hover {
  background: #e2e2e2;
}

/* Pinterest Grid (Efecto Masonry) */
.pinterest-grid {
  -moz-column-count: 4;
       column-count: 4; /* Número de columnas en desktop */
  -moz-column-gap: 15px;
       column-gap: 15px;
  width: 100%;
}

.pin-card {
  display: inline-block; /* Crucial para que no se corten las tarjetas entre columnas */
  width: 100%;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pin-card:hover {
  transform: translateY(-5px);
}

/* Imagen y Overlay */
.pin-image-container {
  position: relative;
  cursor: zoom-in;
}

.pin-img {
  width: 100%;
  display: block;
  height: auto; /* Altura automática para el efecto Pinterest */
}

.pin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pin-card:hover .pin-overlay {
  opacity: 1;
}

.btn-ver {
  background: #e60023; /* Rojo Pinterest */
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
}

/* Contenido de la tarjeta */
.pin-content {
  padding: 12px;
}

.pin-title {
  font-size: 15px;
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.pin-meta {
  font-size: 12px;
  color: #5f5f5f;
}

.pin-badge {
  margin-top: 8px;
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* ==========================================================================
   COMPONENTES SOCIALES: SEGUIDORES, BOTONES Y CONTADORES
   ========================================================================== */
/* Alineación de la información de cabecera */
.perfil-info-principal {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Área de botones sociales debajo del nombre de usuario */
.perfil-acciones-sociales {
  margin-top: 0.75rem;
}

/* Botón base para Seguir / Dejar de seguir */
.btn-social-follow {
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-social-follow:active {
  transform: scale(0.98);
}

/* Estado: Seguir */
.btn-follow {
  background-color: #007bff;
  color: #ffffff;
}

.btn-follow:hover {
  background-color: #0069d9;
}

/* Estado: Dejar de seguir */
.btn-unfollow {
  background-color: #dc3545;
  color: #ffffff;
}

.btn-unfollow:hover {
  background-color: #c82333;
}

/* Identificadores estáticos (Invitaciones o perfil propio) */
.badge-propia-vitrina {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.link-login-social {
  display: inline-block;
  text-decoration: none;
  background-color: #f8f9fa;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.link-login-social:hover {
  background-color: #e7f1ff;
}

/* Contenedor Grid de Estadísticas */
.perfil-stats-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-left: auto; /* Empuja las tarjetas a la derecha en pantallas grandes */
}

/* Tarjeta individual del componente estadístico */
.stat-card-component {
  background-color: #f8f9fa;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  min-width: 105px;
  border: 1px solid #eaeaea;
}

.stat-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222222;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ajuste responsivo para pantallas móviles */
@media (max-width: 768px) {
  .perfil-stats-grid {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .stat-card-component {
    flex: 1;
    min-width: 85px;
  }
}
/* Responsive */
@media (max-width: 1024px) {
  .pinterest-grid {
    -moz-column-count: 3;
         column-count: 3;
  }
}
@media (max-width: 768px) {
  .pinterest-grid {
    -moz-column-count: 2;
         column-count: 2;
  }
}
@media (max-width: 480px) {
  .pinterest-grid {
    -moz-column-count: 1;
         column-count: 1;
  }
}
/* --- MEDIA QUERIES (RESPONSIVO AL FINAL) --- */
@media (max-width: 768px) {
  .perfil-header {
    padding: 25px;
  }
  .perfil-header .perfil-info-principal {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .perfil-header .perfil-stats {
    justify-content: center;
  }
  .vitrina-container {
    margin: 20px auto;
    padding: 0 15px;
  }
}
:root {
  --primary-blue: #0071e3;
  --text-main: #1d1d1f;
  --text-secondary: #86868b;
  --bg-light: #f5f5f7;
  --border-color: #d2d2d7;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.opinion-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
}

/* Header */
.user-meta {
  margin-bottom: 1rem;
}

.user-meta__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  gap: 0.75rem;
}

.user-meta__avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.opinion-detail__title {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Hero Image */
.opinion-detail__hero img {
  width: 100%;
  border-radius: 18px;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #ffffff;
  max-height: 500px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Body & Card */
.review-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  margin-bottom: 3rem;
}

.rating-stars {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.rating-stars__value {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.review-card__content {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
}

/* Tech Sheet (Footer) */
.tech-sheet {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.tech-sheet__header h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.tech-sheet__content {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tech-sheet__thumb img {
  width: 120px;
  height: 120px;
  -o-object-fit: contain;
     object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 10px;
}

.tech-sheet__info {
  flex: 1;
  min-width: 250px;
}

.tech-sheet__name {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tech-sheet__specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item__label {
  font-weight: 600;
  color: var(--text-secondary);
}

.tech-sheet__link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Button */
.btn-primary {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
}

/* Este estilo SOLO afectará a lo que esté dentro del bloque de equivalencias */
.equivalencias-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.equivalencia-tag {
  background: #f0f0f4;
  border: 1px solid #e1e1e8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--dark);
}

.structured-data-text {
  display: inline-block;
  line-height: 1.4;
  color: var(--dark);
  font-size: 0.9rem;
}

/* Etapas */
.timeline-etapas {
  margin-top: 40px;
}

.timeline-header {
  margin-bottom: 25px;
}
.timeline-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #111827;
}
.timeline-header p {
  color: #6b7280;
  line-height: 1.6;
}

.timeline-grid {
  display: grid;
  gap: 20px;
}

.timeline-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.timeline-card__badge {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.timeline-card__badge.etapa-1 {
  background: #2563eb;
}

.timeline-card__badge.etapa-2 {
  background: #f59e0b;
}

.timeline-card__badge.etapa-3 {
  background: #16a34a;
}

.timeline-card__image img {
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  max-height: 500px;
}

.timeline-card__content {
  padding: 18px;
}
.timeline-card__content p {
  color: #374151;
  line-height: 1.7;
}

.timeline-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.timeline-photo img {
  width: 100%;
  height: 240px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.timeline-photo-comment {
  padding: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #374151;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-stage-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.5rem;
}

.timeline-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-stage-badge {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.etapa-1 {
  background: #dbeafe;
  color: #1d4ed8;
}

.etapa-2 {
  background: #fef3c7;
  color: #b45309;
}

.etapa-3 {
  background: #dcfce7;
  color: #15803d;
}

.timeline-stage-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.timeline-main-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 1rem;
}

.timeline-main-image img {
  width: 100%;
  max-height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.timeline-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.timeline-thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.timeline-thumb img {
  width: 80px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: 0.2s;
}

.timeline-thumb:hover img {
  border-color: #2563eb;
  transform: scale(1.03);
}

.timeline-comments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-comment {
  background: #f9fafb;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.timeline-comment p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

/* El resto de las especificaciones (.spec-item__value)
   seguirá viéndose como texto normal sin estos recuadros. */
@media (max-width: 600px) {
  .opinion-detail__title {
    font-size: 1.8rem;
  }
  .tech-sheet__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .spec-item {
    justify-content: center;
    gap: 10px;
  }
}
.file-upload-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.file-upload-wrapper .image-preview-thumbnail {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-upload-wrapper .image-preview-thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.file-upload-wrapper .file-input-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.file-upload-wrapper .file-input-controls input[type=file] {
  font-size: 0.9rem;
}
.file-upload-wrapper .file-input-controls .current-file-text {
  color: #636e72;
  font-size: 0.8rem;
}

.marked-for-delete {
  filter: grayscale(1) blur(2px);
  border: 2px solid red !important;
  transition: all 0.3s ease;
}

.photo-slot {
  transition: transform 0.2s ease;
}

.photo-slot:hover {
  transform: scale(1.02);
}

/* Estilo para fotos recién añadidas (aún no guardadas) */
.new-photo {
  border: 2px solid #28a745 !important;
}

.etapa-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  transition: 0.25s;
}

.etapa-card.etapa-bloqueada {
  background: #f9fafb;
  border-color: #e5e7eb;
  opacity: 0.82;
}

.etapa-header {
  margin-bottom: 15px;
}

.etapa-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.etapa-header p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.5;
}

.texto-bloqueado {
  color: #b45309 !important;
  font-weight: 500;
}

.mosaico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.photo-slot {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.photo-slot.add-slot {
  cursor: pointer;
  flex-direction: column;
  transition: 0.2s;
  color: #666;
  font-size: 0.85rem;
}

.photo-slot.add-slot:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.locked-slot {
  background: #f3f4f6;
  border-style: solid;
  border-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  text-align: center;
  padding: 10px;
}

.locked-slot div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.locked-slot i {
  font-size: 1.3rem;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  cursor: pointer;
  z-index: 999;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.marked-for-delete {
  opacity: 0.35;
  filter: grayscale(1);
}

.main-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  padding: 4px;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.existing-evidencia {
  position: relative;
}

@media (max-width: 480px) {
  .file-upload-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
}
:root {
  --primary: #0071e3;
  --success: #1cc88a;
  --warning: #f6c23e;
  --bg-body: #f5f5f7;
  --dark: #1d1d1f;
  --gray: #86868b;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dashboard-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: -apple-system, sans-serif;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 700;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: none;
}

/* Perfil Lateral */
.profile-card {
  text-align: center;
}

.main-avatar, .avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.user-role {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.meta-item i {
  color: var(--gray);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  gap: 1rem;
}

.stat-card.blue {
  border-left: 4px solid var(--primary);
}

.stat-card.green {
  border-left: 4px solid var(--success);
}

.stat-card.orange {
  border-left: 4px solid var(--warning);
}

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Tabs */
.tabs-container {
  display: flex;
  border-bottom: 1px solid #e5e5e7;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tablas */
.table-responsive {
  overflow-x: auto;
}

.vitrina-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.vitrina-table th {
  text-align: left;
  padding: 12px;
  color: var(--gray);
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
}

.vitrina-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #f9f9f9;
  font-size: 0.95rem;
}

.badge-rating {
  background: #fff4e6;
  color: #fd7e14;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
}

.status-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.status-tag.success {
  background: #e6fcf5;
  color: #0ca678;
}

.status-tag.warning {
  background: #fff9db;
  color: #f59f00;
}

/* Timeline */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f8f8f8;
}

.timeline-date {
  text-align: center;
  min-width: 50px;
}

.timeline-date .day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

.timeline-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gray);
}

.points-earned {
  color: var(--success);
  font-weight: bold;
  font-size: 0.85rem;
}

/* Botones */
.btn-update-photo {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-add {
  background: var(--dark);
  color: white;
  padding: 6px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Menú de Acciones (3 puntos) */
.action-column {
  text-align: center;
  position: relative;
}

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

.dots-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 8px;
  font-size: 1.4rem;
  line-height: 1;
  transition: 0.2s;
}

.dots-btn:hover {
  color: var(--dark);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  border: 1px solid #e5e5e7;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  text-align: left;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: var(--bg-body);
}

.dropdown-item.delete-text {
  color: #ff3b30;
  border-top: 1px solid #eee;
}

/* Corrección visual para Rating */
.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff4e6;
  color: #fd7e14;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.dashboard-wrapper .form-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.dashboard-wrapper .dashboard-form .card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.dashboard-wrapper .dashboard-form .form-group {
  margin-bottom: 1.5rem;
}
.dashboard-wrapper .dashboard-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3436;
}
.dashboard-wrapper .dashboard-form .form-group input[type=text],
.dashboard-wrapper .dashboard-form .form-group input[type=number],
.dashboard-wrapper .dashboard-form .form-group input[type=url],
.dashboard-wrapper .dashboard-form .form-group textarea,
.dashboard-wrapper .dashboard-form .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.dashboard-wrapper .dashboard-form .form-group input[type=text]:focus,
.dashboard-wrapper .dashboard-form .form-group input[type=number]:focus,
.dashboard-wrapper .dashboard-form .form-group input[type=url]:focus,
.dashboard-wrapper .dashboard-form .form-group textarea:focus,
.dashboard-wrapper .dashboard-form .form-group select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.dashboard-wrapper .dashboard-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.dashboard-wrapper .dashboard-form .form-group .help-text {
  display: block;
  margin-top: 0.4rem;
  color: #636e72;
  font-size: 0.85rem;
}
.dashboard-wrapper .dashboard-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .dashboard-wrapper .dashboard-form .form-row {
    grid-template-columns: 1fr;
  }
}
.dashboard-wrapper .dashboard-form .checkbox-group .switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}
.dashboard-wrapper .dashboard-form .checkbox-group .switch-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.dashboard-wrapper .dashboard-form .form-footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e4e8;
}
.dashboard-wrapper .dashboard-form .form-footer .btn-primary {
  background: #007aff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dashboard-wrapper .dashboard-form .form-footer .btn-primary:hover {
  opacity: 0.9;
}
.dashboard-wrapper .dashboard-form .form-footer .btn-link {
  color: #636e72;
  text-decoration: none;
  font-weight: 500;
}
.dashboard-wrapper .dashboard-form .form-footer .btn-link:hover {
  text-decoration: underline;
}

.item-fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
  pointer-events: none;
}

.modal-overlay {
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* --- ESTILOS DEL MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px); /* Efecto elegante de desenfoque */
}

/* Cuando el JS añade .active, se muestra */
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.3s ease-out;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--dark);
  font-size: 1.4rem;
}

.modal-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Botones del Modal */
.btn-confirm-delete {
  background: #ff3b30; /* Rojo Apple/iOS */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-confirm-delete:hover {
  background: #d70015;
}

.btn-cancel {
  background: #f2f2f7;
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-cancel:hover {
  background: #e5e5ea;
}

/* Animación de entrada */
@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .dashboard-grid, .stats-row {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   INTERACCIONES: Q&A (Preguntas y Respuestas)
   ========================================================================== */
.opinion-qa {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.opinion-qa .qa-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 1.5rem;
}
.opinion-qa .qa-form {
  margin-bottom: 2.5rem;
}
.opinion-qa .qa-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.opinion-qa .qa-form textarea:focus {
  outline: none;
  border-color: #00cec9;
}
.opinion-qa .qa-form .btn-secondary {
  margin-top: 0.8rem;
  padding: 0.8rem 1.5rem;
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.opinion-qa .qa-form .btn-secondary:hover {
  background-color: #005bb5;
}
.opinion-qa .qa-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.opinion-qa .qa-item {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #dfe6e9;
}
.opinion-qa .qa-question {
  margin-bottom: 1rem;
}
.opinion-qa .qa-question .qa-user {
  font-weight: 700;
  color: #0984e3;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}
.opinion-qa .qa-question p {
  margin: 0;
  font-size: 1.05rem;
  color: #2d3436;
  line-height: 1.4;
}
.opinion-qa .qa-answers {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px dashed #ced6e0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.opinion-qa .qa-answers .qa-answer {
  position: relative;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #f1f2f6;
}
.opinion-qa .qa-answers .qa-answer.is-author {
  background-color: #f0faff;
  border-color: #74b9ff;
}
.opinion-qa .qa-answers .qa-answer .qa-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #b2bec3;
  display: block;
  margin-bottom: 0.3rem;
}
.opinion-qa .qa-answers .qa-answer.is-author .qa-badge {
  color: #0984e3;
}
.opinion-qa .qa-answers .qa-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: #2d3436;
}
.opinion-qa .qa-reply-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.opinion-qa .qa-reply-form input[type=text] {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #dfe6e9;
  border-radius: 4px;
}
.opinion-qa .qa-reply-form button {
  padding: 0.6rem 1rem;
  background: #00b894;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}
.opinion-qa .qa-reply-form button:hover {
  background: #009475;
}
.opinion-qa .no-data {
  text-align: center;
  color: #b2bec3;
  font-style: italic;
  padding: 2rem;
}

/* Estilos generales */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Wrapper para centrar el login */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* o center si quieres verticalmente centrado */
  min-height: 80vh;
  padding: 40px 20px;
}

/* Contenedor centrado */
.login-container {
  max-width: 400px;
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Título */
.login-container h2 {
  text-align: center;
  color: #007bff;
  margin-bottom: 25px;
}

/* Etiquetas y campos de entrada */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* Botón de login */
.btn-login {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #0056b3;
}

/* Mensaje de error */
.error-mensaje {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Registro y recuperar contraseña */
.extra-opciones {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.extra-opciones a {
  color: #007bff;
  text-decoration: none;
}

.extra-opciones a:hover {
  text-decoration: underline;
}

/* Links debajo del formulario */
.login-links {
  text-align: center;
  margin-top: 20px;
}

.login-links a {
  color: #007bff;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* =============================================================
   HOME STYLES - RadarEcommerce
   ============================================================= */
.home-hero {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  /* Contenedor del Logo Grande */
}
.home-hero .logo-grande-wrap {
  margin-bottom: 40px;
}
.home-hero .logo-grande-wrap .main-hero-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}
.home-hero {
  /* Contenedor del Buscador */
}
.home-hero .main-search-container {
  width: 100%;
  max-width: 650px;
  position: relative;
}
.home-hero .main-search-container .search-box {
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.home-hero .main-search-container .search-box:focus-within {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.home-hero .main-search-container .search-box .search-icon {
  width: 20px;
  height: 20px;
  color: #86868b;
  margin-right: 15px;
}
.home-hero .main-search-container .search-box .search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #1d1d1f;
  outline: none;
}
.home-hero .main-search-container .search-box .search-input::-moz-placeholder {
  color: #86868b;
}
.home-hero .main-search-container .search-box .search-input::placeholder {
  color: #86868b;
}
.home-hero .main-search-container {
  /* Caja de resultados (Autocomplete) */
}
.home-hero .main-search-container .results-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 99;
  margin-top: 2px;
  text-align: left;
  overflow: hidden;
}

/* Sección de últimos productos */
.section-ultimos {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.section-ultimos .section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1d1d1f;
  text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
  .home-hero {
    padding: 40px 20px;
  }
  .home-hero .logo-grande-wrap .main-hero-logo {
    max-width: 220px;
  }
  .home-hero .main-search-container .search-box {
    padding: 10px 15px;
  }
  .home-hero .main-search-container .search-box .search-input {
    font-size: 16px;
  }
}
/* --- SECCIÓN DE OPINIONES (Sustituye a productos) --- */
.section-ultimos {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.section-ultimos .section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1d1d1f;
  text-align: center;
}

.opiniones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Tarjeta de Opinión */
.opinion-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #eee;
}
.opinion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.opinion-card {
  /* Colores dinámicos del modelo */
}
.opinion-card.border-success {
  border-top-color: #28a745;
}
.opinion-card.border-warning {
  border-top-color: #ffc107;
}
.opinion-card.border-danger {
  border-top-color: #dc3545;
}
.opinion-card .opinion-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Usuario y Avatar */
.opinion-card__user {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.opinion-card__user .user-avatar {
  width: 32px;
  height: 32px;
  background: #0071e3;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}
.opinion-card__user .user-name {
  font-size: 14px;
  font-weight: 600;
  color: #86868b;
}

/* Imagen y Badge */
.opinion-card__image {
  position: relative;
  height: 200px;
  background: #f5f5f7;
}
.opinion-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.opinion-card__image .rating-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}
.opinion-card__image .rating-badge.badge-success {
  background: #28a745;
  color: white;
}
.opinion-card__image .rating-badge.badge-warning {
  background: #ffc107;
  color: #1d1d1f;
}
.opinion-card__image .rating-badge.badge-danger {
  background: #dc3545;
  color: white;
}

/* Info de la Opinión */
.opinion-card__info {
  padding: 15px;
}
.opinion-card__info .product-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
}
.opinion-card__info .opinion-excerpt {
  font-size: 14px;
  line-height: 1.4;
  color: #424245;
  margin-bottom: 15px;
  font-style: italic;
}
.opinion-card__info .opinion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #86868b;
}
.opinion-card__info .opinion-footer .read-more {
  color: #0071e3;
  font-weight: 600;
}

/* --- Estilos de la Sección FAQ --- */
:root {
  --primary: #007AFF;
  --dark: #1d1d1f;
  --gray: #86868b;
  --border: #e5e5e7;
  --shadow: rgba(0, 0, 0, 0.08);
}

.radar-faq {
  padding: 80px 20px;
  background-color: #fbfbfd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-title {
  font-size: 2.8rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.faq-subtitle {
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.faq-card {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}

.faq-trigger {
  width: 100%;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.faq-txt {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  padding-right: 20px;
}

/* Icono Interactivo */
.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s;
}

.faq-plus::before {
  top: 8px;
  left: 0;
  width: 100%;
  height: 2px;
}

.faq-plus::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 100%;
}

.faq-card.is-open {
  border-color: var(--primary);
}

.faq-card.is-open .faq-plus::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-inner {
  padding: 0 30px 30px 30px;
  color: #424245;
  line-height: 1.6;
  font-size: 1.1rem;
}

.faq-card.is-open .faq-content {
  max-height: 400px;
}

.faq-footer-cta {
  margin-top: 50px;
  text-align: center;
}

.radar-btn-main {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
  transition: all 0.2s ease;
}

.radar-btn-main:hover {
  background: #0056b3;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .home-hero {
    padding: 40px 20px;
  }
  .home-hero .logo-grande-wrap .main-hero-logo {
    max-width: 220px;
  }
  .opiniones-grid {
    grid-template-columns: 1fr;
  }
}
/* =============================================================
   PROMOCIONES & CUPONES - RadarEcommerce
   ============================================================= */
.promociones-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.seccion-header {
  margin-bottom: 30px;
}
.seccion-header .page-title {
  font-size: 2rem;
  color: #1d1d1f;
  margin-bottom: 15px;
}
.seccion-header .tabs-filtrado {
  display: flex;
  gap: 10px;
}
.seccion-header .tabs-filtrado .tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #d2d2d7;
  text-decoration: none;
  color: #1d1d1f;
  font-size: 14px;
  transition: all 0.2s;
}
.seccion-header .tabs-filtrado .tab-btn:hover {
  background: #f5f5f7;
}
.seccion-header .tabs-filtrado .tab-btn.active {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
}

.filtro-orden {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filtro-orden label {
  font-size: 14px;
  color: #86868b;
}
.filtro-orden select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background-color: #fff;
  font-size: 14px;
  outline: none;
}

.productos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.promo-item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid #f2f2f2;
}
.promo-item:hover {
  transform: translateY(-5px);
}
.promo-item .badge-tipo {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 10;
}
.promo-item .badge-tipo.badge-cupon {
  background-color: #28a745;
}
.promo-item .badge-tipo.badge-oferta {
  background-color: #dc3545;
}
.promo-item .producto-imagen img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}
.promo-item .producto-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.promo-item .producto-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.cupon-codigo-box {
  background-color: #f8f9fa;
  border: 2px dashed #28a745;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  text-align: center;
}
.cupon-codigo-box .label {
  display: block;
  font-size: 10px;
  color: #666;
}
.cupon-codigo-box .codigo {
  font-weight: bold;
  color: #28a745;
  font-size: 1.1rem;
}

.promo-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f2f2f2;
}
.promo-footer .promo-precio {
  font-weight: 700;
  color: #d70015;
}

/* --- MEDIA QUERIES (RESPONSIVO AL FINAL) --- */
@media (max-width: 992px) {
  .promociones-wrapper {
    margin: 20px auto;
    padding: 0 15px;
  }
  .seccion-header .page-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
  .filtro-orden {
    flex-direction: column;
    align-items: flex-start;
  }
  .filtro-orden select {
    width: 100%;
  }
  .productos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}
.blog-listado {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 30px;
}

.contenido-principal {
  flex: 3;
}

.sidebar-area {
  flex: 1;
}

.post-item {
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  padding-left: 1.5rem;
}

.post-item:hover {
  transform: translateY(-4px);
}

.post-imagen {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}

.post-contenido {
  padding: 20px;
}

.post-categoria {
  font-size: 14px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 6px;
}

.post-titulo {
  font-size: 22px;
  margin-bottom: 6px;
}

.post-titulo a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.post-titulo a:hover {
  color: var(--primary);
}

.post-fecha {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.post-extracto {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text);
}

.btn-leer-mas {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-leer-mas:hover {
  background-color: #1d4ed8;
}

.paginacion {
  margin-top: 30px;
  text-align: center;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

.pagina {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
}

.pagina:hover {
  background: #e0e7ff;
}

.pagina.activa {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  pointer-events: none;
}

/* =============================================================
   FORMULARIO DE PUBLICACIÓN - RadarEcommerce
   ============================================================= */
.crear-item-body {
  background-color: #f8fafc;
  padding: 40px 20px;
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.utility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  max-width: 550px;
  width: 100%;
  overflow: hidden;
}
.utility-card header {
  padding: 32px 32px 0;
}
.utility-card header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.utility-card header p {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.crear-item-form {
  padding: 32px;
}
.crear-item-form .form-group {
  margin-bottom: 24px;
}
.crear-item-form .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.crear-item-form .utility-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s ease;
  outline: none;
}
.crear-item-form .utility-input::-moz-placeholder {
  color: #94a3b8;
}
.crear-item-form .utility-input::placeholder {
  color: #94a3b8;
}
.crear-item-form .utility-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.crear-item-form .utility-input.h-32 {
  height: 120px;
  resize: none;
}
.crear-item-form .upload-area {
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  background-color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.crear-item-form .upload-area:hover {
  background-color: #eff6ff;
  border-color: #2563eb;
}
.crear-item-form .upload-area:hover i {
  color: #2563eb;
}
.crear-item-form .upload-area i {
  font-size: 24px;
  color: #64748b;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.crear-item-form .upload-area p {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.crear-item-form .upload-area #img-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
}
.crear-item-form .star-rating {
  display: flex;
  gap: 8px;
  font-size: 28px;
}
.crear-item-form .star-rating i {
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.1s, color 0.2s;
}
.crear-item-form .star-rating i:hover {
  transform: scale(1.1);
}
.crear-item-form .star-rating i.active {
  color: #fbbf24;
}
.crear-item-form .btn-primary-modern {
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  margin-top: 20px;
}
.crear-item-form .btn-primary-modern:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.crear-item-form .btn-primary-modern:active {
  transform: translateY(0);
}

.affiliate-section {
  background-color: #f5f5f7;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
  border: 1px dashed #d2d2d7;
}

.optional-tag {
  font-size: 0.8rem;
  color: #007aff;
  font-weight: 400;
}

.input-helper {
  font-size: 0.75rem;
  color: #86868b;
  margin-top: 8px;
}

.affiliate-input:focus {
  border-color: #007aff;
  background-color: #fff;
}

/* Estilos para las Pills */
.pills-container {
  display: flex;
  flex-wrap: wrap; /* Cambia a nowrap y añade overflow-x: auto si prefieres scroll lateral en móvil */
  gap: 10px;
  margin-top: 10px;
}

.pill-item {
  position: relative;
}

.pill-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-label {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #eee;
  background: white;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.pill-input:checked + .pill-label {
  background: #007bff;
  border-color: #007bff;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.pill-label:hover {
  border-color: #007bff;
  color: #007bff;
}

/* Tu estilo existente */
.sortable-ghost {
  opacity: 0.3;
  border: 2px dashed #007bff !important;
}

#add-photo-slot:hover {
  background: #e0eeff !important;
  border-color: #0056b3 !important;
  transform: scale(1.02);
}

.photo-slot:active {
  cursor: grabbing;
}

.utility-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 1rem;
}

/* ==========================================================================
   ESTILOS PARA EL WIZARD DE VITRINAS (Añadir en estilos_pro.css)
   ========================================================================== */

.vitrina-wizard-card {
    max-width: 650px;
    margin: 3rem auto;
    background: #ffffff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .vitrina-wizard-card {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Control estricto de los pasos del formulario */
.wizard-step {
    display: block;
}

.wizard-step.d-none {
    display: none !important;
}

.vitrina-wizard-card h3 {
    font-weight: 700;
    color: #212529;
    font-size: 1.5rem;
}

.vitrina-wizard-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.vitrina-wizard-card .form-control,
.vitrina-wizard-card .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

/* Sugerencias de autocompletado */
#sugerencias-box {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.125);
    background: #ffffff;
    z-index: 1000;
}

.form-group {
  margin-bottom: 20px;
}/*# sourceMappingURL=estilos_pro.css.map */