@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/trm.woff2) format("woff2");
}

body.pagina {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

.encabezado {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  border-bottom: 1px solid #d4d4d8;
  background: #f4f4f5;
}
.encabezado-contenido {
  position: relative;
  margin: 2rem;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-left: 1px solid #d4d4d8;
  border-right: 1px solid #d4d4d8;
  padding: 0.5rem 0.5rem;
}
.esquina-derecha,
.esquina-izquierda {
  position: absolute;
  z-index: 10;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 1px;
  border: 1px solid #d4d4d8;
  background: #fff;
  transform: rotate(45deg);
  bottom: -6px;
}
.esquina-derecha {
  right: -4.5px;
}
.esquina-izquierda {
  left: -4.5px;
}
.logo {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration: none;
  color: inherit;
}
.logo:hover {
  text-decoration: underline;
}


.logo-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.titulo-sitio h1 {
    margin: 0;
    font-size: 1.5rem;
}

.titulo-sitio p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}


.redes {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.icono-red {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  font-size: 0.95rem;
  transition: border 0.15s, background 0.15s;
  color: #71717a;
  background: none;
}
.icono-red:hover {
  border: 1px solid #d4d4d8;
  background: #e4e4e7;
  color: #18181b;
}

.contenedor-principal {
  margin: 2rem;
  flex-grow: 1;
  border-right: 1px solid #d4d4d8;
  border-left: 1px solid #d4d4d8;
  margin-top: 0;
  margin-bottom: 0;
}
.menu-tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  width: 100%;
  padding-left: 0.5rem;
  padding-right: -0.5rem;
  gap: 10px;
  padding-top: 0.5rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem 0.375rem 0 0;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #71717a;
  background: #fff;
  transition: color 0.15s, border 0.15s, background 0.15s;
  position: relative;
  text-decoration: none;
}
.tab:hover, .tab.activo {
  text-decoration: underline;
}
.tab.activo,
.tab:hover {
  border-color: #d4d4d8 #d4d4d8 transparent #d4d4d8;
  background: #f4f4f5;
  color: #18181b;
  z-index: 1;
}
.linea-tabs {
  position: absolute;
  left: 0rem;
  right: 0.45rem;
  bottom: 0;
  height: 1px;
  background: #d4d4d8;
  z-index: 0;
}
.fondo-tabs {
  position: absolute;
  left: 0rem;
  right: 0.45rem;
  bottom: 0;
  top: 0;
  background: #e4e4e7;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}
.panel-tab-inactivo,
.panel-tab-activo {
  border-bottom: 1px solid #d4d4d8;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.panel-tab-activo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.galeria-productos {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  scrollbar-width: none;
}
.galeria-productos::-webkit-scrollbar {
  display: none;
}
.item-galeria {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: #f1f1f3;
  padding: 12px;
  transition: border 0.15s, background 0.15s;
  font-size: 0.95rem;
  color: #71717a;
  box-sizing: border-box;
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .item-galeria {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
.item-galeria:hover {
  text-decoration: none !important;
}
.item-galeria.activo,
.item-galeria:hover {
  border: 1px solid #d4d4d8;
  background: #e4e4e7;
  color: #18181b;
}
.nombre-producto {
  font-size: 0.95rem;
}
.esquina-galeria-izq,
.esquina-galeria-der {
  position: absolute;
  z-index: 10;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 1px;
  border: 1px solid #d4d4d8;
  background: #fff;
  transform: rotate(45deg);
  bottom: -4.5px;
}
.esquina-galeria-izq {
  left: -4.5px;
}

.esquina-galeria-der {
  right: -4.5px;
}



.contenido-principal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.75rem;
}
.solo-lectura {
  position: absolute;
  left: -9999px;
}
.bloque-contenido {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bloque-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0.125rem;
  gap: 0.125rem;
}
.titulo-bloque {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}
.enlace-bloque {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s;
}
.enlace-bloque:hover {
  color: #18181b;
}
.icono-flecha {
  width: 1.1em;
  height: 1.1em;
  opacity: 0;
  transition: opacity 0.2s;
}
.enlace-bloque:hover .icono-flecha {
  opacity: 1;
}

.pie {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  border-top: 1px solid #d4d4d8;
  background: #f4f4f5;
}
.pie-contenido {
  position: relative;
  margin: 2rem;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-left: 1px solid #d4d4d8;
  border-right: 1px solid #d4d4d8;
  padding: 1.5rem 0rem;
}
.texto-pie {
  font-size: 1rem;
  color: #a1a1aa;
  margin: 0;
  padding: 10px;
}
.esquina-pie-der,
.esquina-pie-izq {
  position: absolute;
  z-index: 10;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 1px;
  border: 1px solid #d4d4d8;
  background: #fff;
  transform: rotate(45deg);
  top: -6px;
}
.esquina-pie-der {
  right: -4.5px;
}
.esquina-pie-izq {
  left: -4.5px;
}


/* Oculta en todos los dispositivos */
.oculto {
  display: none !important;
}

.logo, .enlace-bloque, .icono-red {
  text-decoration: none;
}
.logo:hover, .enlace-bloque:hover, .icono-red:hover {
  text-decoration: underline;
}

.icono-idea {
  width: 40px;
  height: 40px;
  font-size: 40px;
  display: block;
  margin: 0 auto;
  color: #71717a;
}
@media (max-width: 600px) {
  .icono-idea {
    width: 25px;
    height: 25px;
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .encabezado {
    position: relative;
    z-index: 40;
  }
  .encabezado-contenido {
      margin: 0.8rem;
      margin-top: 0;
      margin-bottom: 0;
  }
  .contenedor-principal {
      margin: 0.8rem;
      margin-top: 0;
      margin-bottom: 0;
  }    
  .pie-contenido {
    margin: 0.8rem;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 20;
  }
  .oculto-movil {
    display: none !important;
  }  
}

/* --- INICIO Pie de página moderno y minimalista --- */
.footer-minimalista {
  width: 100%;
  background: #f4f4f5;
  border-top: 1px solid #d4d4d8;
  padding: 32px 0 0 0;
  margin-top: 24px;
}
.footer-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 0 32px 32px 32px;
}
.footer-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 32px;
}
.footer-logo img {
  display: block;
  height: 200px;
  width: auto;
}
.footer-enlaces {
  display: flex;
  gap: 48px;
  flex: 1 1 0;
  justify-content: flex-start;
}
.footer-columna {
  min-width: 120px;
}
.footer-columna h4 {
  font-size: 1rem;
  color: #71717a;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-columna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-columna li {
  margin-bottom: 8px;
}
.footer-columna a {
  color: #18181b;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.2s;
}
.footer-columna a:hover {
  color: #71717a;
  text-decoration: underline;
}
@media (max-width: 800px) {
  .footer-contenedor {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px 16px 16px;
  }
  .footer-enlaces {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .footer-logo {
    padding-right: 0;
    margin-bottom: 16px;
  }
  .footer-logo img {
    height: 150px;
  }

}
/* --- FIN Pie de página moderno y minimalista --- */

/* Ajuste para que la pestaña activa cubra la línea en móvil igual que en PC */
.tab.activo {
  position: relative;
  z-index: 2;
  background: #f4f4f5;
}
.linea-tabs {
  z-index: 0;
}

/*Start boton de subir con porcentaje de subida 56178*/
.progress-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  height: 50px;
  width: 50px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s ease;
  z-index: 1000;
}

.progress-wrap.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-circle {
  transform: rotate(-90deg);
}

.progress-circle-path {
  fill: none;
  stroke: #E91E63; /* Color del borde de progreso */
  stroke-width: 4;
  box-sizing: border-box;
  transition: stroke-dashoffset 0.2s linear;
}

.progress-arrow {
  fill: none;
  stroke: #2c3e50; /* Color de la flecha */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transform: rotate(90deg);
}

.progress-wrap:hover .progress-arrow {
    stroke: #E91E63; /* Color de la flecha al pasar el mouse */
}

/* Vista móvil */
@media (max-width: 767px) {
  .progress-wrap {
    height: 35px;
    width: 35px;
  }
}
/*END boton de subir con porcentaje de subida 56178*/

/*Start modal de menu 46545*/
@keyframes slideInWithBounce {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    60% {
        transform: translateX(5%);
        opacity: 1;
    }
    80% {
        transform: translateX(-2%);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 25%;
    background-color: #f4f4f5;
    border-right: 1px solid #d4d4d8;
    z-index: 2000;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.75s, opacity 0.75s;
    padding: 2rem;
    box-sizing: border-box;
}

.menu-modal.activo {
    animation: slideInWithBounce 0.75s forwards;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.modal-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 25px;
    height: 25px;
    cursor: pointer;
    color: red;
    font-size: 25px;
    line-height: 25px;
    text-align: center;
}

.modal-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

@media (max-width: 767px) {
    .menu-modal {
        width: 90%;
    }
}
/*END modal de menu 46545*/

/* ================================
   Buscador en Header
   ================================ */

/* Desktop: al lado derecho */
.buscador-header-movil {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.search-form-header {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 250px;
    transition: all 0.3s ease;
}

.search-form-header:focus-within {
    background: #ffffff;
    border-color: #332f30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-form-header input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
    color: #332f30;
}

.search-form-header input::placeholder {
    color: #999999;
}

.search-form-header button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-form-header button:hover {
    color: #332f30;
}

.search-form-header button i {
    font-size: 16px;
}

/* Móvil: debajo del logo, ancho completo */
@media (max-width: 768px) {
    /* Hacer que el contenedor permita wrap */
    .encabezado-contenido {
        flex-wrap: wrap;
    }
    
    /* Buscador: nueva línea completa debajo del logo */
    .buscador-header-movil {
        position: static;
        transform: none;
        order: 10; /* Asegurar que esté después del logo */
        width: 100%; /* Forzar salto de línea */
        padding: 0 20px 10px 20px;
        margin-top: 10px;
    }
    
    .search-form-header {
        width: 100%;
        max-width: 100%;
    }
    
    .search-form-header input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .search-form-header button {
        padding: 12px 15px;
    }
}

/* ================================
   Footer (Blog Style)
   ================================ */

.blog-footer {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
}

.blog-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #666666;
}

.blog-footer-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.blog-footer a {
    color: #666666;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.blog-footer a:hover {
    color: #332f30;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 768px) {
    .blog-footer {
        padding: 30px 15px;
        margin-top: 50px;
    }
    
    .blog-footer a {
        margin: 0 5px;
        font-size: 14px;
    }
}

/* ================================
   Menú Hamburguesa y Dropdown Categorías
   ================================ */

/* Botón Hamburguesa - Oculto por defecto */
.hamburguesa-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 201;
    margin-left: auto;
    order: 10;
}

.hamburguesa-btn span {
    width: 100%;
    height: 3px;
    background: #332f30;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del botón cuando está activo */
.hamburguesa-btn.activo span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburguesa-btn.activo span:nth-child(2) {
    opacity: 0;
}

.hamburguesa-btn.activo span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú Dropdown - Oculto por defecto */
.menu-categorias-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f4f4f5;
    border-bottom: 1px solid #d4d4d8;
    border-left: 1px solid #d4d4d8;
    border-right: 1px solid #d4d4d8;
    z-index: 199;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.menu-categorias-dropdown.activo {
    display: block;
    max-height: 500px;
}

/* Dropdown cuando hamburguesa está fixed */
.menu-categorias-dropdown.dropdown-fixed {
    position: fixed;
    top: 70px;
    right: 20px;
    left: auto;
    width: 250px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #d4d4d8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.menu-categorias-dropdown.dropdown-fixed .dropdown-nav {
    max-height: none;
}

/* Personalizar scrollbar del dropdown */
.menu-categorias-dropdown.dropdown-fixed::-webkit-scrollbar {
    width: 8px;
}

.menu-categorias-dropdown.dropdown-fixed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.menu-categorias-dropdown.dropdown-fixed::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 4px;
}

.menu-categorias-dropdown.dropdown-fixed::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

.dropdown-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.dropdown-item {
    padding: 12px 20px;
    color: #332f30;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #e4e4e7;
    border-left-color: #332f30;
    padding-left: 25px;
}

/* Vista móvil - Mostrar hamburguesa y ocultar tabs */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .hamburguesa-btn {
        display: flex;
    }
    
    /* Ocultar pestañas horizontales en móvil */
    .menu-tabs {
        display: none !important;
    }
    
    /* Ajuste del header para el botón */
    .encabezado-contenido {
        position: relative;
        align-items: center;
    }
    
    /* Logo-titulo se ajusta */
    .logo-titulo {
        flex: 1;
    }
    
    /* Botón hamburguesa fixed cuando llega al top */
    .hamburguesa-btn.fixed {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #f4f4f5;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 1000;
    }
}

