/* Variables CSS */
:root {
    --color-primary: #FFDD00;
    --color-secondary: #000000;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #F0F3F5;
    --color-white: #FFFFFF;
    --font-main: 'Lato', sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Header - Sticky Menu como Trek Bikes */
.header-main {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 0;
    overflow: visible;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    width: 100%;
    will-change: box-shadow, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Sombra cuando hay scroll - similar a Trek Bikes */
.header-main.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: var(--color-bg);
}

.header-main .container {
    position: static;
}

/* Primera fila: Logo y acciones */
.header-top {
    position: relative;
    margin-bottom: 5px;
    background-color: var(--color-bg);
    min-height: 140px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 4px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.logo-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 120px;
    width: auto;
}

.logo-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Búsqueda, carrito y avatar (derecha) - en header-top, parte superior */
.header-top .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1;
    pointer-events: auto;
}

/* Ocultar acciones en main-nav ya que se muestran en header-top */
.main-nav .header-actions {
    display: none !important;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    gap: 8px;
}

.search-icon-inline {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
    width: 150px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: var(--color-primary, #333);
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}
.search-btn:hover,
.search-btn:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}
.search-btn:active {
    opacity: 0.9;
}
.search-btn img {
    display: block;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.cart-link:hover {
    background-color: #e6b800;
}

.cart-icon {
    width: 22px;
    height: 22px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* User Menu Avatar */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-link:hover {
    background-color: #f8f8f8;
    border-color: var(--color-primary);
}

.user-avatar-link:hover .user-avatar-icon {
    color: var(--color-primary);
}

.user-avatar-icon {
    font-size: 22px;
    color: #555;
    transition: color 0.2s ease;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0;
}

.user-menu-container.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.user-menu-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 5px;
    word-break: break-word;
}

.user-menu-email {
    font-size: 13px;
    color: var(--color-text-light);
    word-break: break-word;
}

.user-menu-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}

.user-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu-list li {
    margin: 0;
}

.user-menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.user-menu-list a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.user-menu-list a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.user-menu-list a i.fa-sign-out {
    color: #dc3545;
}

.user-menu-list a:hover i.fa-sign-out {
    color: #c82333;
}

/* Responsive para user menu */
@media (max-width: 767px) {
    .user-menu-dropdown {
        right: -10px;
        min-width: 220px;
    }
}

/* Navegación Principal */
.main-nav {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
    background-color: var(--color-bg);
    padding: 10px 0;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    position: static;
    transition: padding 0.3s ease;
}

/* Ajustar padding del nav cuando el header tiene scroll */
.header-main.scrolled .main-nav {
    padding: 8px 0;
}

.navbar-collapse {
    padding: 0;
    display: flex !important;
    justify-content: center;
    text-align: center;
    position: static;
}

.nav-menu,
.nav-menu.navbar-nav,
.main-nav .navbar-nav {
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    list-style: none;
    float: none !important;
    text-align: center;
    position: static;
}

.nav-menu > li {
    margin: 0 8px;
    position: static;
}

.nav-menu > li:not(.dropdown) {
    position: relative;
}

/* Botón hamburguesa móvil */
.navbar-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 10px;
    background-color: transparent;
    border: 2px solid var(--color-text);
    border-radius: 4px;
    padding: 9px 10px;
    margin: 0;
    z-index: 1001;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--color-text);
    margin: 4px 0;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: var(--color-bg);
    outline: none;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-text);
}

.nav-menu a.active {
    color: var(--color-text);
    border-bottom: 3px solid var(--color-primary);
}

.nav-menu a.active.dropdown-toggle {
    border-bottom: none;
}

/* Estilo especial para BICICLETAS cuando está activo - usando el mismo estilo que otros items */
.nav-link-bicicletas.active {
    color: var(--color-text);
    border-bottom: 3px solid var(--color-primary);
}

.nav-link-bicicletas.active.dropdown-toggle {
    border-bottom: 3px solid var(--color-primary);
}

/* Bootstrap dropdown override para mega menus */
.dropdown-toggle .caret {
    margin-left: 5px;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Dropdown normal (no mega menu) */
.dropdown-menu:not(.mega-menu) {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    min-width: 280px;
    max-width: 350px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.dropdown:hover > .dropdown-menu:not(.mega-menu) {
    display: block;
}

.dropdown-menu > li {
    margin: 0;
    padding: 0;
}

.dropdown-menu > li > a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Excluir los mega menus de las reglas de overflow */
.dropdown-menu.mega-menu > li > a,
.mega-menu .mega-menu-list li a,
.mega-menu-list li a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.5 !important;
}

.dropdown-menu > li:last-child > a {
    border-bottom: none;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding-left: 25px;
}

/* Scrollbar personalizado para dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

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

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #e6c800;
}

/* Menú EQUIPO - Submenús de dos niveles */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu > .submenu-header {
    font-weight: 600;
    color: var(--color-secondary);
    background-color: #f8f8f8;
    cursor: pointer;
    position: relative;
}

.dropdown-submenu > .submenu-header:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.dropdown-submenu .caret-right {
    float: right;
    margin-top: 2px;
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1;
}

.dropdown-submenu > .dropdown-menu,
.dropdown-submenu > .submenu-dropdown {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 2px !important;
    min-width: 250px;
    display: none !important;
    z-index: 1001 !important;
    background-color: var(--color-white) !important;
    list-style: none;
    padding: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Mostrar submenú cuando se hace hover sobre el item padre - FORZAR con !important */
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:hover > .submenu-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mantener visible cuando el mouse está sobre el submenú */
.dropdown-submenu > .dropdown-menu:hover,
.dropdown-submenu > .submenu-dropdown:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Asegurar que el submenú se muestre cuando el mouse está sobre el header */
.dropdown-submenu > .submenu-header:hover ~ .dropdown-menu,
.dropdown-submenu > .submenu-header:hover ~ .submenu-dropdown,
.dropdown-submenu:hover .dropdown-menu,
.dropdown-submenu:hover .submenu-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

/* Ajustes para el menú EQUIPO */
.dropdown-menu-equipo {
    min-width: 300px;
    overflow: visible !important; /* Permitir que los submenús se muestren fuera del contenedor */
}

.dropdown-menu-equipo .dropdown-submenu > .dropdown-menu,
.dropdown-menu-equipo .dropdown-submenu > .submenu-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   MEGA MENU - Versión Simple con CSS Puro
   ============================================ */

/* Mega Menu - Oculto por defecto */
.mega-menu {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}

/* Mostrar con hover CSS puro */
.dropdown:hover > .mega-menu {
    display: block;
}

/* Contenedor interno */
.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    background: #fff;
}

/* Columnas del mega menu */
.mega-menu-left {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Cada columna/sección */
.mega-menu-section {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

/* Título de sección */
.mega-menu-section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
}

.mega-menu-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de enlaces */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin: 0;
}

.mega-menu-list li a {
    display: block;
    padding: 8px 0;
    color: #555;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
}

.mega-menu-list li a:hover {
    color: #000;
}

/* Ocultar panel derecho */
.mega-menu-right {
    display: none;
}

/* Hero Section */
.hero-section {
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-banner .hero-carousel.carousel,
.hero-banner .hero-carousel .carousel-inner,
.hero-banner .hero-carousel .item {
    height: 100%;
}
.hero-banner .hero-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-banner .hero-carousel .item a {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-banner .hero-carousel .item a img {
    display: block;
}

.hero-section-home .hero-banner,
.hero-section-home .hero-carousel.carousel,
.hero-section-home .hero-carousel .carousel-inner,
.hero-section-home .hero-carousel .item {
    height: clamp(300px, 40vw, 500px);
}

.hero-section-home .hero-carousel .item img,
.hero-section-home .hero-image {
    height: 100%;
    object-fit: cover;
}

.hero-banner .hero-carousel .carousel-control {
    z-index: 3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    pointer-events: auto;
}

.hero-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateY(102px);
}

.hero-line {
    color: var(--color-primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    transform: translateY(126px);
}

@media (max-width: 768px) {
    .hero-section-home .hero-banner,
    .hero-section-home .hero-carousel.carousel,
    .hero-section-home .hero-carousel .carousel-inner,
    .hero-section-home .hero-carousel .item {
        height: 340px;
    }

    .hero-section-home .hero-overlay {
        align-items: stretch;
    }

    .hero-section-home .hero-content {
        position: relative;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .hero-section-home .hero-title {
        display: none;
    }

    .hero-section-home .hero-buttons {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 24px;
        z-index: 4;
        gap: 14px;
        padding: 0 36px;
        transform: none;
        pointer-events: auto;
    }

    .hero-section-home .hero-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #8B4513;
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: #654321;
}

.btn-secondary:hover {
    background-color: #ffcc00;
}

.btn-add-cart {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    flex-shrink: 0; /* No se encoge en contenedores flex */
}

.btn-add-cart:hover:not(:disabled) {
    background-color: #ffcc00;
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sponsored Section */
.sponsored-section {
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}

.sponsored-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.sponsored-content {
    margin: 0;
}

@media (min-width: 992px) {
    .sponsored-content {
        display: flex;
        align-items: stretch;
    }
}

.sponsored-content .row {
    margin-left: 0;
    margin-right: 0;
}

.sponsored-content [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.sponsored-image {
    position: relative;
    padding: 0;
    overflow: hidden;
    height: clamp(380px, 35vw, 500px);
    min-height: 0;
}

.sponsored-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
}

.sponsored-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.sponsored-title-overlay .section-title {
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 32px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sponsored-content .sponsored-info {
    background-color: #333333;
    padding: 70px 72px;
    display: flex;
    align-items: center;
    height: clamp(380px, 35vw, 500px);
    min-height: 0;
}

.sponsored-text-content {
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    width: 100%;
    max-width: 620px;
}

.sponsored-text-content .placeholder-text {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: 16px;
}

.sponsored-news-header {
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: 28px;
    padding-bottom: 18px;
}

.sponsored-news-kicker {
    color: var(--color-primary);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.sponsored-news-header h3 {
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.08;
    margin: 0;
    text-transform: uppercase;
}

.sponsored-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sponsored-news-item {
    color: var(--color-white);
    display: flex;
    gap: 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding-bottom: 18px;
}

.sponsored-news-item:hover,
.sponsored-news-item:focus {
    color: var(--color-white);
    text-decoration: none;
}

.sponsored-news-item-main {
    padding-top: 2px;
}

.sponsored-news-thumb {
    background: #222;
    flex: 0 0 104px;
    height: 78px;
    overflow: hidden;
}

.sponsored-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsored-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sponsored-news-body strong {
    color: var(--color-white);
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 8px;
}

.sponsored-news-body span {
    color: rgba(255,255,255,0.74);
    display: block;
    font-size: 14px;
    line-height: 1.55;
}

.sponsored-news-more {
    color: var(--color-primary);
    display: inline-block;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .08em;
    margin-top: 22px;
    text-transform: uppercase;
}

.sponsored-news-more:hover,
.sponsored-news-more:focus {
    color: #ffcc00;
    text-decoration: none;
}

/* Content Grid - Noticias/Eventos (diseño: imagen izquierda, texto derecha; fondo #F0F3F5) */
.content-grid-section {
    padding: 40px 0 50px;
    background-color: #F0F3F5;
}

.content-grid-section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.content-grid-row {
    margin-left: -7.5px;
    margin-right: -7.5px;
    display: flex;
    flex-wrap: wrap;
}

.content-grid-col {
    padding-left: 7.5px;
    padding-right: 7.5px;
    margin-bottom: 24px;
    display: flex;
}

/* Tarjeta: imagen a la izquierda, contenido a la derecha (como en el diseño) */
.content-card {
    background-color: #F0F3F5;
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    border: none;
    box-shadow: none;
    margin: 0;
    min-height: 200px;
}

/* Thumbnail a la izquierda (cuadrado / ligeramente horizontal) */
.card-image {
    flex: 0 0 42%;
    max-width: 42%;
    height: 220px;
    overflow: hidden;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop/tablet: imagen desktop; móvil: imagen responsiva (controlado en @media) */
.card-image .noticia-img-desktop {
    display: block;
}
.card-image .noticia-img-mobile {
    display: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.card-image:hover img {
    filter: grayscale(70%);
}

/* Texto a la derecha: título (Lato Bold), descripción (Lato Regular), Leer más (Lato Black Italic #FFDD00) */
.card-content {
    flex: 1;
    padding: 20px 24px 24px 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    margin-bottom: 14px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 14px;
    color: #FFDD00;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.card-link:hover {
    color: #e6c700;
    text-decoration: underline;
}

/* Responsive: móvil = imagen arriba, texto abajo; imagen responsiva */
@media (max-width: 768px) {
    .content-grid-section .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .content-grid-row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .content-grid-col {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 22px;
    }
    
    .content-card {
        flex-direction: column;
        min-height: 0;
    }
    
    .card-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        height: 200px;
    }
    
    .card-image .noticia-img-desktop {
        display: none;
    }
    .card-image .noticia-img-mobile {
        display: block;
    }
    
    .card-content {
        padding: 18px 16px 20px;
    }
    
    .card-title {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }
    
    .card-description {
        font-size: 14px;
    }
}

/* Footer */
.footer-main {
    background-color: var(--color-secondary);
    background-image: url('../images/elementos/Footer desktop.jpg');
    background-size: cover;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
}

.footer-content {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.footer-logo-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
}

.footer-columns {
    /* Grid ahora manejado por Bootstrap */
}

.footer-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link img {
    width: 30px;
    height: 30px;
}

.footer-divider {
    display: none; /* Oculto porque la imagen de fondo ya incluye la línea amarilla */
}

.footer-copyright {
    text-align: center;
    font-size: 18px;
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    position: relative;
    z-index: 1;
    padding-top: 30px;
    margin-top: 20px;
}

/* Contacto */
.contact-page {
    padding: 56px 0 20px;
    background: #f7f7f7;
}

.contact-page__header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.contact-page__header h1 {
    margin: 0 0 10px;
    color: var(--color-secondary);
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    font-weight: 900;
}

.contact-page__header p {
    margin: 0;
    color: #555;
    font-size: 17px;
    line-height: 1.55;
}

.contact-page__info,
.contact-page__form-wrap {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    min-height: 100%;
}

.contact-page__info h2 {
    margin: 0 0 12px;
    color: var(--color-secondary);
    font-size: 22px;
    font-weight: 900;
}

.contact-page__info p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.contact-page__social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.contact-page__social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
}

.contact-page__social a:hover {
    color: var(--color-primary);
}

.contact-page__social img {
    width: 28px;
    height: 28px;
}

.contact-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.contact-alert--success {
    background: #e9f8ef;
    border: 1px solid #b7e3c8;
    color: #176135;
}

.contact-alert--error {
    background: #fff0f0;
    border: 1px solid #f1b7b7;
    color: #9d2828;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form__field {
    margin-bottom: 16px;
}

.contact-form__field label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #ffffff;
    color: #1f1f1f;
    padding: 10px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.24);
}

.contact-form__field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form__captcha {
    margin: 4px 0 18px;
    min-height: 78px;
    overflow: hidden;
}

.contact-form__button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--color-primary);
    color: #1f1f1f;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form__button:hover,
.contact-form__button:focus {
    background: #ffe45c;
    transform: translateY(-1px);
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */

.legal-page {
    padding: 60px 20px;
    min-height: 70vh;
}

.legal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-warning {
    background-color: #ff0000;
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-content h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: var(--color-text);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 15px;
}

.legal-content h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--color-text);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-text li {
    margin-bottom: 10px;
}

.legal-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Tiendas */
.stores-page {
    background: #f7f7f7;
}

.stores-content h1 {
    margin-bottom: 22px;
}

.stores-intro {
    max-width: 720px;
    margin-bottom: 28px;
}

.stores-list {
    display: grid;
    gap: 22px;
}

.store-panel {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.store-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    background: #f8f8f8;
    border-left: 5px solid var(--color-primary);
    border-bottom: 1px solid #e7e7e7;
}

.store-panel__label {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.store-panel__heading h2 {
    margin: 0;
    color: var(--color-text);
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
}

.store-panel__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 2px solid var(--color-text);
    border-radius: 6px;
    color: var(--color-text);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.store-button--whatsapp {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.store-button:hover,
.store-button:focus {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.store-panel__body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    padding: 24px;
}

.store-info-block h3,
.store-hours-block h3 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.store-info-block h3:not(:first-child) {
    margin-top: 24px;
}

.store-info-block p {
    margin: 0 0 12px;
    color: #555;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.store-info-block a {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.store-info-block a:hover,
.store-info-block a:focus {
    color: var(--color-secondary);
}

.store-hours {
    margin: 0;
}

.store-hours__row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eeeeee;
}

.store-hours__row:last-child {
    border-bottom: 0;
}

.store-hours dt,
.store-hours dd {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.store-hours dt {
    color: var(--color-text);
    font-weight: 900;
}

.store-hours dd {
    color: #555;
}

.cookie-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice--hidden {
    opacity: 0;
    transform: translateY(10px);
}

.cookie-notice p {
    margin: 0;
    color: var(--color-text);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-notice a {
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: underline;
}

.cookie-notice__button {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 10px 16px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
    background-color: #f2d200;
    border-color: #f2d200;
    outline: none;
    transform: translateY(-1px);
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 15px;
    }
    
    .legal-content {
        padding: 25px;
    }
    
    .content-warning {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .legal-content h1 {
        font-size: 24px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-content h3 {
        font-size: 16px;
    }
    
    .legal-text {
        font-size: 14px;
    }

    .stores-content {
        padding: 25px;
    }

    .stores-intro {
        margin-bottom: 22px;
    }

    .store-panel__heading {
        display: block;
        padding: 20px;
    }

    .store-panel__heading h2 {
        margin-bottom: 14px;
        font-size: 21px;
    }

    .store-panel__actions {
        width: 100%;
    }

    .store-button {
        flex: 1 1 0;
    }

    .store-panel__body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .store-hours__row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .cookie-notice__button {
        width: 100%;
    }
}

/* Productos */
.productos-page {
    padding: 40px 20px;
}

.catalogo-layout {
    /* Layout ahora manejado por Bootstrap grid */
}

/* ============================================
   FILTROS SIDEBAR - Diseño Profesional
   ============================================ */
.filtros-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 0;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header de filtros */
.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    margin-bottom: 0;
    position: relative;
}

.filtros-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--color-primary);
}

.filtros-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 16px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtros-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

.filtros-clear-all {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtros-clear-all:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    transform: translateY(-1px);
}

/* Grupo de filtro colapsable */
.filtro-group {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.filtro-group:last-child {
    border-bottom: none;
}

.filtro-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.filtro-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--color-primary);
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

.filtro-toggle:hover {
    background: rgba(255, 221, 0, 0.08);
}

.filtro-toggle:hover::before {
    width: 4px;
}

.filtro-toggle[aria-expanded="false"] + .filtro-content {
    display: none !important;
}

.filtro-toggle[aria-expanded="false"] .filtro-icon {
    transform: rotate(0deg);
}

.filtro-toggle[aria-expanded="true"] .filtro-icon {
    transform: rotate(180deg);
}

.filtro-toggle[aria-expanded="true"]::before {
    width: 4px;
}

.filtro-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: color 0.3s ease;
}

.filtro-toggle:hover .filtro-label {
    color: #000;
}

.filtro-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 700;
}

.filtro-icon::before {
    content: '▼';
    font-size: 10px;
}

.filtro-toggle:hover .filtro-icon {
    background: var(--color-primary);
    color: #000;
    transform: scale(1.1);
}

.filtro-content {
    padding: 0 24px 20px;
    overflow: hidden;
}

.filtro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filtro-list li {
    margin-bottom: 2px;
}

.filtro-list a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 8px;
    background: transparent;
}

.filtro-list a:hover {
    background: rgba(255, 221, 0, 0.12);
    color: #000;
    transform: translateX(4px);
}

.filtro-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: #fff;
}

.filtro-list a:hover .filtro-checkbox {
    border-color: var(--color-primary);
}

.filtro-list a.active .filtro-checkbox {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.4);
}

.filtro-list a.active .filtro-checkbox::after {
    content: '✓';
    color: #000;
    font-size: 12px;
    font-weight: 900;
}

.filtro-list a.active {
    background: rgba(255, 221, 0, 0.15);
    color: #000;
    font-weight: 600;
}

.filtro-text {
    flex: 1;
    line-height: 1.3;
}

.filtro-count {
    color: #999;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.filtro-list a:hover .filtro-count {
    background: rgba(255, 221, 0, 0.3);
    color: #000;
}

.filtro-list a.active .filtro-count {
    background: var(--color-primary);
    color: #000;
}

/* Filtros activos badges */
.filtros-activos {
    padding: 16px 24px;
    background: rgba(255, 221, 0, 0.1);
    border-bottom: 1px solid rgba(255, 221, 0, 0.3);
}

.filtros-activos-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.filtro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-primary);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin: 4px 4px 4px 0;
    transition: all 0.25s ease;
}

.filtro-badge:hover {
    background: var(--color-secondary);
    color: #fff;
}

.filtro-badge-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-badge:hover .filtro-badge-remove {
    background: rgba(255, 255, 255, 0.3);
}

.productos-grid {
    /* Grid con flexbox para alineación perfecta */
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Todas las columnas tienen la misma altura */
}

.productos-grid::after {
    display: none; /* No necesitamos clearfix si usamos flexbox */
}

.productos-grid > div {
    margin-bottom: 30px;
    display: flex;
    flex-basis: auto; /* Mantener el ancho definido por las clases Bootstrap */
    flex-grow: 0;
    flex-shrink: 0;
}

.producto-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.producto-imagen {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.producto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.producto-badge.disponible {
    background-color: #28a745;
    color: white;
}

.producto-badge.agotado {
    background-color: #dc3545;
    color: white;
}

.producto-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}


.producto-marca {
    color: var(--color-text-light);
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
    flex-grow: 0;
    flex-shrink: 0;
}

.producto-nombre {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    flex-grow: 0;
    flex-shrink: 0;
    line-height: 1.4;
    height: 67.2px; /* Altura fija para exactamente 3 líneas (16px * 1.4 * 3) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.producto-nombre a {
    color: var(--color-text);
    text-decoration: none;
    display: block;
}

.producto-nombre a:hover {
    color: var(--color-primary);
}

.producto-atributos {
    margin-bottom: 10px;
    flex-grow: 0;
    flex-shrink: 0;
    min-height: 24px; /* Altura mínima incluso si no hay atributos (se oculta con display: none si está vacío) */
}

.atributo-tag {
    display: inline-block;
    background-color: var(--color-bg);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.producto-precio {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 0;
    flex-grow: 0;
    flex-shrink: 0;
    min-height: 28px; /* Altura mínima consistente para el precio */
}

.producto-info .btn-add-cart {
    margin-top: auto; /* Empuja el botón hacia abajo */
    margin-bottom: 0;
    flex-shrink: 0;
    order: 999; /* Asegura que el botón esté al final */
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 30px 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    clear: both;
}

.paginacion-btn {
    padding: 12px 18px;
    background-color: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
    transition: all 0.3s;
    display: inline-block;
}

.paginacion-nav {
    min-width: 92px;
}

.paginacion-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.3);
}

.paginacion-activa {
    padding: 12px 18px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
    display: inline-block;
}

.paginacion-ellipsis {
    color: #777;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1;
    min-width: 24px;
    padding: 12px 4px;
    text-align: center;
}

/* Producto Detalle - Hero Section */
.producto-hero-section {
    width: 100%;
    margin-bottom: 0;
    position: relative;
}

.producto-hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.producto-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

/* Título y breadcrumbs debajo del hero */
.producto-titulo-breadcrumb-wrap {
    padding: 20px 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto-breadcrumb {
    margin-bottom: 12px;
}

.producto-breadcrumb .breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.producto-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.producto-breadcrumb .breadcrumb-item a {
    color: #0066b3;
    text-decoration: none;
}

.producto-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.producto-breadcrumb .breadcrumb-current {
    color: #333;
    font-weight: 600;
}

.producto-breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: #999;
    user-select: none;
}

.producto-titulo-below-hero {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .producto-titulo-breadcrumb-wrap {
        padding: 16px 15px 20px;
    }
    .producto-breadcrumb .breadcrumb-list {
        font-size: 13px;
    }
    .producto-titulo-below-hero {
        font-size: 24px;
    }
}

/* Producto Detalle - Contenido Principal */
.producto-detalle-page {
    padding: 40px 20px;
}

.producto-detalle-main {
    margin-bottom: 60px;
}

/* Columna de Imágenes */
.producto-imagenes-col {
    padding-right: 30px;
}

.producto-imagen-principal {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.producto-imagen-principal img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.zoom-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    background-color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Galería de Thumbnails */
.producto-galeria-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-item {
    flex: 0 0 calc(20% - 8px);
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--color-primary);
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Derecho */
.producto-sidebar-col {
    padding-left: 30px;
}

.producto-sidebar {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

/* ============================================
   SIDEBAR PRODUCTO - Estilo Sutil y Elegante
   ============================================ */

.producto-sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Secciones del sidebar */
.sidebar-section {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 22px;
    position: relative;
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.sidebar-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 2px;
}

.sidebar-title::after {
    content: none;
}

/* ============================================
   SELECTOR DE MODELOS - Estilo Trek
   ============================================ */

.modelo-section {
    padding: 0 !important;
    border-bottom: none !important;
}

.modelo-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modelo-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.modelo-selector-trek {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
}

.modelo-selector-trek::-webkit-scrollbar {
    width: 4px;
}

.modelo-selector-trek::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.modelo-selector-trek::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.modelo-selector-trek::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.modelo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.15s ease;
    cursor: pointer;
}

.modelo-item:last-child {
    border-bottom: none;
}

.modelo-item:hover {
    background-color: #f5f5f5;
}

.modelo-item.active {
    background-color: #e0f4f7;
}

.modelo-nombre {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    flex: 1;
    padding-right: 15px;
    line-height: 1.3;
}

.modelo-item.active .modelo-nombre {
    font-weight: 600;
}

.modelo-precio {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
}

/* Selector de Color - Estilo mejorado */
.color-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-selected {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text);
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    display: inline-block;
}

.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-swatch.active {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px var(--color-primary), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Swatches muy claros: borde visible sobre fondo blanco */
.color-swatch--light {
    border-color: #bbb;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
/* Swatches multi-color (conic-gradient): borde siempre visible */
.color-swatch--multi {
    border-color: #aaa;
}

/* Selector de Talla - Estilo mejorado */
.talla-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.talla-btn {
    padding: 12px 18px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-light);
    min-width: 55px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.talla-btn:hover {
    border-color: var(--color-primary);
    background-color: #fffef8;
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.talla-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #e6c200 100%);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Descripción del Modelo - Estilo mejorado */
.modelo-descripcion {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-light);
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.modelo-descripcion p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.modelo-descripcion p:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.modelo-descripcion strong {
    font-weight: 600;
    color: var(--color-text);
}

.modelo-descripcion .precio-valor {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}

/* Botones de Acción - Estilo profesional */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 0 0 12px 12px;
}

.btn-add-cart-detalle {
    width: 100%;
    padding: 16px 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e6c200 100%);
    border: none;
    color: var(--color-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-add-cart-detalle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-add-cart-detalle:disabled {
    background: #666;
    box-shadow: none;
    cursor: not-allowed;
}

.sidebar-actions .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sidebar-actions .btn-secondary:hover {
    background: #fff;
    color: var(--color-secondary);
}

/* ============================================
   SECCIÓN OTROS MODELOS - Estilo Profesional
   ============================================ */
.otros-modelos-section {
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
}

.otros-modelos-section .section-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-text);
    position: relative;
    padding-left: 20px;
    letter-spacing: 1px;
}

.otros-modelos-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.otros-modelos-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px 20px;
    margin: 0 -20px;
}

.otros-modelos-scroll::-webkit-scrollbar {
    height: 6px;
}

.otros-modelos-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}

.otros-modelos-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.otros-modelos-container {
    display: flex;
    gap: 24px;
    min-width: min-content;
    padding: 10px 0;
}

.modelo-card {
    flex: 0 0 300px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.modelo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.modelo-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.modelo-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.modelo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.modelo-card:hover .modelo-card-image img {
    transform: scale(1.08);
}

.modelo-card-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modelo-card-color {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--color-text-light);
}

.color-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e6c200 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modelo-card-descripcion {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modelo-card-precio {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.modelo-card-specs {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex: 1;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.modelo-card-specs p {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.modelo-card-specs p:last-child {
    margin-bottom: 0;
}

.modelo-card-specs strong {
    color: var(--color-text);
}

.btn-select-modelo {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-select-modelo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-select-modelo:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, #e6c200 100%);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-select-modelo:hover::before {
    left: 100%;
}

/* Barra Inferior de Navegación */
.producto-bottom-nav {
    background-color: #333333;
    padding: 20px 0;
    margin-top: 60px;
}

.bottom-nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.modelo-selector-dropdown {
    flex: 0 0 200px;
}

.modelo-selector-dropdown select {
    width: 100%;
    padding: 10px;
    background-color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.bottom-nav-tabs {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
}

.nav-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-tab.active {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 700;
    border-bottom-color: var(--color-primary);
}

.tab-content-container {
    background-color: var(--color-white);
    padding: 40px;
    min-height: 250px;
    border-radius: 0 0 8px 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Estilos generales para contenido de tabs */
.tab-content h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.tab-content h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    margin: 20px 0 10px;
}

.tab-content p {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* TAB: COMPRA AHORA */
.tab-compra-content .compra-resumen h3 {
    font-size: 22px;
    border-bottom: none;
    margin-bottom: 15px;
}

.tab-compra-content .compra-precio {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 10px;
}

.tab-compra-content .compra-disponibilidad {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.tab-compra-content .compra-disponibilidad.en-stock {
    background-color: #d4edda;
    color: #155724;
}

.tab-compra-content .compra-disponibilidad.sin-stock {
    background-color: #f8d7da;
    color: #721c24;
}

/* TAB: DESCRIPCIÓN */
.tab-descripcion-content .producto-keywords {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.tab-descripcion-content .producto-keywords ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.tab-descripcion-content .producto-keywords li {
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

.tab-descripcion-content .producto-keywords li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: 8px;
    font-weight: bold;
}

/* TAB: CARACTERÍSTICAS */
.caracteristicas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.caracteristicas-lista li {
    padding: 15px 20px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 15px;
    border-left: 3px solid var(--color-primary);
}

.caracteristicas-lista li strong {
    color: var(--color-text);
}

/* TAB: ESPECIFICACIONES */
.especificaciones-tabla {
    width: 100%;
    border-collapse: collapse;
}

.especificaciones-tabla tr {
    border-bottom: 1px solid #e8e8e8;
}

.especificaciones-tabla tr:last-child {
    border-bottom: none;
}

.especificaciones-tabla th,
.especificaciones-tabla td {
    padding: 15px 20px;
    text-align: left;
    font-size: 15px;
}

.especificaciones-tabla th {
    width: 40%;
    font-weight: 600;
    color: var(--color-text);
    background: #f8f9fa;
}

.especificaciones-tabla td {
    color: #555;
}

.especificaciones-tabla tr:nth-child(even) th {
    background: #f0f0f0;
}

/* TAB: MEDIDAS */
.medida-principal {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.medida-valor {
    display: inline-block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    padding: 15px 40px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    margin-top: 10px;
}

.medidas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.medida-item {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.medida-item:hover {
    border-color: var(--color-primary);
    background: #fffef8;
}

.medida-item.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 700;
}

/* TAB: SERVICIO */
.servicio-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.servicio-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.servicio-item p {
    margin-bottom: 0;
}

/* TAB: REVISIONES */
.revision-resumen {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.revision-promedio .estrellas {
    font-size: 32px;
    color: var(--color-primary);
    display: block;
}

.revision-promedio .calificacion {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
    display: block;
    margin: 10px 0;
}

.revision-promedio .total-reviews {
    font-size: 14px;
    color: #888;
}

.revision-vacia {
    text-align: center;
    padding: 40px;
    color: #888;
}

.revision-vacia p {
    color: #888;
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* ============================================
   PRODUCTO DETALLE - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .producto-hero-image {
        height: 280px;
        min-height: 280px;
    }
    .producto-hero-image img {
        min-height: 280px;
    }
    .producto-detalle-page {
        padding: 20px 12px;
    }
    .producto-detalle-main {
        margin-bottom: 40px;
    }
    .producto-imagenes-col {
        padding-right: 0;
        margin-bottom: 24px;
    }
    .producto-imagen-principal {
        padding: 12px;
        margin-bottom: 16px;
    }
    .producto-sidebar-col {
        padding-left: 0;
    }
    .producto-sidebar {
        position: static;
        top: auto;
        padding: 20px 16px;
    }
    .sidebar-section {
        padding: 16px 18px;
    }
    .sidebar-actions .btn-primary,
    .sidebar-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .sidebar-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    /* Barra inferior: apilar y tabs con scroll */
    .producto-bottom-nav {
        margin-top: 40px;
        padding: 16px 12px;
    }
    .bottom-nav-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 16px;
    }
    .modelo-selector-dropdown {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .bottom-nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin: 0 -4px;
        gap: 4px;
    }
    .bottom-nav-tabs::-webkit-scrollbar {
        height: 4px;
    }
    .nav-tab {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
    .tab-content-container {
        padding: 24px 16px;
        min-height: 200px;
    }
    .tab-content h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .tab-compra-content .compra-precio {
        font-size: 22px;
    }
    /* Otros modelos: cards más estrechas en móvil */
    .otros-modelos-section {
        margin: 40px 0;
        padding: 24px 0;
    }
    .otros-modelos-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-left: 16px;
    }
    .otros-modelos-scroll {
        padding: 8px 12px 16px;
        margin: 0 -12px;
    }
    .modelo-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    .modelo-card-image {
        height: 160px;
    }
    .modelo-card-info {
        padding: 16px;
    }
    .modelo-card-descripcion {
        font-size: 14px;
    }
    .modelo-card-precio {
        font-size: 16px;
    }
    /* Thumbnails en tablet */
    .producto-detalle-page .producto-galeria-thumbnails .thumbnail-item {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }
}

@media (max-width: 480px) {
    .producto-hero-image {
        height: 220px;
        min-height: 220px;
    }
    .producto-hero-image img {
        min-height: 220px;
    }
    .producto-titulo-below-hero {
        font-size: 20px;
    }
    .producto-detalle-page {
        padding: 16px 10px;
    }
    /* Thumbnails: tamaño fijo pequeño para que quepan varios por fila */
    .producto-galeria-thumbnails {
        gap: 8px;
        margin-top: 12px;
    }
    .producto-galeria-thumbnails .thumbnail-item {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }
    .producto-sidebar {
        padding: 16px 12px;
    }
    .modelo-selector-trek {
        max-height: 240px;
    }
    .nav-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
    .tab-content-container {
        padding: 20px 12px;
    }
    .otros-modelos-section .section-title {
        font-size: 18px;
    }
    .modelo-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    .modelo-card-image {
        height: 140px;
    }
    .especificaciones-tabla th,
    .especificaciones-tabla td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Sobrescribir thumbnails en detalle: en escritorio mantener proporción, en móvil ya definido arriba */
@media (min-width: 769px) {
    .producto-detalle-page .producto-galeria-thumbnails .thumbnail-item {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
    }
}

/* Responsive - Bootstrap maneja la mayoría, solo ajustes específicos */
@media (max-width: 768px) {
    .header-top {
        margin-bottom: 5px;
        position: relative;
        min-height: 100px;
    }
    
    .logo-container {
        margin-bottom: 10px;
        padding-right: 60px; /* Espacio para el botón hamburguesa */
    }
    
    .logo {
        height: 90px;
    }
    
    .main-nav .header-actions {
        display: none;
    }
    
    .header-top .header-actions {
        display: flex;
        position: static;
        justify-content: center;
        align-items: center;
        margin-top: 12px;
        width: 100%;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-top .search-form {
        flex: 1;
        min-width: 0;
        max-width: 180px;
        padding: 6px 12px;
    }
    
    .header-top .search-input {
        width: 100%;
        max-width: 100%;
        font-size: 13px;
    }
    
    .header-top .cart-link,
    .header-top .user-avatar-link {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 50%;
    }
    
    .header-top .cart-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-top .user-avatar-icon {
        font-size: 20px;
    }
    
    .header-top .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-collapse {
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
        padding-top: 10px;
        background-color: var(--color-bg);
        border-radius: 4px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-collapse.collapse {
        display: none !important;
    }
    
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    
    .nav-menu,
    .nav-menu.navbar-nav {
        flex-direction: column;
        width: 100%;
        float: none !important;
        justify-content: flex-start !important;
        padding-right: 0 !important; /* Sin padding en móvil */
    }
    
    .nav-menu > li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 12px 15px;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: var(--color-bg);
        border: none;
        box-shadow: none;
        max-height: none;
    }
    
    /* Ajustes para mega menu en móvil */
    .mega-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background-color: var(--color-bg) !important;
    }
    
    .mega-menu-container {
        padding: 20px 15px;
    }
    
    .mega-menu-left {
        flex-direction: column;
        gap: 25px;
    }
    
    .mega-menu-section {
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8;
        padding-right: 0 !important;
        padding-bottom: 20px;
    }
    
    .mega-menu-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .mega-menu-right {
        width: 100%;
        min-width: 100%;
        padding: 20px 15px;
        background-color: #2c2c2c;
    }
    
    .mega-menu-section {
        width: 100%;
    }
    
    .mega-menu-section::before {
        width: 3px;
    }
    
    .mega-menu-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .mega-menu-list li a {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .mega-menu-promo-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .mega-menu-promo-link {
        font-size: 12px;
    }
    
    .dropdown-menu > li > a {
        padding-left: 30px;
        font-size: 13px;
    }
    
    .dropdown-toggle .caret {
        float: right;
        margin-top: 6px;
    }
    
    .search-input {
        width: 100%;
        max-width: 200px;
    }
    
    .search-form {
        padding: 6px 12px;
        width: 100%;
        max-width: 250px;
    }
    
    .filtros-sidebar {
        position: static;
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }
    
    .filtros-header {
        padding: 16px 18px;
    }
    
    .filtros-header::after {
        left: 18px;
        right: 18px;
    }
    
    .filtros-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .filtros-title::before {
        width: 3px;
        height: 16px;
    }
    
    .filtros-clear-all {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .filtro-toggle {
        padding: 14px 18px;
    }
    
    .filtro-label {
        font-size: 12px;
    }
    
    .filtro-icon {
        width: 24px;
        height: 24px;
    }
    
    .filtro-icon::before {
        font-size: 8px;
    }
    
    .filtro-content {
        padding: 0 18px 16px;
    }
    
    .filtro-list a {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    .filtro-checkbox {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        border-radius: 3px;
    }
    
    .filtro-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .paginacion {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 20px 15px;
        gap: 6px;
    }
    
    .paginacion-btn,
    .paginacion-activa {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .producto-info-detalle {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .producto-imagen-grande {
        margin-bottom: 20px;
    }
    
    .sponsored-image {
        height: auto;
        min-height: 300px;
    }
    
    .sponsored-image img {
        height: auto;
        min-height: 300px;
    }
    
    .sponsored-content .sponsored-info {
        height: auto;
        padding: 42px 24px;
        min-height: auto;
    }

    .sponsored-news-header {
        margin-bottom: 22px;
        padding-bottom: 14px;
    }

    .sponsored-news-header h3 {
        font-size: 26px;
    }

    .sponsored-news-body strong {
        font-size: 17px;
    }

    .sponsored-news-body span {
        font-size: 13px;
    }
    
    .sponsored-title-overlay {
        padding: 20px;
    }
    
    .sponsored-title-overlay .section-title {
        font-size: 24px;
    }
    
    .footer-main {
        background-image: url('../images/elementos/Footer movil.jpg');
    }
    
    .footer-content {
        margin-bottom: 50px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .social-links {
        margin-top: 15px;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
    }

    .footer-copyright {
        padding-top: 35px;
        margin-top: 25px;
    }

    .contact-page {
        padding-top: 36px;
    }

    .contact-page__header {
        text-align: left;
        margin-bottom: 24px;
    }

    .contact-page__header h1 {
        font-size: 30px;
    }

    .contact-page__info {
        margin-bottom: 18px;
    }

    .contact-page__info,
    .contact-page__form-wrap {
        padding: 22px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

}

@media (max-width: 480px) {
    .logo {
        height: 70px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .header-top .header-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .header-top .search-form {
        flex: 1;
        min-width: 0;
        max-width: 140px;
        padding: 6px 10px;
    }
    
    .header-top .search-input {
        width: 100%;
        font-size: 12px;
    }
    
    .header-top .cart-link,
    .header-top .user-avatar-link {
        width: 36px;
        height: 36px;
    }
    
    .header-top .cart-icon {
        width: 18px;
        height: 18px;
    }
    
    .header-top .user-avatar-icon {
        font-size: 18px;
    }
    
    .header-top .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .search-form {
        width: auto;
        max-width: 140px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .paginacion {
        margin-top: 25px;
        margin-bottom: 25px;
        padding: 15px 10px;
        gap: 5px;
    }
    
    .paginacion-btn,
    .paginacion-activa {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 36px;
    }
    
    .paginacion-nav {
        min-width: 74px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .paginacion-ellipsis {
        min-width: 18px;
        padding: 8px 2px;
    }
    
    .footer-content {
        margin-bottom: 55px;
    }
    
    .social-links {
        margin-top: 20px;
        margin-bottom: 25px;
        position: relative;
        z-index: 2;
    }
}

/* ============================================
   ESTILOS DEL CARRITO DE COMPRAS
   ============================================ */

.carrito-page {
    padding: 40px 0;
}

.carrito-table tbody tr:hover {
    background-color: #f9f9f9;
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
}

.carrito-vacio p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Item del Carrito */
.carrito-item {
    padding: 15px 8px;
}

.producto-info-carrito {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.producto-imagen-carrito {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.producto-imagen-carrito img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-details-carrito {
    flex: 1;
}

.producto-nombre-carrito {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.producto-codigo-carrito,
.producto-medida-carrito,
.producto-color-carrito {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 3px;
}

.precio-unitario-carrito {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

/* Control de Cantidad */
.cantidad-control-carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cantidad-carrito {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.btn-cantidad-carrito:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.cantidad-input-carrito {
    width: 50px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 13px;
    padding: 0 5px;
}

.cantidad-input-carrito:focus {
    outline: none;
    border-color: #999;
}

.subtotal-item-carrito {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    display: inline-block;
    margin-right: 10px;
}

.btn-eliminar-carrito {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    opacity: 0.6;
}

.btn-eliminar-carrito:hover {
    color: #dc3545;
    opacity: 1;
}

/* Resumen del Carrito */
.carrito-resumen {
    padding-left: 20px;
}

.resumen-wrapper {
    background-color: var(--color-white);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.resumen-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.resumen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.resumen-label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

.resumen-value {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

.resumen-label-total {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    text-transform: uppercase;
}

.resumen-value-total {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
}

.resumen-subtotal {
    margin-bottom: 15px;
}

.resumen-envio {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.resumen-total {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Formulario de Envío */
.envio-section {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.envio-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.envio-section .form-group {
    margin-bottom: 12px;
}

.envio-section label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 5px;
    display: block;
}

.envio-section .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.envio-section .form-control:focus {
    outline: none;
    border-color: #999;
}

.envio-section .form-control[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-actualizar {
    width: 100%;
    padding: 10px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

.btn-actualizar:hover {
    background-color: #333;
}

.btn-finalizar-compra {
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-finalizar-compra:hover {
    background-color: #ffcc00;
}

.btn-finalizar-compra:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .carrito-resumen {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .resumen-wrapper {
        position: static;
    }
    
    .carrito-table-wrapper {
        overflow-x: auto;
    }
    
    .carrito-table {
        min-width: 600px;
    }
    
    .producto-info-carrito {
        flex-direction: column;
    }
    
    .producto-imagen-carrito {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   ESTILOS DEL CHECKOUT
   ============================================ */

.checkout-page {
    padding: 30px 0;
}

.checkout-page .page-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-icon {
    width: 32px;
    height: 32px;
}

.checkout-forms {
    padding-right: 20px;
}

.checkout-section {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Pasos del Checkout */
.checkout-step {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.checkout-step.step-hidden {
    display: none;
}

.checkout-step.step-visible {
    display: block;
    animation: slideDown 0.3s ease;
}

.checkout-step-completed {
    border-left: 4px solid #28a745;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-bg);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-number.completed {
    background-color: #28a745;
    color: white;
}

.step-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
    margin: 0;
}

.step-content {
    padding-top: 10px;
}

/* Secciones del formulario de envío (mejor UX: un bloque a la vez) */
.checkout-form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.checkout-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.checkout-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFDD00;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-section-title .section-num {
    width: 26px;
    height: 26px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Código postal: contenedor y spinner (checkout y carrito) */
.cp-input-wrap { position: relative; }
.cp-spinner { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; }

/* ---- Paso 2: selector de paquetería ---- */
#btn-paso2-continuar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@keyframes highlight-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shipping-options-wrapper.highlight-required,
#shipping-options-wrapper.highlight-required {
    border: 2px solid #e65c00 !important;
    border-radius: 8px;
    padding: 10px;
    animation: highlight-shake 0.4s ease;
}
.opcion-envio.selected,
.shipping-option-label:has(input:checked) {
    border-color: #007bff !important;
    background: #f0f6ff !important;
}

/* ---- Timer de reserva de stock ---- */
.reserva-timer-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #795548;
    font-weight: 500;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.reserva-timer-banner .fa { font-size: 16px; color: #ffa000; }
.reserva-timer-banner strong { font-size: 15px; color: #e65100; margin-left: 4px; letter-spacing: 0.5px; }
.reserva-timer-banner.reserva-timer-cargando strong { color: #8d6e63; animation: reserva-cargando 1.2s ease-in-out infinite; }
@keyframes reserva-cargando {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
.reserva-timer-banner.reserva-timer-urgente {
    background: #fff3e0;
    border-color: #ff7043;
    color: #bf360c;
    animation: timer-pulse 1s ease-in-out infinite;
}
.reserva-timer-banner.reserva-timer-urgente .fa { color: #d84315; }
@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* ---- Modal de reserva expirada ---- */
.modal-reserva-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-reserva-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal-reserva-icon {
    font-size: 52px;
    color: #ff7043;
    margin-bottom: 16px;
}
.modal-reserva-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}
.modal-reserva-msg {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.modal-reserva-btn {
    width: 100%;
}

/* ---- Modal: una tienda por carrito ---- */
.modal-tienda-distinta .modal-tienda-distinta__dialog {
    max-width: 520px;
    margin-top: 8vh;
}
.modal-tienda-distinta__content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.modal-tienda-distinta__accent {
    height: 4px;
    background: linear-gradient(90deg, #111 0%, #FFDD00 50%, #111 100%);
}
.modal-tienda-distinta__header {
    border-bottom: 1px solid #eee;
    padding: 22px 24px 16px;
    position: relative;
    text-align: center;
}
.modal-tienda-distinta__close {
    position: absolute;
    right: 14px;
    top: 14px;
    opacity: 0.45;
    font-size: 28px;
    font-weight: 300;
}
.modal-tienda-distinta__close:hover { opacity: 0.85; }
.modal-tienda-distinta__icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #f7f7f7;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.modal-tienda-distinta__title {
    font-size: 19px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.modal-tienda-distinta__body {
    padding: 20px 24px 8px;
}
.modal-tienda-distinta__lead {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    margin: 0 0 20px;
}
.modal-tienda-distinta__compare {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.modal-tienda-distinta__pill {
    flex: 1 1 160px;
    min-width: 140px;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e5e5e5;
    background: #fafafa;
}
.modal-tienda-distinta__pill--cart {
    border-color: #111;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.modal-tienda-distinta__pill--new {
    border-color: #c5a000;
    background: #fffef5;
}
.modal-tienda-distinta__pill-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 6px;
}
.modal-tienda-distinta__pill-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    word-break: break-word;
}
.modal-tienda-distinta__arrow {
    align-self: center;
    color: #bbb;
    font-size: 18px;
    font-weight: 300;
    padding: 0 4px;
}
.modal-tienda-distinta__hint {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    padding: 14px;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 3px solid #111;
}
.modal-tienda-distinta__footer {
    border-top: 1px solid #eee;
    padding: 16px 20px;
    text-align: right;
    background: #fcfcfc;
}
.modal-tienda-distinta__btn-secondary {
    margin-right: 8px;
    border-radius: 8px;
}
.modal-tienda-distinta__btn-primary {
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-weight: 700;
    padding: 8px 18px;
}
.modal-tienda-distinta__btn-primary:hover,
.modal-tienda-distinta__btn-primary:focus {
    background: #333;
    border-color: #333;
    color: #fff;
}
@media (max-width: 480px) {
    .modal-tienda-distinta__arrow { display: none; }
    .modal-tienda-distinta__compare { flex-direction: column; }
}

/* Barra de progreso cuando aún no hay sesión (solo paso "Cuenta") */
.checkout-progress-paso0 .wizard-step-indicator[data-step="1"] .step-label {
    color: #999;
}

/* Opciones de Autenticación */
.auth-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.btn-auth-option {
    width: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.btn-auth-option:hover {
    border-color: var(--color-primary);
    background-color: #fffbf0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-auth-option.active {
    border-color: var(--color-primary);
    background-color: #fffbf0;
    color: var(--color-text);
}

.btn-auth-option .fa {
    font-size: 24px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
}

/* Formularios de Autenticación */
.auth-form-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.auth-form-container.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.btn-primary {
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #ffcc00;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Información de Usuario */
.user-info-box {
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}

.user-info-box p {
    margin: 5px 0;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #155724;
}

.user-info-box .btn-link {
    color: #155724;
    text-decoration: underline;
    font-size: 13px;
}

/* Mensajes del Checkout */
.checkout-mensaje {
    margin-bottom: 20px;
}

.guest-info {
    padding: 20px;
}

.guest-info p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.guest-info p strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Formulario de Envío */
.envio-section .section-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--color-text);
}

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

/* Iconos */
/* Los iconos ahora se manejan con Font Awesome en el HTML */

/* Iconos ahora se manejan con Font Awesome */

.envio-section .form-group {
    margin-bottom: 20px;
}

.envio-section label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 8px;
    display: block;
}

.envio-section .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.envio-section .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.envio-section textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.btn-guardar-envio {
    margin-top: 15px;
    padding: 12px 25px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-guardar-envio:hover {
    background-color: #ffcc00;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Resumen del Checkout */
.checkout-resumen {
    padding-left: 20px;
}

.checkout-resumen .resumen-wrapper {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.checkout-resumen .resumen-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-text);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-bg);
}

/* Productos en Checkout */
.checkout-producto-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-producto-item:last-child {
    border-bottom: none;
}

.producto-imagen-checkout {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    display: block;
    text-decoration: none;
}

.producto-imagen-checkout img.cart-product-img,
.producto-imagen-checkout img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 4px;
    box-sizing: border-box;
}

a.producto-nombre-checkout.producto-link-checkout {
    color: inherit;
    text-decoration: none;
}
a.producto-nombre-checkout.producto-link-checkout:hover {
    text-decoration: underline;
}

.producto-info-checkout {
    flex: 1;
}

.producto-nombre-checkout {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.producto-codigo-checkout,
.producto-precio-checkout,
.producto-medida-checkout,
.producto-color-checkout {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 3px;
}

.producto-cantidad-checkout {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-cantidad-checkout {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-cantidad-checkout:hover {
    background-color: var(--color-bg);
    border-color: var(--color-primary);
}

.cantidad-checkout {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    min-width: 30px;
    text-align: center;
}

.producto-subtotal-checkout {
    flex: 0 0 80px;
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.resumen-totales {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--color-bg);
}

.resumen-totales .resumen-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resumen-totales .resumen-label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

.resumen-totales .resumen-value {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
}

.resumen-totales .total-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.resumen-totales .resumen-label-total {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    text-transform: uppercase;
}

.resumen-totales .resumen-value-total {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
}

/* Sección de Pago */
.pago-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--color-bg);
}

.pago-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.pago-section .form-group {
    margin-bottom: 20px;
}

.pago-section .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.pago-section .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.privacy-note {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 10px;
    line-height: 1.5;
}

.btn-realizar-pedido {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.btn-realizar-pedido:hover {
    background-color: #ffcc00;
}

.btn-realizar-pedido:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc !important;
}

.btn-lg {
    padding: 18px 24px;
    font-size: 18px;
}

.security-note {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Mercado Pago Styles */
.mercado-pago-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.mercado-pago-badge {
    margin-bottom: 15px;
}

.mp-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mp-icon {
    font-size: 28px;
    color: #00B1EA;
}

.mp-brand {
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #00356B;
    letter-spacing: -0.5px;
}

.mercado-pago-logo {
    max-width: 180px;
    height: auto;
}

.payment-secure {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2ecc71;
    margin: 0 0 8px 0;
}

.payment-secure .fa {
    margin-right: 6px;
}

.payment-methods-accepted {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
}

.mercado-pago-form {
    margin-top: 20px;
}

.mp-form-field {
    margin-bottom: 15px;
}

.mp-form-field iframe {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-height: 40px;
}

/* Estilos de métodos de pago eliminados - ahora usamos solo Mercado Pago */

/* Estilos para información de envío mejorada */
.envio-info {
    text-align: left;
}

.envio-costo {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    display: block;
    margin-bottom: 5px;
}

.envio-detalles {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: var(--color-text-light);
    display: block;
    line-height: 1.4;
}

.resumen-row {
    min-height: 30px;
    display: flex;
    align-items: center;
}

/* Estilos para validación de contraseñas */
.form-control.error {
    border-color: #dc3545;
}

.password-match-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.captcha-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.email-validation-error,
.telefono-validation-error,
.telefono-validation-error-envio {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.password-match-success {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-control.success {
    border-color: #28a745;
}

.form-control.success:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Contenedor para inputs de contraseña con botón de mostrar/ocultar */
.password-input-wrapper {
    position: relative;
    display: block;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    color: #666;
    font-size: 18px;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
    outline: none;
}

.password-toggle-btn:hover {
    color: #333;
}

.password-toggle-btn:focus {
    color: #337ab7;
}

.password-toggle-btn .eye-icon {
    display: inline-block;
    font-size: 18px;
    user-select: none;
}

/* Barra de fortaleza de contraseña */
.password-strength-container {
    margin-top: 10px;
}

.password-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.password-strength-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.password-strength-level {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.password-strength-level.weak {
    color: #dc3545;
}

.password-strength-level.fair {
    color: #ff9800;
}

.password-strength-level.good {
    color: #28a745;
}

.password-strength-level.strong {
    color: #28a745;
}

.password-strength-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease, background-color 0.4s ease;
    border-radius: 4px;
    background-color: #e0e0e0;
}

.password-strength-fill.weak {
    background-color: #dc3545; /* Rojo */
}

.password-strength-fill.fair {
    background-color: #ff9800; /* Naranja */
}

.password-strength-fill.good {
    background-color: #28a745; /* Verde */
}

.password-strength-fill.strong {
    background-color: #28a745; /* Verde intenso */
}

/* Input de contraseña con botón de mostrar/ocultar */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    z-index: 10;
    transition: opacity 0.2s ease;
    user-select: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    opacity: 0.7;
}

.password-toggle-btn:active {
    opacity: 0.5;
}

.password-toggle-btn .eye-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover .eye-icon {
    color: #333;
}

.password-toggle-btn.active .eye-icon {
    color: #337ab7;
}

/* Estilos para selector de código de país */
.telefono-input-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.codigo-pais {
    min-width: 180px;
    flex-shrink: 0;
    font-size: 14px;
}

.codigo-pais option {
    font-size: 14px;
    padding: 5px;
}

.telefono-input-group input[type="tel"] {
    flex: 1;
}

/* Estilos para Select2 personalizados */
.select2-container--bootstrap .select2-selection {
    height: 34px;
    line-height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select2-container--bootstrap .select2-selection__rendered {
    line-height: 34px;
    padding-left: 12px;
    font-size: 14px;
}

.select2-container--bootstrap .select2-selection__arrow {
    height: 32px;
}

.select2-container--bootstrap .select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select2-container--bootstrap .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background-color: #337ab7;
    color: white;
}

.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
}

.select2-container--bootstrap.select2-container--open .select2-selection {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Inputs de texto en mayúsculas */
.input-uppercase {
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .telefono-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .codigo-pais,
    .select2-container {
        width: 100% !important;
        min-width: 100%;
    }
    
    .telefono-input-group input[type="tel"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .select2-container--bootstrap .select2-selection {
        font-size: 13px;
    }
    
    .select2-container--bootstrap .select2-selection__rendered {
        font-size: 13px;
    }
}

/* Mensaje de éxito del registro - Diseño sutil */
.registro-mensaje-exito {
    margin-top: 25px;
}

.exito-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 3px solid #28a745;
    border-radius: 6px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.exito-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.exito-content {
    flex: 1;
}

.exito-titulo {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #212529;
    margin: 0 0 10px 0;
}

.exito-texto {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #495057;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.exito-email-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 3px solid #28a745;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.exito-email-texto {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #495057;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.exito-email-texto strong {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: #212529;
    font-weight: 600;
}

.exito-email-texto span {
    color: #0066cc;
    font-weight: 500;
    word-break: break-all;
    font-size: 13px;
    display: inline-block;
    padding: 3px 6px;
    background-color: #f0f7ff;
    border-radius: 3px;
    margin-top: 4px;
}

.exito-email-instrucciones {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #6c757d;
    margin: 12px 0 0 0;
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Responsive para mensaje de éxito */
@media (max-width: 768px) {
    .exito-box {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .exito-icon {
        align-self: flex-start;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .exito-titulo {
        font-size: 16px;
    }
    
    .exito-texto {
        font-size: 13px;
    }
    
    .exito-email-box {
        padding: 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-forms {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .checkout-resumen {
        padding-left: 0;
    }
    
    .checkout-resumen .resumen-wrapper {
        position: static;
    }
    
    .checkout-producto-item {
        flex-wrap: wrap;
    }
    
    .producto-subtotal-checkout {
        flex: 1 1 100%;
        text-align: left;
        margin-top: 10px;
    }
    
    .checkout-step {
        padding: 20px 15px;
    }
    
    .auth-options {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .step-title {
        font-size: 18px;
    }
}


/* ── Contenido enriquecido del portal (WYSIWYG desde sistema admin) ─── */
.portal-rich-content {
    padding: 8px 0 24px;
    line-height: 1.75;
    color: var(--color-text);
    font-size: 15px;
}

/* Títulos de sección (ej. Conjunto del cuadro, Peso, Transmisión) */
.portal-rich-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--color-secondary);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}
.portal-rich-content h3:first-child {
    margin-top: 0;
}
.portal-rich-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--color-text);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.portal-rich-content p {
    margin: 0 0 14px;
    color: #555;
}
.portal-rich-content ul,
.portal-rich-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}
.portal-rich-content li {
    margin-bottom: 8px;
}

/* Tablas de especificaciones (CKEditor) - forzar estilo sobre Bootstrap/inline */
.tab-content-container .portal-rich-content table,
.producto-detalle-page .portal-rich-content table,
.portal-rich-content table {
    width: 100% !important;
    max-width: 720px !important;
    border-collapse: collapse !important;
    margin: 0 0 28px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    background: #fff !important;
}
.tab-content-container .portal-rich-content table th,
.tab-content-container .portal-rich-content table td,
.producto-detalle-page .portal-rich-content table th,
.producto-detalle-page .portal-rich-content table td,
.portal-rich-content table th,
.portal-rich-content table td {
    border: 1px solid #d0d0d0 !important;
    padding: 14px 18px !important;
    text-align: left !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
}
.portal-rich-content table th {
    background: #e8e8e8 !important;
    font-weight: 700 !important;
    width: 36% !important;
    min-width: 160px !important;
    color: #333 !important;
    font-size: 13px !important;
}
/* Primera columna como etiqueta cuando CKEditor solo usa td (sin th) */
.portal-rich-content table td:first-child {
    background: #eee !important;
    font-weight: 600 !important;
    color: #444 !important;
    width: 36% !important;
    min-width: 160px !important;
}
.portal-rich-content table td:last-child {
    background: #fff !important;
    color: #444 !important;
}
.portal-rich-content table tr:nth-child(even) td:last-child {
    background: #f8f8f8 !important;
}
.portal-rich-content table tr:nth-child(even) td:first-child {
    background: #e5e5e5 !important;
}
.portal-rich-content table tr:hover td:last-child {
    background: #eef4fa !important;
}
.portal-rich-content table tr:hover td:first-child {
    background: #e0e0e0 !important;
}
.portal-rich-content strong {
    color: #222;
}

/* Bloques y citas */
.portal-rich-content blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--color-primary);
    background: #fcfcfc;
    color: #555;
    font-style: italic;
}
.portal-rich-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* Enlaces dentro del contenido */
.portal-rich-content a {
    color: #0066cc;
    text-decoration: none;
}
.portal-rich-content a:hover {
    text-decoration: underline;
}

/* Espaciado entre sección (h3 + tabla) */
.portal-rich-content h3 + table,
.portal-rich-content h4 + table {
    margin-top: 8px;
}

/* ── Bloque editorial tipo Trek (2 columnas: imagen + título + texto) ───
   Para HTML pegado desde CKEditor con clases editorial-group, editorial-small, etc. */
.portal-rich-content .editorial-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}
@media (min-width: 768px) {
    .portal-rich-content .editorial-group {
        grid-template-columns: 1fr 1fr;
    }
}
.portal-rich-content .editorial-small {
    width: 100%;
    text-align: left;
}
.portal-rich-content .editorial-small__wrap {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 6px;
    background: #e8e8e8;
}
.portal-rich-content .editorial-small__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    background: #e8e8e8;
}
.portal-rich-content .editorial-small__content {
    padding: 0 0.25rem;
}
.portal-rich-content .editorial-small__header,
.portal-rich-content .editorial-small__header.header-small {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
.portal-rich-content .editorial-small__text,
.portal-rich-content .editorial-small__text.font-light {
    font-size: 1.15rem;
    font-weight: 400;
    color: #444;
    line-height: 1.65;
    margin: 0 0 1rem;
}
.portal-rich-content .editorial-group .mb-1 { margin-bottom: 0.25rem; }
.portal-rich-content .editorial-group .mb-7 { margin-bottom: 1.75rem; }

/* Indicador de contenido vacío */
.portal-rich-content .sin-contenido {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 14px;
}
