/* ==========================================================================
   PLANTILLA TPYA MARKET - HOJA DE ESTILOS PRINCIPAL
   ==========================================================================
   TABLA DE CONTENIDOS:
   
   1.  VARIABLES GLOBALES & RESET
   2.  HEADER & NAVEGACIÓN (Navbar, Buscador, Menú Móvil)
   3.  DROPDOWNS & SUBMENÚS
   4.  LAYOUT PRINCIPAL & BANNER (Slider)
   5.  SECCIÓN: PRODUCTOS DESTACADOS (Carruseles)
   6.  SECCIÓN: CATEGORÍAS
   7.  SECCIÓN: ¿POR QUÉ ELEGIRNOS?
   8.  SECCIÓN: TESTIMONIOS
   9.  PÁGINA: TIENDA / LISTADO (Filtros & Grid de Productos)
   10. PÁGINA: DETALLE DE PRODUCTO (Galería, Variantes, Zoom)
   11. PÁGINA: CARRITO DE COMPRAS & CHECKOUT
   12. PÁGINAS DE USUARIO (Login, Registro, Recuperar, Perfil)
   13. PÁGINAS INFORMATIVAS (FAQ, Contacto, Estáticas)
   14. FOOTER
   15. MEDIA QUERIES (ESTILOS RESPONSIVE)
   ========================================================================== */

/*DEMO BAR*/
.demo-bar {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative; /* Asegura que ocupe espacio arriba */
    z-index: 9999;     /* Lo pone por encima de cualquier otro elemento */
    width: 100%;
    height: 1vw;
    font-size: 1rem;

}

.btn-buy-demo {
    background: #ffcc00; /* Color llamativo para resaltar */
    color: #000 !important;
    padding: 3px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    
}


/* =========================================
   1. VARIABLES GLOBALES & RESET
   ========================================= */
:root {

    /* ===================================================== 
        Paleta de Colores Principal 
        =======================================================*/
    --color-fondo-1: #fad048;
    --color-fondo-2: #f8fbff;
    --color-boton-comprar: #e11d48;
    --color-marca: #007bff;

       /* ===================================================== 
        BADGES
        =======================================================*/

    --color-texto-badge: #ffffff;
    --badge-envio: #00c853;
    --badge-oferta: #ff3d00;
    --badge-nuevo: #2962ff;
    --badge-descuento: #ff000d;

  /* ===================================================== 
          NAV, SEARCH, CART COUNT
   =======================================================*/

    --color-fondo-nav: #ffffff;
    --titulos-nav: #000000;
    --titulo-nav-categoria: #000000;
    --links-nav-categoria: #000000;
    --color-fondo-dropdown-categorias: #fff;
    --hover-nav: #e3a600;
    --badge-cart-count: #ff3d00;
    --color-text-cart-count: #fff;
    --boton-search: #fff;

      /* ===================================================== 
         HEADER, CARROUSELES
        =======================================================*/

    --fondo-destacados-ofertas: #fafafa;
    --fondo-card-producto-carrusel: #ffffff;
    --color-precio-carrusel: #e63946;
    --old-price-carrusel: #888888;
    --color-btn-comprar: #e11d48;
    --color-btn-comprar-hover: #ff000d;
    --color-texto-btn-comprar: #ffffff; 

    /* ===================================================== 
         CATEGORIAS, BACKGROUND, CARDS
       =======================================================*/

    --background-categoria-section: #f8fbff;
    --fondo-color-categoria-card: #fff;
    --borde-color-categoria-card: #e6eef8 ; /*Para el  hover y focus editar en .categoria-card:focus, .categoria-card:hover*/
    --color-titulo-categoria-card: #000;
    --color-subtitulo-categoria-card: #666;
    /* NOTA: Cada Icono de categoria es un SVG al cual se le agrego un fondo degradado y otros simples. para editar el fondo de cada categoria, junto con la combinacion de colores dirijase a la seccion de categorias (6) o CRTL + f "Colores de Fondo Categorías" 
     */

     /* ===================================================== 
         SECCIÓN: ¿POR QUÉ ELEGIRNOS?
        =======================================================*/

    /*  Para el fondo del section se uso un degradado de blancos, puede ser editado bajo el ID #por-que-elegirnos*/

    --titulo-section-por-que-elegirnos-color: #000;
    --subtitulo-section-por-que-elegirnos-color: #666;
    --background-por-que-elegirnos: #fff;
    --border-por-que-elegirnos: #e6eef8 ;
    /*Para editar el fondo de cada icono de las tarjetas de la section "Por Que elegirnos", puedo hacerlo en esta clase: .icon */
    
    /*      ===================================================== 
         SECCION: TESTIMONIOS DE CLIENTES
        =======================================================*/

    --background-testimonial-section: #f8fbff;
    --titulo-testimonial-section: #000;
    --subtitulo-testimonial-section: #666;
    /*Testimonial CARD:  el fondo de las tarjetas de testimonios de clientes lo puede realizar por medio de la siguiente clase: .testimonial-card*/
    --letra-cliente-testimonial-card: #fff;
    /* para el fondo de la letra inicial de testimonio de clientes, puede modificarlo en la siguiente clase .avatar */
    --titulo-nombre-cliente: #000;
    --comentario-cliente-color: #4d4d4d;
    --ciudad-de-cliente: #6b6b6b;
    --color-estrellas: #f59e0b;
    /* ===================================================== 
         LISTA DE PRODUCTOS, FILTRO Y CARDS DEL FILTRO
        =======================================================*/

    --background-filter-lateral: #fff;
    --border-filter-lateral: #eee;
    --btn-aplicar-filter: #ffe600;
    --btn-aplicar-filter-hover:  #f7d800;
    --product-card-background: #fff;
    --product-card-border: #e6e6e6;
    --titulo-product-card: #333;
    --precio-product-card-color: #000;
    --product-card-text: #666;
    --background-product-card-fav: #fff;
    --border-product-card-fav: #ddd;
    --background-add-to-card: #ff3d3d;
    --color-add-to-card: #fff;

    /* ===================================================== 
         PRODUCTO.HTML DETALLE DE PRODUCTO
        =======================================================*/

    --background-product-detalle: #fff;
    --border-product-info: #79797933;
    --background-galeria-product: #fff;
    --border-color-galeria: #79797933;
    --galeria-hover-select: #ff3d3d;
    --producto-precio-color: #000000;
    --old-price-product: #333;
    --badge-color-page-product: #ff3d3d;
    --badge-color-texto-page-product: #ffffff;
    --background-color-tallas: #fff;
    --border-color-tallas: #ccc;
    --hover-tallas: #ff3d3d;
    --select-talla: #ff3d3d;
    --border-colores: #000000;
    --border-colores-hover: #0d24f0;
    --border-colores-select: #f70101dd;
    --background-color-add-to-cart: #383838;

 /*===================================================== 
         CARRITO.HTML 
    =======================================================*/

    --background-section-carrito: #fff;
    --border-section-carrito: #e6e6e6;
    --qty-input-focus-color: #00b7ff;
    --color-danger-btn:  #ff3d3d;
    --color-danger-text:   #ffffff;
    --color-danger-hover: #d60000; ;
    --background-cart-table: #ffffff;   
    --cart-table-th: #f8f9fb;
    --cart-table-td: #eeeeee;
    --background-summary-color: #ffffff;
    --border-summary-color: #eeeeee;
    --background-checkout-btn: #00b7ff;
    --color-texto-checkout-btn: #ffffff;
    --hover-checkout-btn: #033f80;
    --background-cart-empty: #fff;
    --background-btn-empty: #00b7ff;
    --color-btn-empty: #ffffff;
    --hover-btn-empty: #033f80;

     /*===================================================== 
         LOGIN
    =======================================================*/
    /*para el background de login container se utilizo un degradado de dos colores, que puede modificar en la siguiente clase: .login-container
    Para tamaños del logo, lo puede configurar en .login-logo
    */

    --login-card: #ffffff;
    --login-card-text: #444444;
    --login-input-focus: #00b7ff;
    --background-login-btn: #00b7ff;
    --hover-login-btn: #033f80 ;
    --text-register-forgot: #666;
    --color-link-register-forgot: #00b7ff;

  /*===================================================== 
        REGISTER
    =======================================================*/
    
    --tp-bg: #fff;
    --input-bg: #fff;
    --tp-dark: #333;
    --tp-muted: #666;
    --placeholder-register: #979797;
    --register-focus: #00b7ff;
    --tp-primary: #00b7ff;
    --background-register-btn: #00b7ff;
    --hover-register-btn: #033f80;
    --login-link-color: #00b7ff;

      /*===================================================== 
        RECUPERAR CONTRASEÑA
    =======================================================*/

    /*Para modificar el fondo del section recuerar contraseña lo puede hacer desde la sieguente clase .recuperar-password-section */
    --background-section-forgot: #fff;
    --background-section-forgot-2: #ffffff;
    --text-section-forgot: #000000;
    --subtext-section-forgot: #666;
    --form-label-forgot: #333;
    --focus-forgot: #00b7ff;
    --background-forgot-btn: #00b7ff;
    --text-color-forgot-btn: #ffffff;
    --hover-forgot-btn: #033f90;
    --text-forgot-color: #666;
    --links-forgot-color: #00b7ff;
    --background-info-forgot: #fff;
    --border-left-info-forgot: #00b7ff;
    --text-info-forgot: #333;

    /*===================================================== 
        PERFIL
    =======================================================*/

    --background-perfil: #ffffff;
    --background-perfil-container: #ffffff;
    --border-perfil-foto: #00b7ff;
    --text-color-perfil: #666;
    --btn-cambiar-foto: #00b7ff;
    --background-btn-logout: #ff3f3f;
    --text-btn-logout: #fff;
    --hover-btn-logout: #fd1c1c;

    /*===================================================== 
           PÁGINAS INFORMATIVAS (FAQ, Info, etc)
    =======================================================*/

    --background-info: #fff;
    --info-text-color: #333;
    --background-info-sections: #fff;
    --background-info-sections-borders: #eee;

    /*Para mejor detalle, puede editar toda la paleta de colores desde la clase .info-section h2, border left, iconos, backgrounds y demas. */

    /*===================================================== 
           FOOTER
    =======================================================*/

    --background-color-footer: #007bff;
    --titulos-color-footer: #e3a600;
    --links-color-footer: #fff;
    --hover-links-footer: #e3a600;


    /*===================================================== 
           TRUST BADGE
    =======================================================*/
    --background-trust-badge-1: #007bff;
    --text-color-trust-badge-1: #fff;
    --color-left-trust-badge: #00e339; 
    --text-color-trust-badge-2: #000;
    --background-trust-badge-2: #fff;

    /*Para estilos de media queries se recomienda editar puntualmente en el aparto @media, al final de
    este documentos*/
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-fondo-1); /* Fondo base amarillo */
}

main {
    margin-top: 60px;
    padding: 2rem 2rem 1rem 2rem;
    background-color: var(--color-fondo-1);
    min-height: calc(100vh - 60px);
}

/* =========================================
   2. HEADER & NAVEGACIÓN
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-fondo-nav);
    padding: 0.35rem 1rem 0.35rem 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#logo-header {
    width: 200px;
}

/* --- Barra de Búsqueda --- */
.search-bar {
    display: flex;
    align-items: center;
    width: 40%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input#search-bar-style {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

button#search-button-style {
    padding: 0.5rem 1rem;
    border: none;
    background-color: var(--color-marca);
    color: var(--boton-search);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

button#search-button-style:hover {
    background-color: var(--color-marca);
    transition: background-color 0.3s ease;
}

/* --- Enlaces de Navegación --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    overflow: visible;
}

nav a {
    color: var(--titulos-nav);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s ease;
    white-space: nowrap;
    
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

nav a:hover {
    color: var(--hover-nav);
    transition: 0.2s ease;
}

/* --- Icono Carrito con Badge --- */
.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--badge-cart-count);
    color: var(--color-text-cart-count);
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulseBadge 1.5s infinite ease-in-out;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.15); box-shadow: 0px 4px 8px rgba(255, 61, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); }
}

/* --- Botón Menú Hamburguesa (Móvil) --- */
.menu-btn {
    width: 30px;
    height: 22px;
    display: none; /* Solo visible en media queries */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-btn span {
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* =========================================
   3. DROPDOWNS & SUBMENÚS
   ========================================= */
/* Menú vertical flotante */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--titulo-nav-categoria);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-btn:hover {
    color: var(--color-marca);
    background: rgba(227, 166, 0, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--color-fondo-dropdown-categorias);
    padding: 12px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    z-index: 3000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--links-nav-categoria);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--color-fondo-2);
    border-left-color: var(--color-marca);
    color: var(--color-marca);
    padding-left: 21px;
}

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

/* Submenús (categorías anidadas) */
.submenu {
    position: relative;
}

.submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu > a::after {
    content: "▸";
    font-size: 0.75rem;
    opacity: 0.6;
}

.submenu-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--color-fondo-2);
    min-width: 200px;
    padding: 12px 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 4000;
}

.submenu:hover .submenu-content {
    display: block;
}

.submenu-content a {
    padding: 12px 18px;
    color: #333;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.submenu-content a:hover {
    background: var(--color-fondo-2);
    border-left-color: var(--color-marca);
    color: var(--color-marca);
    padding-left: 21px;
}

/* =========================================
   4. LAYOUT PRINCIPAL & BANNER
   ========================================= */
.banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

img#img-banner {
    border-radius: 8px;
}

.tpya-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 1rem;
    border-radius: 10px;
}

.tpya-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(.22, .9, .3, 1);
    width: 100%;
}

.tpya-slide {
    flex: 0 0 100%;
    display: block;
}

.tpya-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Controles del Slider */
.tpya-prev,
.tpya-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: .5rem .8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    backdrop-filter: blur(2px);
}

.tpya-prev { left: 10px; }
.tpya-next { right: 10px; }
.tpya-prev:focus, .tpya-next:focus { outline: 2px solid #fff; }

.tpya-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    display: flex;
    gap: .5rem;
}

.tpya-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    padding: 0;
}

.tpya-dot[aria-selected="true"], .tpya-dot:hover { background: #fff; }

@media (min-width:768px) {
    .tpya-prev, .tpya-next { padding: .6rem 1rem; font-size: 1.6rem; }
}

/* =========================================
   5. SECCIÓN: PRODUCTOS DESTACADOS & OFERTAS
   ========================================= */
   
/* --- Estilos Comunes de Contenedor --- */
#productos-destacados,
#ofertas-del-dia {
    background: var(--fondo-destacados-ofertas);
    text-align: center;
    margin-top: 2rem; /* 1rem para ofertas */
    border-radius: 10px;
}

#ofertas-del-dia { margin-top: 1rem; }

.featured-products,
.featured-products-2 {
    padding: 1rem 1rem;
    background: #fafafa;
    text-align: center;
}

.featured-products h2,
.featured-products-2 h2 {
    font-size: 1.3rem;
    color: #333;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.5px;
}

/* --- Estilos de Carrusel --- */
.carousel-container,
.carousel-container-2 {
    position: relative;
    overflow: hidden;
}

.carousel-track,
.carousel-track-2 {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar,
.carousel-track-2::-webkit-scrollbar {
    display: none;
}

/* --- Tarjetas de Producto (Carrusel) --- */
.product-card,
.product-card-2 {
    flex: 0 0 auto;
    background: var(--fondo-card-producto-carrusel);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 150px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative; /* Para .product-card-2 */
}

.product-card-2 { height: auto; }

.product-card:hover,
.product-card-2:hover {
    transform: scale(1.05);
}

.product-card img,
.product-card-2 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.name-product,
.name-product-2 {
    font-size: 0.8rem;
    margin: 0.5rem 0;
    color: #333;
}

.price,
.price-2 {
    font-weight: bold;
    color: var(--color-precio-carrusel);
    margin: 0.5rem 0;
}

.old-price-2 {
    font-size: 0.75rem;
    color: var(--old-price-carrusel);
    text-decoration: line-through;
    margin-bottom: 0.3rem;
}

/* --- Botones Comprar Carrusel --- */
.btn-comprar,
.btn-comprar-2 {
    background: var(--color-btn-comprar);
    color: var(--color-texto-btn-comprar);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-comprar:hover,
.btn-comprar-2:hover {
    background: var(--color-btn-comprar-hover);
}



.link-btn-comprar {
    color: var(--color-texto-btn-comprar);
    text-decoration: none;
}

/* --- Botones Navegación Carrusel --- */
.carousel-btn,
.carousel-btn-2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem 0.8rem;
}

.carousel-btn:hover,
.carousel-btn-2:hover {
    background: #696969;
    color: white;
}

.carousel-btn.prev, .carousel-btn-2.prev-2 { left: 5px; }
.carousel-btn.next, .carousel-btn-2.next-2 { right: 5px; }





.product-card-2:hover .discount-badge {
    transform: scale(1.24);
}

/* Badges específicos para carrusel */
.carousel-badge {
    font-size: 0.65rem !important;
    padding: 4px 6px !important;
    line-height: 1 !important;
    z-index: 5;
    min-width: 48px;
}

.product-card .carousel-badge,
.product-card-2 .carousel-badge {
    position: absolute;
    left: 10px;
}

.product-card .carousel-badge:nth-child(n),
.product-card-2 .carousel-badge:nth-child(n) {
    margin-top: 4px;
}

/* =========================================
   6. SECCIÓN: CATEGORÍAS
   ========================================= */
.categorias-section {
    margin-top: 1rem;
    background: var(--background-categoria-section);
    padding: 0.5rem 0.5rem;
    border-radius: 10px;
    text-align: center;
}

.container-categorias { max-width: 1100px; margin: 18px auto; padding: 0 16px; }
.categorias-section .section-title { font-size: 1.25rem; margin: 0 0 6px; }
.categorias-section .section-lead { margin: 0 0 14px; color: #555; font-size: 0.95rem; }

.categorias-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.categoria-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--fondo-color-categoria-card);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(12, 15, 20, 0.06);
    text-decoration: none;
    color: inherit;
    min-height: 84px;
    transition: transform .12s ease, box-shadow .12s ease;
    border: 1px solid var(--borde-color-categoria-card);
}

.categoria-card:focus, .categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.329);
    outline: none;
}

.categoria-icon {
    width: 110px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.categoria-meta h3 { margin: 0 0 4px; color: var(--color-titulo-categoria-card); font-size: 1rem; }
.categoria-meta p { margin: 0; color: var(--color-subtitulo-categoria-card); font-size: 0.88rem; }

/* Colores de Fondo Categorías */
.bg-electronica { background: linear-gradient(135deg, #3478f6, #1aa2ff); }
.bg-moda { background: linear-gradient(135deg, #ff6fa3, #ff8f5a); }
.bg-hogar { background: linear-gradient(135deg, #6be585, #2bb673); }
.bg-belleza { background: linear-gradient(135deg, #ff7ad1, #ff4b7a); }
.bg-deportes { background: linear-gradient(135deg, #ffd166, #ff9b1a); }
.bg-juguetes { background: linear-gradient(135deg, #9b8cff, #6a60ff); }
.bg-alimentos { background: linear-gradient(135deg, #ffd89b, #ffb66b); }
.bg-automotriz { background: linear-gradient(135deg, #89d4ff, #4aa6ff); }
.bg-salud { background-color: #e91e63; }
.bg-libros { background-color: #795548; }
.bg-mascotas { background-color: #ff9800; }
.bg-jardin { background-color: #4caf50; }
.bg-gaming { background-color: #9c27b0; }

@media (max-width:520px) {
    .categoria-card { gap: 10px; padding: 10px; min-height: 72px; }
    .categoria-icon { width: 92px; height: 56px; }
    .categoria-meta h3 { font-size: 0.98rem; }
    .categoria-meta p { font-size: 0.82rem; }
}

/* =========================================
   7. SECCIÓN: ¿POR QUÉ ELEGIRNOS?
   ========================================= */
#por-que-elegirnos {
    padding: 48px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0b2540;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin-top: 1rem;
    border-radius: 10px;
}

#por-que-elegirnos .container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 1.75rem; margin: 0 0 8px; color: var(--titulo-section-por-que-elegirnos-color); text-align: center; }
.section-lead { text-align: center; color: var(--subtitulo-section-por-que-elegirnos-color); margin: 0 0 28px; font-size: 1rem; }

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.reason-card {
    background: var(--background-por-que-elegirnos);
    border: 1px solid var(--border-por-que-elegirnos);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(11, 37, 64, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 170px;
}

.reason-card:hover, .reason-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 123, 255, 0.349);
}

.icon { /*Fondo de icono de tarjetas ¿Por que elegirnos?*/
    width: 64px; height: 64px; line-height: 64px;
    margin: 0 auto; border-radius: 50%;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    color: #0b2540; flex-shrink: 0;
}

.reason-title { font-size: 1.05rem; margin: 0; color: #07203a; }
.reason-desc { margin: 0; color: #4a6178; font-size: 0.95rem; line-height: 1.3; flex-grow: 1; }

@media (max-width: 900px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
    .reasons-grid { grid-template-columns: 1fr; }
    .icon { width: 52px; height: 52px; line-height: 52px; font-size: 1.4rem; }
    #por-que-elegirnos { padding: 32px 12px; }
    .section-title { font-size: 1.4rem; }
}

/* =========================================
   8. SECCIÓN: TESTIMONIOS
   ========================================= */
.testimonials-section { background: var(--background-testimonial-section); border-radius: 10px; }
.testimonials-inner {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 18px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.testimonials-inner h2 {
    font-size: 1.6rem; margin: 0 0 6px; color: var(--titulo-testimonial-section); text-align: center;
}
.testimonials-sub {
    margin: 0 0 18px; color: var(--subtitulo-testimonial-section); font-size: 0.95rem; text-align: center; margin-bottom: 35px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.testimonial-card {
    display: flex; gap: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(11, 22, 48, 0.06);
    box-shadow: 0 6px 18px rgba(11, 22, 48, 0.06);
    padding: 14px; border-radius: 10px;
    transition: transform 180ms ease, box-shadow 180ms ease;
    min-height: 120px;
    align-items: flex-start;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 123, 255, 0.349);
}

.avatar {
    width: 64px; height: 64px; flex: 0 0 64px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--letra-cliente-testimonial-card); font-size: 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.card-content { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; color: #112240; }
.card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.client-name { font-size: 1rem; color: var(--titulo-nombre-cliente); }
.client-meta { color: var(--ciudad-de-cliente); font-size: 0.85rem; }
.rating { color: var(--color-estrellas); font-size: 0.95rem; letter-spacing: 0.5px; }
.quote { margin: 0; color: var(--comentario-cliente-color); font-size: 0.95rem; line-height: 1.35; }

@media (max-width: 480px) {
    .testimonial-card { flex-direction: column; align-items: stretch; padding: 12px; }
    .avatar { width: 56px; height: 56px; border-radius: 8px; }
    .card-header { flex-direction: row; gap: 8px; }
}

/* =========================================
   9. PÁGINA: TIENDA / LISTADO DE PRODUCTOS
   ========================================= */
   
.visually-hidden { /* CLASE QUE OCULTA TEXTO*/
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
} 
.layout-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sidebar + Productos */
    gap: 20px;
}

#ofertas-filter { display: none; }
#ofertas-section { display: flex; flex-direction: column; gap: 1rem; }

/* --- Sidebar de Filtros --- */
.filters {
    background: var(--background-filter-lateral);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-filter-lateral);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
    height: 40vw;
    overflow-y: scroll;
}

.filters h3 { margin-bottom: 15px; font-size: 1.2rem; }
.filter-block { margin-bottom: 25px; }
.filter-block h4 { margin-bottom: 10px; font-size: 1rem; color: #333; }
.filter-block label { display: block; font-size: 0.9rem; margin-bottom: 8px; }
.filter-block input[type="number"] {
    width: 100%; padding: 8px; margin-bottom: 10px;
    border: 1px solid #ddd; border-radius: 6px;
}

#apply-filters {
    width: 100%; padding: 10px;
    background: var(--btn-aplicar-filter); border: none; font-weight: bold;
    cursor: pointer; border-radius: 8px; transition: 0.2s;
}
#apply-filters:hover { background: var(--btn-aplicar-filter-hover); }

/* --- Grid de Productos --- */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

/* --- Tarjeta de Producto (Estilo MercadoLibre) --- */
.product {
    background: var(--product-card-background);
    padding: 15px;
    padding-bottom: 60px; /* Espacio para botón carrito */
    border-radius: 14px;
    border: 1px solid var(--product-card-border);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s forwards ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #dcdcdc;
}

.product img {
    width: 100%; aspect-ratio: 1 / 1;
    object-fit: cover; border-radius: 12px;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.product:hover img { transform: scale(1.05); }

.product h4 {
    margin: 12px 0 6px; font-size: 1rem; font-weight: 600;
    color: var(--titulo-product-card); line-height: 1.2; min-height: 40px;
}

.product p { font-size: 1.1rem; font-weight: bold; color: var(--precio-product-card-color); margin-top: 4px; }

/* Badges de Producto */
.product-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 6px 10px; font-size: 0.60rem; font-weight: 700;
    border-radius: 6px; color: var(--color-texto-badge); z-index: 5; letter-spacing: 0.3px;
}
/*En este bloque puede editar los backgroud de cada badge*/
.badge-envio { background: var(--badge-envio); }
.badge-oferta { background: var(--badge-oferta); animation: pulse 1.4s infinite ease-in-out; }
.badge-nuevo { background: var(--badge-nuevo); }
.badge-descuento { background: var(--badge-descuento); font-weight: 800; font-size: 0.8rem; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Metadatos del Producto */
.product-rating { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; }
.product-rating .stars { color: var(--color-estrellas); font-size: 0.9rem; }
.product-rating span { font-size: 0.82rem; color: var(--product-card-text); }
.product-sold { font-size: 0.78rem; color: var(--product-card-text); margin-bottom: 6px; }
.product-old-price { font-size: 0.85rem; color: var(--product-card-text); text-decoration: line-through; margin-top: 4px; }


/* Botones Acción (Favorito / Carrito) */
.product-fav {
    position: absolute; top: 12px; right: 12px;
    background: var(--background-product-card-fav); backdrop-filter: blur(4px);
    border-radius: 50%; width: 34px; height: 34px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; border: 1px solid var(--border-product-card-fav);
    transition: all 0.25s ease; z-index: 10;
}
.product-fav:hover { transform: scale(1.12); border-color: #bbb; }
.product-fav svg { width: 18px; fill: #777; transition: 0.3s; }
.product-fav.active svg { fill: #ff1744; }

.product-add-cart {
    position: absolute; bottom: -50px; left: 0; width: 100%;
    padding: 10px 0; color: var(--color-add-to-card); background: var(--background-add-to-card);
    text-align: center; font-weight: bold;
    border-radius: 0 0 12px 12px; cursor: pointer;
    transition: all 0.35s ease;
}
.product:hover .product-add-cart { bottom: 0; }

/* =========================================
   10. PÁGINA: DETALLE DE PRODUCTO
   ========================================= */
.producto-container {
    width: 100%; max-width: 1200px;
    margin: 20px auto; padding: 30px;
    display: flex; gap: 40px;
    background-color: var(--background-product-detalle); border-radius: 10px;
}

.producto-info {
    border: 1px solid rgba(0, 0, 0, 0.247);
    border-radius: 10px; padding: 1.5rem;
    border: 1px solid var(--border-product-info);
    width: 55%;
}

.producto-galeria { width: auto; display: flex; gap: 15px; }

.producto-galeria img {
    width: 100%; border-radius: 12px;
    background: var(--background-galeria-product); border: 1px solid var(--border-color-galeria);
}

/* Galería: Miniaturas */
.galeria-thumbs { display: flex; flex-direction: column; gap: 10px; }
.galeria-thumbs img {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: 0.3s;
}
.galeria-thumbs img.active, .galeria-thumbs img:hover { border: 2px solid var(--galeria-hover-select); }

/* Galería: Imagen Principal & Zoom */
.galeria-principal {
    position: relative; width: 550px; height: 420px;
    overflow: hidden;
}

#imagen-principal {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s ease; cursor: zoom-in;
}

#imagen-principal.zoom { transform: scale(2); cursor: zoom-out; object-fit: cover; }
.zoom-lens {
    position: absolute; border: 2px solid #252525;
    width: 140px; height: 140px; opacity: 0; pointer-events: none;
}
.zoom-result {
    width: 420px; height: 420px; border: 1px solid #252525;
    background-repeat: no-repeat; margin-left: 20px; display: none;
}

/* Info del Producto */
.producto-titulo { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
#product-description { margin-top: 1rem; margin-bottom: 1rem; }
.producto-precio { font-size: 30px; font-weight: bold; color: var(--producto-precio-color); margin-bottom: 10px; }
.producto-oldprice { font-size: 18px; color: var(--old-price-product); text-decoration: line-through; margin-bottom: 10px; }

.producto-badges { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.producto-badges .badge {
    padding: 5px 8px; background: var(--badge-color-page-product); color: var(--badge-color-texto-page-product);
    font-size: 12px; border-radius: 6px;
}

/* Variantes (Talla, Color, Modelo) */
.product-variant-block { margin: 20px 0; }
.product-variant-block h4 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }

.variant-tallas { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-talla-btn, .variant-storage-btn, .variant-modelo-btn, .variant-color-reset {
    padding: 10px 16px; border-radius: 8px;
    background: var(--background-color-tallas); border: 1px solid var(--border-color-tallas);
    cursor: pointer; font-size: 15px; transition: 0.3s;
}

.variant-talla-btn:hover, .variant-storage-btn:hover,
.variant-modelo-btn:hover, .variant-color-reset:hover { border-color: var(--hover-tallas); }

.variant-talla-btn.active, .variant-storage-btn.active, .variant-modelo-btn.active {
    background: #ff3d3d; color: #fff; border-color: var(--select-talla);
}

.variant-colores { display: flex; gap: 12px; margin-top: 10px; }
.variant-color-btn {
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; outline: none; transition: 0.25s;
    border: 1px solid var(--border-colores);
}
.variant-color-btn:hover { border-color: var(--border-colores-hover); }
.variant-color-btn.active { border-color: var(--border-colores-select); box-shadow: 0 0 6px rgba(0, 0, 0, 0.25); }

/* Botones de Acción Producto */
.producto-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-comprar { /* Ya definido arriba */ font-size: 16px; padding: 14px 22px; }
.btn-carrito, .btn-favorito {
    padding: 14px 18px; background: var(--background-color-add-to-cart); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 16px;
}

/* =========================================
   11. PÁGINA: CARRITO DE COMPRAS & CHECKOUT
   ========================================= */
#cart-app {
    max-width: 1100px; margin: 10px auto 40px;
    background: var(--background-section-carrito); padding: 24px;
    border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-section-carrito);
}

.qty-input {
    width: 70px; padding: 8px; border-radius: 8px;
    border: 1px solid #ddd; font-size: 0.95rem; background: #fff;
}
.qty-input:focus {
    border-color: var(--qty-input-focus-color); outline: none; box-shadow: 0 0 3px rgba(255, 153, 0, 0.4);
}

.btn-danger {
    padding: 10px 14px; border-radius: 8px; background: var(--color-danger-btn);
    border: none; color: var(--color-danger-text); cursor: pointer; font-weight: 600;
}
.btn-danger:hover { background: var(--color-danger-hover) }

.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 0.95rem; }



/* Estilos Profesionales Carrito (Tabla Modernizada) */
.cart-details { width: 100%; overflow-x: auto; margin-bottom: 2rem; }
.cart-table {
    width: 100%; border-collapse: collapse; background: var(--background-cart-table);
    border-radius: 14px; overflow: hidden; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.cart-table th {
    text-align: left; padding: 14px; background: var(--cart-table-th);
    font-weight: 600; color: #333; border-bottom: 2px solid #eee;
}
.cart-table td { padding: 14px; border-bottom: 1px solid var(--cart-table-td); vertical-align: middle; }

.item-product { display: flex; gap: 12px; align-items: center; }
.item-img {
    width: 60px; height: 60px; border-radius: 10px;
    object-fit: cover; border: 1px solid #ddd;
}

.cart-summary-checkout { width: 100%; display: flex; justify-content: flex-end; }
.cart-summary {
    width: 300px; padding: 20px; background: var(--background-summary-color);
    border-radius: 14px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-summary-color);
}
.cart-summary h3 { margin-bottom: 1rem; font-size: 1.3rem; font-weight: bold; }

#btn-show-checkout {
    width: 100%; background: var(--background-checkout-btn); border: none;
    padding: 14px; font-size: 1rem; border-radius: 10px;
    color: var(--color-texto-checkout-btn); font-weight: bold; cursor: pointer;
    margin-top: 1rem; transition: 0.2s;
}
#btn-show-checkout:hover { background: var(--hover-checkout-btn); }

.cart-empty {
    text-align: center; padding: 40px 20px; background: var(--background-cart-empty);
    border-radius: 14px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.cart-empty p { font-size: 1.1rem; margin-bottom: 1rem; }
.cart-empty .btn-primary {
    display: inline-block; background: var(--background-btn-empty); padding: 10px 16px;
    border-radius: 8px; color: var(--color-btn-empty); text-decoration: none;
    font-weight: bold; transition: 0.2s;
}
.cart-empty .btn-primary:hover { background: var(--hover-btn-empty); }

/* =========================================
   12. PÁGINAS DE USUARIO (AUTH & PERFIL)
   ========================================= */

/* --- Login --- */
.login-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 60vh; background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 50px; border-radius: 10px;
}

.login-card {
    background: var(--login-card); border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 40px;
    width: 100%; max-width: 400px; text-align: center;
}

.login-logo {
    max-width: 150px; margin-bottom: 20px;
    display: block; margin-left: auto; margin-right: auto;
}

.login-card h2 { color: var(--login-card-text); font-size: 24px; margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }

#login-form input {
    width: 100%; padding: 12px; border: 2px solid #e0e0e0;
    border-radius: 6px; font-size: 14px; transition: border-color 0.3s;
    box-sizing: border-box;
}
#login-form input:focus { outline: none; border-color: var(--login-input-focus); }

.login-btn {
    width: 100%; padding: 12px; background-color: var(--background-login-btn);
    color: white; border: none; border-radius: 6px;
    font-size: 16px; font-weight: bold; cursor: pointer;
    transition: transform 0.2s; margin-top: 10px;
}
.login-btn:hover { background-color: var(--hover-login-btn);}

.login-register-text { margin-top: 20px; color: var(--text-register-forgot); font-size: 14px; margin-top: 0.2rem; }
.login-forgot-password { margin-top: 10px; color: var(--text-register-forgot); font-size: 14px; }
.login-forgot-password a, .login-register-text a {
    color: var(--color-link-register-forgot); text-decoration: none; font-weight: bold;
}
.login-register-text a:hover { text-decoration: underline; }
.login-forgot-password a:hover { text-decoration: underline; }

/* --- Register --- */
.register-container {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 48px 16px; border-radius: 10px; background-color: var(--tp-bg);
}

.register-card {
    width: 100%; max-width: 480px; background: var(--input-bg);
    border-radius: 12px; box-shadow: 0 8px 30px rgba(31, 41, 55, 0.08);
    padding: 28px; border: 1px solid rgba(31, 41, 55, 0.04);
}

.register-card h1 { margin: 0 0 8px; font-size: 1.6rem; color: var(--tp-dark); font-weight: 700; }
.register-subtitle { margin: 0 0 18px; color: var(--tp-muted); font-size: 0.95rem; }

.register-form .form-group { margin-bottom: 14px; display: flex; flex-direction: column; }
.register-form label { font-size: 0.9rem; color: var(--tp-dark); margin-bottom: 6px; }

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="password"] {
    padding: 10px 12px; border-radius: 8px;
    border: 1px solid rgba(31, 41, 55, 0.12); background: var(--input-bg);
    font-size: 0.95rem; color: var(--tp-dark); outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.register-form input::placeholder { color: var(--placeholder-register); }
.register-form input:focus {
    border-color: var(--register-focus); box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.06);
}

.form-group.checkbox { flex-direction: row; align-items: center; gap: 10px; }
.form-group.checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--tp-primary); }

.register-form .btn-register {
    width: 100%; padding: 12px 14px; margin-top: 6px; border: none;
    border-radius: 10px; background-color: var(--background-register-btn); color: #fff;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease;
    box-shadow: 0 6px 18px rgba(0, 89, 255, 0.16);
}
.register-form .btn-register:hover {
   background-color: var(--hover-register-btn); box-shadow: 0 8px 22px rgba(2, 7, 255, 0.18);
}

.login-link { margin-top: 12px; font-size: 0.95rem; color: var(--tp-muted); text-align: center; }
.login-link a { color: var(--login-link-color); text-decoration: none; font-weight: 600; }
.error-message { color: var(--error); font-size: 0.85rem; min-height: 18px; margin-top: 6px; }
.login-link a:hover{text-decoration: underline;}

/* --- Recuperar Contraseña --- */
.recuperar-password-section {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); padding: 20px;
    border-radius: 10px;
}
.recuperar-password-container { width: 100%; max-width: 450px; }
.recuperar-password-card {
    background: var(--background-section-forgot); border-radius: 12px; padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border-top: 4px solid var(--background-section-forgot-2);
}

.recuperar-password-title { color: var(--text-section-forgot); font-size: 28px; font-weight: 700; margin-bottom: 10px; text-align: center; }
.recuperar-password-subtitle { color: var(--subtext-section-forgot); font-size: 14px; text-align: center; margin-bottom: 30px; }
.recuperar-password-form { margin-bottom: 25px; }

.form-label { display: block; color: var(--form-label-forgot); font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-input {
    width: 100%; padding: 12px 15px; border: 2px solid #E0E0E0;
    border-radius: 6px; font-size: 14px; transition: all 0.3s ease;
}
.form-input:focus {
    outline: none; border-color: var(--focus-forgot); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-error { color: #007bff; font-size: 12px; margin-top: 5px; display: block; }

.btn-recuperar {
    width: 100%; padding: 12px; background-color: var(--background-forgot-btn);
    color: var(--text-color-forgot-btn); border: none; border-radius: 6px; font-size: 16px;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.btn-recuperar:hover { background-color: var(--hover-forgot-btn); box-shadow: 0 8px 20px rgba(53, 141, 255, 0.3); }


.recuperar-links { text-align: center; margin-bottom: 25px; border-top: 1px solid #E0E0E0; padding-top: 20px; }
.recuperar-links p { color: var(--text-forgot-color); font-size: 14px; margin: 8px 0; }
.link-secondary { color: var(--links-forgot-color); text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.link-secondary:hover { text-decoration: underline; }

.recuperar-info { background: var(--background-info-forgot); border-left: 4px solid var(--border-left-info-forgot); padding: 15px; border-radius: 6px; }
.info-text { color: var(--text-info-forgot); font-size: 13px; margin: 0; line-height: 1.5; }

/* --- Perfil de Usuario --- */
.div-perfil-container {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 40px 20px; min-height: 80vh; background-color: var(--background-perfil); border-radius:10px;
}
.perfil-container {
    background-color: var(--background-perfil-container); padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px;
    text-align: center;
}
.perfil-foto-container { margin-bottom: 25px; position: relative; }
.perfil-foto {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--border-perfil-foto);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease;
}
.perfil-foto:hover { transform: scale(1.02); }

.perfil-card { text-align: left; margin-top: 20px; padding: 15px; border-top: 1px solid #eee; }
.perfil-card p { margin-bottom: 10px; font-size: 16px; }
.perfil-card strong { color: var(--text-color-perfil); display: inline-block; width: 120px; }

.btn-cambiar-foto {
    display: block; width: fit-content; margin: 10px auto 0;
    padding: 8px 15px; background-color: var(--btn-cambiar-foto); color: white;
    border-radius: 5px; cursor: pointer; font-size: 14px; text-align: center;
}

#logout-btn {
    width: 100%; padding: 10px; margin-top: 20px;
    background-color: var(--background-btn-logout); color: var(--text-btn-logout); border: none;
    border-radius: 5px; cursor: pointer; transition: background-color 0.3s;
}
#logout-btn:hover { background-color: var(--hover-btn-logout); }

/* =========================================
   13. PÁGINAS INFORMATIVAS (FAQ, Info, etc)
   ========================================= */
.info-adicional { padding: 40px 0; background: var(--background-info); font-family: 'Inter', sans-serif; color: var(--info-text-color); border-radius: 10px; }
.info-section {
    background: var(--background-info-sections); margin: 25px auto; width: 90%; max-width: 1100px;
    padding: 35px 40px; border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); border: 1px solid var(--background-info-sections-borders);
}
.section-container { width: 100%; }
/*BORDER-LEFT DE AQUI EN ADELANTE*/
.info-section h2 {
    font-size: 28px; margin-bottom: 20px; color: #222; font-weight: 700;
    border-left: 6px solid #FFC107; padding-left: 12px;
}
.info-section h3 { margin-top: 22px; font-size: 20px; font-weight: 600; color: #444; }
.info-section p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.info-section ul, .info-section ol { margin-left: 25px; }
.info-section li { font-size: 16px; margin-bottom: 8px; line-height: 1.6; }
.info-section li::marker { color: #4CAF50; }
.info-section a { color: #0D6EFD; text-decoration: none; }
.info-section a:hover { text-decoration: underline; }

.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px; margin-top: 20px;
}
.contact-item { background: #fafafa; padding: 20px; border-radius: 12px; border: 1px solid #eee; }
.contact-item h4 { font-size: 18px; margin-bottom: 12px; }

.blog-list li { padding: 8px 0; }
.blog-list li a { font-size: 16px; }

.method-highlight {
    background: #FFF6D1; padding: 15px 20px; border-left: 5px solid #FFC107;
    border-radius: 8px; margin-bottom: 20px;
}
.security-note { margin-top: 15px; font-weight: 600; color: #333; }
.fraud-note { margin-top: 10px; color: #C62828; font-weight: 600; }

.faq-container { display: flex; flex-direction: column; gap: 20px; }
.faq-item {
    background: #fafafa; padding: 18px 20px;
    border-radius: 10px; border-left: 5px solid #FFC107;
}
.faq-item h4 { margin-bottom: 8px; font-weight: 600; }
.cta-link { display: inline-block; margin-top: 15px; font-weight: 600; }

/* Colores por sección */
.quienes-somos h2 { border-color: #FFC107; }
.contacto h2 { border-color: #2196F3; }
.trabaja-con-nosotros h2 { border-color: #4CAF50; }
.blog h2 { border-color: #9C27B0; }
.metodos-de-pago h2 { border-color: #FF9800; }
.garantia-de-compra h2 { border-color: #4CAF50; }
.devoluciones h2 { border-color: #F44336; }
.seguridad h2 { border-color: #3F51B5; }
.preguntas-frecuentes h2 { border-color: #00BCD4; }
.soporte-tecnico h2 { border-color: #2196F3; }
.estado-de-pedidos h2 { border-color: #009688; }
.centro-de-ayuda h2 { border-color: #673AB7; }
.terminos-y-condiciones h2 { border-color: #795548; }
.politica-de-privacidad h2 { border-color: #607D8B; }
.cookies h2 { border-color: #FF5722; }
.libro-de-reclamaciones h2 { border-color: #E91E63; }

/* =========================================
   14. FOOTER
   ========================================= */
footer {
    background-color: var(--background-color-footer); color: white; padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 { color: var(--titulos-color-footer); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--links-color-footer); text-decoration: none; font-size: 0.9rem; }
.footer-section a:hover { color: var(--hover-links-footer); }

.trust-badge {
    background-color: var(--background-trust-badge-1); color: var(--text-color-trust-badge-1);
    padding: 1rem; border-left: 4px solid var(--color-left-trust-badge); margin-bottom: 1.5rem;
    border-radius: 4px; transition: all 1s ease;
}
.trust-badge strong { color: var(--text-color-trust-badge-1); }

.trust-badge-2 {
    background-color: var(--background-trust-badge-2); padding: 1rem;
    border-left: 4px solid var(--color-left-trust-badge); margin-bottom: 1.5rem;
    border-radius: 4px; color: var(--text-color-trust-badge-2);
}
.trust-badge-2 strong { color: var(--text-color-trust-badge-2) }

.footer-bottom {
    max-width: 1200px; margin: 2rem auto 0; padding-top: 2rem;
    border-top: 1px solid rgba(227, 166, 0, 0.3);
    text-align: center; font-size: 0.9rem;
}

/* =======================================================
   15. MEDIA QUERIES (ESTILOS RESPONSIVE)
   ======================================================= */

@media (min-width: 901px) {
    .main-content-wrapper {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 30px; /* Un poco más de aire en escritorio */
    }
}
@media (max-width: 900px) {
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
    .summary { width: 100%; margin-top: 20px; }
    #cart-content > div { flex-direction: column; }
}

@media (min-width: 820px) and (max-width: 1180px){
    .producto-container {
    width: 100%; max-width: 1200px;
    margin: 20px auto; padding: 30px;
    display: flex; gap: 40px;
    background-color: var(--background-product-detalle); border-radius: 10px;
}

.producto-info {
    border: 1px solid rgba(0, 0, 0, 0.247);
    border-radius: 10px; padding: 1.5rem;
    border: 1px solid var(--border-product-info);
    width: 55%;
}

.producto-galeria { width: 100%; display: flex; gap: 15px; }

.producto-galeria img {
    width: 100%; border-radius: 12px;
    background: var(--background-galeria-product); border: 1px solid var(--border-color-galeria);
}

/* Galería: Miniaturas */
.galeria-thumbs { display: flex; flex-direction: column; gap: 10px; }
.galeria-thumbs img {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: 0.3s;
}
.galeria-thumbs img.active, .galeria-thumbs img:hover { border: 2px solid var(--galeria-hover-select); }

/* Galería: Imagen Principal & Zoom */
.galeria-principal {
    position: relative; width: auto; height: auto;
    overflow: hidden;
}

#imagen-principal {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s ease; cursor: zoom-in;
}

#imagen-principal.zoom { transform: scale(2); cursor: zoom-out; object-fit: cover; }
.zoom-lens {
    position: absolute; border: 2px solid #252525;
    width: 140px; height: 140px; opacity: 0; pointer-events: none;
}
.zoom-result {
    width: 420px; height: 420px; border: 1px solid #252525;
    background-repeat: no-repeat; margin-left: 20px; display: none;
}

/* Info del Producto */
.producto-titulo { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
#product-description { margin-top: 1rem; margin-bottom: 1rem; }
.producto-precio { font-size: 30px; font-weight: bold; color: var(--producto-precio-color); margin-bottom: 10px; }
.producto-oldprice { font-size: 18px; color: var(--old-price-product); text-decoration: line-through; margin-bottom: 10px; }

.producto-badges { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.producto-badges .badge {
    padding: 5px 8px; background: var(--badge-color-page-product); color: var(--badge-color-texto-page-product);
    font-size: 12px; border-radius: 6px;
}

/* Variantes (Talla, Color, Modelo) */
.product-variant-block { margin: 20px 0; }
.product-variant-block h4 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }

.variant-tallas { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-talla-btn, .variant-storage-btn, .variant-modelo-btn, .variant-color-reset {
    padding: 10px 16px; border-radius: 8px;
    background: var(--background-color-tallas); border: 1px solid var(--border-color-tallas);
    cursor: pointer; font-size: 15px; transition: 0.3s;
}

.variant-talla-btn:hover, .variant-storage-btn:hover,
.variant-modelo-btn:hover, .variant-color-reset:hover { border-color: var(--hover-tallas); }

.variant-talla-btn.active, .variant-storage-btn.active, .variant-modelo-btn.active {
    background: #ff3d3d; color: #fff; border-color: var(--select-talla);
}

.variant-colores { display: flex; gap: 12px; margin-top: 10px; }
.variant-color-btn {
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; outline: none; transition: 0.25s;
    border: 1px solid var(--border-colores);
}
.variant-color-btn:hover { border-color: var(--border-colores-hover); }
.variant-color-btn.active { border-color: var(--border-colores-select); box-shadow: 0 0 6px rgba(0, 0, 0, 0.25); }

/* Botones de Acción Producto */
.producto-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-comprar { /* Ya definido arriba */ font-size: 16px; padding: 14px 22px; }
.btn-carrito, .btn-favorito {
    padding: 14px 18px; background: var(--background-color-add-to-cart); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 16px;
}
}

@media (max-width: 750px) {
    .item-product { flex-direction: column; align-items: flex-start; }
    .item-img { width: 80px; height: 80px; }
    .cart-summary-checkout { justify-content: center; }
    .cart-summary { width: 90%; margin-top: 1.5rem; }
}

@media (max-width: 700px) {
    .cart-list th:nth-child(2),
    .cart-list td:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
    .recuperar-password-card { padding: 25px; }
    .recuperar-password-title { font-size: 24px; }
}

@media (max-width: 520px) {
    .register-card { padding: 20px; border-radius: 10px; }
    .register-card h1 { font-size: 1.4rem; }
}

/* --- MÓVIL PRINCIPAL (max-width: 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Header & Nav */
    nav { padding: 0.35rem 0.8rem; flex-wrap: wrap; gap: 5px; }
    #logo-header { width: 150px; }
    
    /* Barra de búsqueda reducida */
    .search-bar { width: 100%; order: 3; margin-top: 5px; box-shadow: none; }
    input#search-bar-style { width: 100%; background: #f0f0f0; }

    /* Enlaces Navegación Móvil */
    .nav-links {
        position: absolute; top: 70px; right: 0; width: 230px;
        background: #ffffff; display: none; /* JS toggle */
        flex-direction: column; padding: 15px 0;
        border-left: 1px solid #eee; border-bottom: 1px solid #eee;
        box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.1); z-index: 999;
        max-height: 85vh; overflow-y: auto;
        font-size: 1rem; color: #000;
    }
    
    .nav-links .cart-icon { font-size: 1rem; color: #000; }
    .nav-links a { margin: 0; padding: 12px 20px; font-size: 1rem; border-bottom: 1px solid #f5f5f5; }
    .nav-active { display: flex !important; }

    /* Menú Hamburguesa */
    .menu-btn {
        display: flex; flex: 0 0 auto; margin-left: 10px;
        position: relative; z-index: 1001; margin-left: auto;
    }
    .menu-btn.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
    .menu-btn.active span:nth-child(2) { opacity: 0; }
    .menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

    /* Dropdowns Móvil */
    .dropdown { width: 100%; }
    .dropdown-btn {
        width: 100%; margin: 0; text-align: center; justify-content: center;
        padding: 12px 20px; border-radius: 0; font-size: 1rem;
    }
    .dropdown-menu {
        position: static; box-shadow: none; border-radius: 0;
        background: #fafafa; backdrop-filter: none; border: none; animation: none;
    }
    .dropdown-menu a { border-left: none; border-bottom: 1px solid #eee; padding-left: 20px; }
    .dropdown-menu a:hover { padding-left: 20px; border-left-color: transparent; }

    /* Submenú Móvil */
    .submenu-content {
        position: static; padding-left: 15px; box-shadow: none;
        border: none; border-left: 2px solid #eee; border-radius: 0;
    }
    .submenu > a::after { content: "▾"; transform: rotate(0deg); }
    .submenu:hover .submenu-content { display: block; }

    /* 2. Slider & Home Components */
    .tpya-slider { margin: 0.5rem 0; border-radius: 0; }
    .tpya-slide img { height: 200px; object-fit: cover; }
    .tpya-prev, .tpya-next { display: none; }

    /* Carruseles (Touch Scroll) */
    .carousel-track, .carousel-track-2 {
        display: flex; flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; gap: 10px; scroll-snap-type: none;
        padding-right: 30px;
    }
    .carousel-btn, .carousel-btn-2 { display: none; }
    
    .product-card, .product-card-2 { width: 140px; min-width: 140px; scroll-snap-align: start; }
    .name-product, .name-product-2 { font-size: 0.85rem; height: 34px; overflow: hidden; }
    .btn-comprar, .btn-comprar-2 { width: 100%; padding: 8px 0; font-size: 0.9rem; }

    /* Categorías Grid Móvil */
    .categorias-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .categoria-card { flex-direction: column; text-align: center; padding: 15px 5px; min-height: auto; }
    .categoria-icon { width: 50px; height: 50px; margin-bottom: 8px; }
    .categoria-meta h3 { font-size: 0.9rem; }
    .categoria-meta p { display: none; }

    /* Why Choose Us Móvil */
    .reasons-grid { grid-template-columns: 1fr; }
    .reason-card {
        flex-direction: row; align-items: center; text-align: left;
        padding: 15px; min-height: auto;
    }
    .reason-card .icon { margin: 0; margin-right: 15px; width: 50px; height: 50px; font-size: 1.2rem; }

    /* Testimonios Móvil (Scroll Horizontal) */
    .testimonials-grid {
        display: flex; overflow-x: auto; gap: 15px; padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }
    .testimonial-card { min-width: 85vw; scroll-snap-align: center; flex-direction: column; }

    /* 3. Página Listado (Filtros & Grid) */
    .layout-container, #ofertas-section {
        display: flex; flex-direction: column; gap: 15px; margin-top: 10px;
    }
    
    .filters, #ofertas-filter {
        position: relative; top: 0; width: 100%; height: auto;
        overflow-y: visible; margin-bottom: 10px; padding: 15px;
        border: 1px solid #eee; background: #fff; border-radius: 8px;
    }
    
    .filters h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
    .filter-block { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f9f9f9; }
    .filter-block input[type="number"] { width: 48%; display: inline-block; margin-right: 2%; }
    #apply-filters { width: 100%; font-size: 1rem; margin-top: 5px; }

    /* Grid de Productos Móvil (2 col) */
    .product-list {
        display: grid; grid-template-columns: repeat(2, 1fr);
        gap: 10px; padding: 0 5px;
    }
    
    .product {
        padding: 10px; padding-bottom: 50px; min-height: 290px;
        display: flex; flex-direction: column; justify-content: space-between;
    }
    .product h4 { font-size: 0.85rem; line-height: 1.3; min-height: 36px; overflow: hidden; margin: 8px 0; }
    .product p.product-price { font-size: 1.1rem; margin-top: auto; }
    .product-add-cart { font-size: 0.85rem; padding: 10px 0; bottom: 0; border-radius: 0 0 12px 12px; }
    .product-badge { font-size: 0.6rem; padding: 4px 6px; top: 8px; left: 8px; }

    /* 4. Página Detalle Producto Móvil */
    #producto-detalle {
        display: flex; flex-direction: column; padding: 10px;
        margin-top: 20px; gap: 20px;
    }
    
    #producto-detalle .producto-galeria { flex-direction: column; width: 100%; gap: 10px; }
    .galeria-principal { width: 100%; max-height: 350px; }
    
    .galeria-thumbs {
        width: 100%; flex-direction: row; overflow-x: auto;
        padding-bottom: 5px; justify-content: flex-start; scrollbar-width: none;
    }
    .galeria-thumbs::-webkit-scrollbar { display: none; }
    .thumb-img { width: 60px; height: 60px; flex-shrink: 0; }
    
    .producto-info { width: 100%; }
    .producto-titulo { font-size: 1.5rem; }
    .producto-precio { font-size: 1.8rem; }
    
    .variant-talla-btn, .variant-storage-btn, .variant-modelo-btn {
        padding: 8px 14px; flex-grow: 1; text-align: center;
    }
    
    .producto-actions {
        flex-direction: column; position: fixed; bottom: 0; left: 0;
        width: 100%; background: white; padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); z-index: 1000; margin: 0;
    }
    .btn-comprar { order: 1; }
    .btn-carrito { order: 2; background: #007bff; }
    .btn-favorito { display: none; }
    body { padding-bottom: 140px; } /* Espacio para barra fija */

    /* 5. Carrito Móvil (Transformación a Cards) */
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block; width: 100%;
    }
    .cart-table thead { display: none; }
    
    .cart-table tr {
        margin-bottom: 20px; border: 1px solid #eee; border-radius: 8px;
        padding: 15px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        position: relative;
    }
    
    .cart-table td {
        padding: 10px 0; text-align: right; display: flex;
        justify-content: space-between; align-items: center;
        border-bottom: 1px solid #f5f5f5;
    }
    .cart-table td:last-child { border-bottom: none; }
    
    .cart-table td::before {
        content: attr(data-label); font-weight: bold; color: #777; float: left;
    }
    
    .cart-table td.item-product {
        flex-direction: row; text-align: left; justify-content: flex-start;
        padding-bottom: 15px;
    }
    
    /* Botón eliminar flotante */
    .cart-table td:last-child {
        position: absolute; top: 10px; right: 10px; border: none;
        padding: 0; width: auto; display: block;
    }
    .btn-remove { border: none; color: #000000; font-size: 1.2rem; }

    /* 6. Footer & Global */
    footer { padding: 2rem 1rem; text-align: center; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .trust-badge-2 { font-size: 0.9rem; }
    .trust-badge { font-size: 0.8rem; text-align: left; padding-right: 35px; }
    
    main { padding: 1rem 0.5rem; margin-top: 110px; }
}