/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


a {
    text-decoration: none;
    color: inherit;
}

/* Header Principal */
.main-header {
    background-color: #0A2B32;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Primera fila */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 174px;
}

.logo img {
    width: 100%;
    height: auto;
    transition: filter 0.2s ease;
    /* Header oscuro: forzamos logo en blanco (adaptado). */
    filter: brightness(0) invert(1);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo:hover img {
    /* Sin brillo, logo normal */
    filter: brightness(0) invert(1);
}

.search-container {
    flex: 1;
    margin: 0 30px;
}

.search-bar {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
}

/* Selector de categorías - sencillo y suave */
.category-selector {
    min-width: 165px;
    padding: 0 14px 0 16px;
    height: 42px;
    border: none;
    background: #f8f9fa;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-right: 1px solid #e8e8e8;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.category-selector:hover {
    background-color: #f0f1f2;
}
.category-selector:focus {
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px rgba(10,43,50,0.2);
}

.search-bar input {
    flex: 1;
    padding: 0 15px;
    border: none;
    font-size: 15px;
}

.search-btn {
    width: 50px;
    background-color: #e67e22;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #d35400;
}


.user-actions {
    display: flex;
    gap: 20px;
}

.header-notifications { position: relative; }
.header-notif-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
}
.header-notif-btn:hover { background: rgba(255,255,255,.16); }
.header-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.header-notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, 92vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    z-index: 1200;
    display: none;
}
.header-notif-dropdown.is-open { display: block; }
.header-notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem .85rem;
    border-bottom: 1px solid #eef2f7;
}
.header-notif-link {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: .86rem;
}
.header-notif-list { max-height: 360px; overflow-y: auto; }
.header-notif-item { padding: .72rem .85rem; border-bottom: 1px solid #f1f5f9; }
.header-notif-item--unread { background: #f8fbff; border-left: 3px solid #0A2B32; }
.header-notif-title { margin: 0 0 .2rem 0; font-weight: 700; color: #0f172a; font-size: .9rem; }
.header-notif-msg { margin: 0; font-size: .84rem; color: #334155; }
.header-notif-meta {
    margin-top: .45rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .76rem;
    color: #64748b;
}
.header-notif-delete {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: .76rem;
}
.header-notif-empty {
    margin: 0;
    padding: 1.2rem .85rem;
    text-align: center;
    color: #64748b;
}
.header-notif-footer {
    display: block;
    text-align: center;
    padding: .65rem;
    font-weight: 600;
    color: #0A2B32;
    border-top: 1px solid #eef2f7;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: background-color 0.3s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}



.action-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(233, 242, 246, 0.95);
    box-shadow: 0 2px 10px rgba(5, 22, 27, 0.32);
    transform: translateY(-1px);
}

.action-item i {
    font-size: 24px;
    color: #e67e22;
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-title {
    font-size: 14px;
    font-weight: 500;
}

.action-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: 20px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.action-item.orders { position: relative; }
.orders-count {
    position: absolute;
    top: -5px;
    left: 20px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* fin */

/* Boton de Cuenta */
/* Contenedor principal */
.account-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Estilo base del botón */
.action-item.account {
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.action-item.account:hover {
    border-color: rgba(233, 242, 246, 0.98);
    box-shadow: 0 0 0 1px rgba(233, 242, 246, 0.45) inset;
}

/* Botón flotante para volver arriba */
.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4a58 0%, #0a2b32 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(230, 126, 34, 0.25);
}

.action-text {
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}

.action-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.action-subtitle {
    font-size: 12px;
    color: #666;
}

/* Dropdown (inicialmente oculto) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
}

/* Flechita del dropdown */
.dropdown-arrow {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1001;
}

/* Secciones internas */
.dropdown-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.dropdown-section a {
    display: block;
    padding: 8px 0;
    color: #000204;
    text-decoration: none;
    font-size: 13px;
    font-weight: 450;
}

.dropdown-section a:hover {
    text-decoration: underline;
    color: #c45500;
}

/* Mostrar dropdown al hacer hover */
.account-dropdown:hover .dropdown-content {
    display: block;
}

/* Botón de login destacado */
.button.primary {
    background: #f0c14b;
    border-color: #a88734 #9c7e31 #846a29;
    color: #111;
    padding: 8px;
    width: 100%;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

/* Botón Cerrar sesión en dropdown */
.logout-form-dropdown { display: block; }
.btn-logout-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 10px 16px;
    background: #0A2B32;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.btn-logout-dropdown:hover {
    background: #0d3840;
    color: #fff;
    opacity: 0.92;
    transform: translateX(4px);
}
.btn-logout-dropdown:hover i {
    transition: transform 0.25s ease;
    transform: translateX(2px);
}


/* Segunda fila con botones */
.header-bottom {
    background-color: #0c2f37;
    border-top: 1px solid #516063;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 20px;
    background-color: #e67e22;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #d35400;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    margin-right: 12px;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-links {
    display: flex;
    margin-left: 20px;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 14px;
    color: white;
    transition: background-color 0.3s;
}

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

.nav-promo {
    margin-left: auto;
}

.promo-link {
    font-size: 13px;
    color: #f1c40f;
    font-weight: 500;
    transition: color 0.3s;
}

.promo-link:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* Animación suave del banner promo */
@keyframes promo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.promo-link-animated {
    display: inline-block;
    animation: promo-float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-top {
        padding: 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }

    .logo-container {
        order: 1;
        flex: 0 0 150px;
    }

    .user-actions {
        order: 2;
        margin-left: auto;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 44px;
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin: 12px 0 0 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .header-bottom.is-open .nav-links {
        display: flex;
    }

    .header-bottom.is-open .nav-toggle .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .header-bottom.is-open .nav-toggle .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .header-bottom.is-open .nav-toggle .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1rem;
    }

    .nav-promo {
        margin-left: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .user-actions {
        display: none !important;
    }

    .header-top {
        padding: 10px 12px;
        gap: 8px;
        align-items: center;
    }

    .logo-container { flex: 0 0 116px; }
    .logo img {
        max-height: 56px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .search-container {
        margin: 0;
        flex: 1;
    }

    .search-bar {
        height: 40px;
        border-radius: 8px;
    }

    .category-selector {
        min-width: 138px;
        font-size: 13px;
        height: 40px;
        padding-left: 10px;
        padding-right: 26px;
    }

    .search-bar input {
        font-size: 15px;
        padding: 0 10px;
    }

    .search-btn {
        width: 44px;
        height: 40px;
    }

    .action-item {
        min-width: 128px;
        flex: 0 0 auto;
        border-radius: 8px;
    }

    .action-item .action-title {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .action-item .action-subtitle {
        font-size: 0.85rem;
    }

    .action-item .action-text {
        display: flex;
    }

    .action-item {
        padding: 6px 8px;
    }

    .category-selector {
        width: 120px;
    }

    .nav-container {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-toggle {
        margin-right: 0;
    }

    .nav-promo {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo-container { flex: 0 0 108px; }
    .logo img { max-height: 52px; }

    .category-selector {
        width: 110px;
        font-size: 12px;
    }

    .nav-promo {
        display: none;
    }

    .promo-link {
        font-size: 12px;
    }

    .product-section {
        padding: 24px 12px 50px;
    }

    .product-grid {
        gap: 16px;
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .section-title h2::before,
    .section-title h2::after {
        width: 60px;
    }

    .section-title--coming h2::before,
    .section-title--coming h2::after {
        width: 40px;
    }

    .footer-partners {
        padding: 24px 15px;
    }

    .logos-container img {
        height: 32px;
    }
}

/* Mobile app-like bottom navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1400;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        background: rgba(255, 255, 255, 0.74);
        border-top: 1px solid rgba(255, 255, 255, 0.55);
        -webkit-backdrop-filter: blur(14px) saturate(150%);
        backdrop-filter: blur(14px) saturate(150%);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.10);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav a {
        color: #34495e;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.72rem;
        font-weight: 600;
        min-height: 52px;
        border-radius: 10px;
    }

    .mobile-bottom-nav a i {
        font-size: 1.15rem;
    }

    .mobile-bottom-nav a.is-active {
        color: #0A2B32;
        background: rgba(236, 244, 246, 0.92);
    }

    /* En móvil la flecha no se muestra (solo desktop). */
    .scroll-top-btn {
        display: none !important;
    }
}



/* Carousel Section */
.carousel-section {
    margin: 20px 0;
}

.carousel-container {
    position: relative;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

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

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}



/*  */


/* Product Section */
.section-title {
    text-align: center;
    margin: 50px 0 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg, #e1a36d, #cd8648);
}

.section-title h2::before {
    left: -280px;
}

.section-title h2::after {
    right: -280px;
}

.section-title .subtitle {
    display: block;
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 10px;
    font-style: italic;
}



.product-section {
    padding: 40px 20px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-section + .footer-partners,
.product-section + .main-footer,
main .product-section:last-of-type {
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #0F6566;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(10, 43, 50, 0.2);
}

.product-badge--offer { background: linear-gradient(145deg, #f4c430 0%, #e8a80b 100%); color: #1f2937; }
.product-badge--new { background: linear-gradient(145deg, #2f89ff 0%, #1f6feb 100%); color: #fff; }
.product-badge--featured { background: linear-gradient(145deg, #27ae60 0%, #1f9a53 100%); color: #fff; }

.product-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

/* .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
} */

.product-main-img,
.product-hover-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-main-img {
    opacity: 1;
}

.product-hover-img {
    opacity: 0;
}

.product-card:hover .product-main-img {
    opacity: 0;
}

.product-card:hover .product-hover-img {
    opacity: 1;
}

/* Próximamente */
.section-title--coming h2::before,
.section-title--coming h2::after { width: 120px; }
.section-title--coming h2::before { left: -140px; }
.section-title--coming h2::after { right: -140px; }

.product-card--coming { pointer-events: none; }
.product-card--coming:hover { transform: none; }
.product-badge--coming { background: #7f8c8d; }
.product-image--placeholder {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-placeholder-icon {
    font-size: 48px;
    color: rgba(0,0,0,0.2);
}
.product-coming-text {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 6px;
}

/* .product-card:hover .product-image img {
    transform: scale(1.05);
} */

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.3s;
}

.product-actions button:hover {
    background-color: #4CAF50;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ffc107;
    font-size: 14px;
}

.product-rating span {
    color: #777;
    font-size: 12px;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #0F6566;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Ad Section */
.ad-section {
    margin: 40px 0;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Featured Product Section */
.featured-product {
    background-color: white;
    padding: 40px 0;
    margin: 40px 0;
}

.featured-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.featured-image {
    flex: 1;
}

.featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.featured-info {
    flex: 1;
}

.featured-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.featured-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffc107;
}

.featured-rating span {
    color: #777;
    font-size: 14px;
    margin-left: 10px;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.featured-price .current-price {
    font-size: 28px;
    font-weight: bold;
    color: #0F6566;
}

.featured-price .old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.featured-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
}

.add-to-cart-btn {
    padding: 10px 25px;
    background-color: #0F6566;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #437d7e;
}

.add-to-wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    font-size: 18px;
    transition: all 0.3s;
}

.add-to-wishlist-btn:hover {
    background-color: #f44336;
    color: white;
}

.featured-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.meta-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.meta-item span {
    font-weight: bold;
    color: #333;
    min-width: 100px;
    display: inline-block;
}

/* Best Sellers Section */
.best-sellers {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.best-seller-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

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

.bs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #284660;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.bs-image {
    height: 275px;
    overflow: hidden;
}

.bs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.best-seller-card:hover .bs-image img {
    transform: scale(1.05);
}

.bs-info {
    padding: 15px;
    text-align: center;
}

.bs-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.bs-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #ffc107;
    font-size: 14px;
}

.bs-rating span {
    color: #777;
    font-size: 12px;
    margin-left: 5px;
}

.bs-price {
    font-size: 18px;
    font-weight: bold;
    color: #0F6566;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        padding: 15px;
    }

    .header-logo {
        order: 1;
        margin-bottom: 15px;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0;
    }

    .header-icons {
        order: 2;
        margin-left: auto;
    }

    .featured-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .product-grid,
    .best-sellers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .header-icons {
        gap: 15px;
    }
}

@media (max-width: 576px) {

    .product-grid,
    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-icons {
        gap: 10px;
    }

    .featured-actions {
        flex-wrap: wrap;
    }
}





/* Main Footer Section */
/* Footer Styles */
.main-footer {
    background-color: #f7f7f7;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Partners Section */
.footer-partners {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.partners-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partners-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partners-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.logos-container img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 1;
    transition: all 0.3s ease;
}

.logos-container img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.divider {
    width: 1px;
    height: 60px;
    background-color: #e0e0e0;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto;
    max-width: 1200px;
}

/* Main Footer Section */
.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #284660;
}

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

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

.footer-links a {
    color: #555;
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: #284660;
    /* Se eliminó el padding-left para que no se mueva */
}

.footer-links a.footer-link-rastrear:hover {
    color: #284660;
    font-weight: 400;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #284660;
    width: 20px;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(160deg, #f6f9fb 0%, #e9f0f4 100%);
    color: #1a4a55;
    border: 1px solid rgba(10, 43, 50, 0.1);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(10, 43, 50, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.footer-social a:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(10, 43, 50, 0.2);
    background: linear-gradient(160deg, #0f4a55 0%, #0A2B32 100%);
    border-color: rgba(10, 43, 50, 0.35);
    color: #f5fafb;
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: #0A2B32;
    color: #aaa;
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-methods img {
    height: 25px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.payment-methods img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .partners-logos {
        flex-direction: column;
        gap: 20px;
    }

    .divider {
        width: 80%;
        height: 1px;
        margin: 10px auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logos-container {
        gap: 15px;
    }

    .logos-container img {
        height: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Animación moderada al hacer scroll (look tecnológico suave) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}



/* Information de la empresa */
/* 2 */

.policy-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.policy-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.policy-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

.policy-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: rgb(255, 255, 255);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.policy-nav button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.policy-nav button:hover,
.policy-nav button.active {
    background-color: var(--primary-color);
    color: rgb(222, 172, 64);
}

.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
    margin-bottom: 2rem;
    display: none;
    animation: fadeIn 0.5s ease;
}

.policy-section.active {
    display: block;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.policy-content {
    line-height: 1.7;
}

.policy-content ul {
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.intro-section {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 0rem;
}

.intro-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .policy-nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .policy-nav button {
        width: 100%;
        text-align: center;
    }

    .policy-container {
        padding: 1rem;
    }
}














/* Estilos CSS con clases únicas y color #284660 */
.profile-section__custom-ui-2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1.5rem clamp(0.75rem, 2.5vw, 2.5rem) 2rem;
    color: #333;
    box-sizing: border-box;
}

.profile-container__custom-ui-2 {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    max-width: none;
    width: 100%;
}

.profile-header__custom-ui-2 {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #092117, #284660);
    color: white;
}

.profile-avatar__custom-ui-2 {
    margin-right: 1.5rem;
}

.profile-logo__custom-ui-2 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.profile-info__custom-ui-2 {
    flex: 1;
}

.profile-name__custom-ui-2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.profile-nav__custom-ui-2 {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
}

.profile-nav-list__custom-ui-2 {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav-item__custom-ui-2 {
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    position: relative;
    transition: all 0.2s ease;
}

.profile-nav-item__custom-ui-2.active {
    color: #284660;
    font-weight: 600;
}

.profile-nav-item__custom-ui-2.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #284660;
}

.profile-nav-item__custom-ui-2:hover {
    color: #284660;
    background: rgba(40, 70, 96, 0.05);
}

.profile-content__custom-ui-2 {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.profile-tab__custom-ui-2 {
    display: block;
}

.profile-tab__custom-ui-2.hidden {
    display: none;
}

.profile-tab-title__custom-ui-2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #284660;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Estilos para pedidos */
.profile-orders__custom-ui-2 {
    display: grid;
    gap: 1.5rem;
}

.profile-order-card__custom-ui-2 {
    border: 2px solid #cccfd3;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.profile-order-card__custom-ui-2:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-header__custom-ui-2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-status__custom-ui-2 {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status__custom-ui-2.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status__custom-ui-2.shipped {
    background: #cce5ff;
    color: #004085;
}

.order-status__custom-ui-2.completed {
    background: #d4edda;
    color: #155724;
}

.order-summary__custom-ui-2 {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.order-product-preview__custom-ui-2 {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.order-product-img__custom-ui-2 {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.order-product-name__custom-ui-2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.order-product-desc__custom-ui-2 {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.order-meta__custom-ui-2 {
    flex: 0 0 250px;
    display: grid;
    gap: 0.5rem;
}

.order-meta-item__custom-ui-2 {
    display: flex;
    justify-content: space-between;
}

.meta-label__custom-ui-2 {
    font-weight: 500;
    color: #555;
}

.meta-value__custom-ui-2 {
    font-weight: 600;
}

.order-details-btn__custom-ui-2 {
    background: #284660;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
}

.order-details-btn__custom-ui-2:hover {
    background: #1d364a;
}

/* Contenedor de botones en historial: ordenados en fila */
.profile-history-order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: stretch;
}

.profile-history-order-actions .order-details-btn__custom-ui-2 {
    flex: 1;
    min-width: 180px;
}

.profile-history-order-actions .order-invoice-btn__custom-ui-2 {
    flex: 0 0 auto;
}

.order-invoice-btn__custom-ui-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #c97070;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.order-invoice-btn__custom-ui-2:hover {
    background: #b85c5c;
    color: #fff;
}

/* Estilos para historial */
.history-toolbar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.history-filters__custom-ui-2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.history-filters-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.history-filter-btn__custom-ui-2 {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
}

.history-filter-btn__custom-ui-2.active {
    background: #0A2B32;
    color: #fff;
    border-color: #0A2B32;
}

.history-filter-btn__custom-ui-2:hover {
    border-color: #0A2B32;
    color: #0A2B32;
}

.history-filter-btn__custom-ui-2.active:hover {
    background: #0A2B32;
    color: #fff;
    border-color: #0A2B32;
}

.history-search-form__custom-ui-2 {
    margin: 0;
}

.history-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.history-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.history-search-field--wide { flex: 1; min-width: 180px; }

.history-search-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.history-search-field input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
}

.history-search-btn {
    background: #0A2B32;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.history-search-btn:hover { background: #0d3840; }

.profile-history__custom-ui-2 {
    display: grid;
    gap: 1.5rem;
}

.history-item__custom-ui-2 {
    border: 2px solid #cdd0d4;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Estilos para carritos */
.profile-carts__custom-ui-2 {
    display: grid;
    gap: 1.5rem;
}

.cart-card__custom-ui-2 {
    border: 2px solid #d6dadf;
    border-radius: 8px;
    padding: 1.5rem;
}

.cart-products__custom-ui-2 {
    margin: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-product-item__custom-ui-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cart-product-item__custom-ui-2:last-child {
    margin-bottom: 0;
}

.cart-product-img__custom-ui-2 {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-product-name__custom-ui-2 {
    flex: 1;
}

.cart-product-price__custom-ui-2 {
    font-weight: 600;
}

.cart-total__custom-ui-2 {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-total-price__custom-ui-2 {
    color: #284660;
    font-size: 1.1rem;
}

.cart-actions__custom-ui-2 {
    display: flex;
    gap: 1rem;
}

.cart-load-btn__custom-ui-2 {
    background: #284660;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

.cart-delete-btn__custom-ui-2 {
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

/* Estilos para configuración */
.settings-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    max-width: 520px;
}

.settings-card-title {
    font-size: 1.1rem;
    color: #0A2B32;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.password-form__custom-ui-2 {
    max-width: 100%;
}

.form-group__custom-ui-2 {
    margin-bottom: 1.25rem;
}

.form-label__custom-ui-2 {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-input__custom-ui-2 {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-input__custom-ui-2:focus {
    outline: none;
    border-color: #284660;
    box-shadow: 0 0 0 2px rgba(40, 70, 96, 0.2);
}

/* Validación visual: email y contraseña */
.form-input__custom-ui-2.form-input--valid,
.form-input--pro.form-input--valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.form-input__custom-ui-2.form-input--invalid,
.form-input--pro.form-input--invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.field-hint {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.field-hint.field-hint--error {
    color: #dc3545;
}
.field-hint.field-hint--ok {
    color: #22c55e;
}

.form-hint__custom-ui-2 {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.password-requirements__custom-ui-2 {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.requirements-info__custom-ui-2 {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* Perfil: historial vacío (centrado, sin caja; también usado por fragmento HTMX) */
.profile-history-empty-state {
    text-align: center;
    padding: 3.25rem 1.25rem 3.5rem;
    max-width: 40rem;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}
.profile-history-empty-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 0.65rem;
    font-weight: 600;
}
.profile-history-empty-title {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
.profile-history-empty-desc {
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 auto 1.65rem;
    max-width: 28rem;
}
.profile-history-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0a2b32;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-history-empty-link:hover {
    color: #0d3840;
    border-bottom-color: #0d3840;
}

/* Configuración profesional (perfil): dos tarjetas lado a lado y centradas */
.profile-settings--pro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    max-width: none;
    width: 100%;
    margin: 0;
}

@media (max-width: 900px) {
    .profile-settings--pro {
        grid-template-columns: 1fr;
    }
}

.settings-card--pro {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem clamp(1.5rem, 3vw, 3rem);
    background: #fff;
    align-self: start;
}

.settings-card-header {
    margin-bottom: 1.75rem;
}

.settings-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0A2B32 0%, #284660 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.settings-card--pro .settings-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0A2B32;
    margin-bottom: 0.35rem;
    border-bottom: none;
    padding-bottom: 0;
}

.settings-card-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.45;
}

.settings-form--pro .form-group--pro {
    margin-bottom: 1.5rem;
}

/* Filas de campos lado a lado en Configuración */
.settings-form--pro .settings-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .settings-form--pro .settings-form-row {
        grid-template-columns: 1fr;
    }
}

.settings-form--pro .form-input--pro {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    box-sizing: border-box;
}

.settings-form--pro .form-input--pro:focus {
    border-color: #0A2B32;
    box-shadow: 0 0 0 3px rgba(10, 43, 50, 0.12);
}

.settings-card--admin-grant .admin-grant-form .form-input--pro {
    max-width: 100%;
}

.btn-settings-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: #0A2B32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-settings-primary:hover {
    background: #0d3840;
}

/* Datos guardados: checklist + lápiz para editar */
.field-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    row-gap: 0.35rem;
}
.field-display .field-value {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.45;
}
.btn-edit-field {
    background: none;
    border: none;
    cursor: pointer;
    color: #0A2B32;
    padding: 4px;
    opacity: 0.8;
}
.btn-edit-field:hover {
    opacity: 1;
}
/* Password: espacio para icono ojo */
.password-input-wrapper .form-input__custom-ui-2 {
    padding-right: 2.75rem;
}

.password-submit-btn__custom-ui-2 {
    background: #284660;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.password-submit-btn__custom-ui-2:hover {
    background: #1d364a;
}

/* Estilos para el modal */
.order-modal__custom-ui-2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content__custom-ui-2 {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.close-modal__custom-ui-2 {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.close-modal__custom-ui-2:hover {
    color: #333;
}

.modal-title__custom-ui-2 {
    margin-top: 0;
    color: #284660;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-body__custom-ui-2 {
    margin-top: 1.5rem;
}

.modal-product__custom-ui-2 {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-product-image__custom-ui-2 {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-product-info__custom-ui-2 {
    flex: 1;
}

.modal-details__custom-ui-2 {
    display: grid;
    gap: 1rem;
}

.modal-detail-row__custom-ui-2 {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label__custom-ui-2 {
    font-weight: 500;
    color: #555;
}

.detail-value__custom-ui-2 {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-section__custom-ui-2 {
        padding: 1rem;
    }

    .profile-header__custom-ui-2 {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .profile-avatar__custom-ui-2 {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-nav-list__custom-ui-2 {
        flex-wrap: wrap;
    }

    .profile-nav-item__custom-ui-2 {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .order-summary__custom-ui-2 {
        flex-direction: column;
    }

    .order-meta__custom-ui-2 {
        flex: 1;
        margin-top: 1rem;
    }

    .modal-product__custom-ui-2 {
        flex-direction: column;
    }

    .modal-product-image__custom-ui-2 {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

/* CSS para el botón de cerrar sesión */
.profile-logout-item {
    margin-left: 20%;
    /* Esto empujará el botón hacia el extremo derecho */
    padding-left: 15px;
    /* Espacio separador del item anterior */
}

.profile-logout-button__custom-ui-2 {
    background-color: transparent;
    border: 2px solid #23a05c;
    color: #303030;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-logout-button__custom-ui-2:hover {
    background-color: #23a05c;
    color: white;
}

/* Asegurar que la lista mantenga la alineación */
.profile-nav-list__custom-ui-2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Por si el contenido es muy largo en móviles */
}


/* cambio de password  */

/* Mensajes de éxito/error */
#passwordMessage {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  display: none;
}

#passwordMessage.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#passwordMessage.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* Agrega esto a tu styles.css */
.loading-carts {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-carts .fa-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
}

.error-message .fa-exclamation-triangle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.retry-btn:hover {
    background: #1565c0;
}

.hidden {
    display: none !important;
}

/* Mejoras para los botones del carrito */
.cart-actions__custom-ui-2 {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-load-btn__custom-ui-2 {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.cart-load-btn__custom-ui-2:hover {
    background: #45a049;
}

.cart-delete-btn__custom-ui-2 {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-delete-btn__custom-ui-2:hover {
    background: #d32f2f;
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.cart-notification.success {
    background-color: #4CAF50;
}

.cart-notification.error {
    background-color: #f44336;
}

.cart-notification.info {
    background-color: #2196F3;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast suave al añadir al carrito (derecha, no molesta) */
.cart-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    color: #0A2B32;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.3s ease, transform 0.35s ease;
    border: 1px solid rgba(10, 43, 50, 0.08);
}
.cart-toast i { color: #0a7c42; font-size: 1.2rem; }
.cart-toast--show {
    opacity: 1;
    transform: translateX(0);
}

/* ========== Responsive global (móvil y cualquier navegador) ========== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
    min-width: 280px;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
/* Touch targets mínimos para móvil (44px recomendado) */
@media (max-width: 768px) {
    button:not(.nav-toggle),
    .add-to-cart,
    .search-btn,
    .nav-link,
    .offer-cta,
    .btn-add-to-cart,
    .btn-settings-primary,
    .contact-submit {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 12px;
        font-size: 0.92rem;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* evita zoom en iOS */
    }
    .cart-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
@media (max-width: 480px) {
    .header-top {
        padding: 10px 12px;
    }
    .logo-container {
        flex: 0 0 120px;
    }
    .section-title h2 {
        font-size: 1.25rem;
    }
    .product-grid {
        gap: 0.6rem;
    }
    .product-card .product-info {
        padding: 0.6rem 0.65rem 0.75rem;
    }
    .product-title {
        font-size: 0.88rem;
        line-height: 1.25;
        min-height: 34px;
    }
    .product-actions button,
    .product-actions .add-to-cart {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
    }
    .mobile-bottom-nav a {
        min-height: 46px;
        font-size: 0.68rem;
    }
    .mobile-bottom-nav a i {
        font-size: 1.05rem;
    }
    .history-search-row {
        gap: 0.45rem;
    }
    .history-search-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.84rem;
        min-height: 38px;
    }
    .profile-history-order-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-history-order-actions .order-details-btn__custom-ui-2,
    .profile-history-order-actions .order-invoice-btn__custom-ui-2 {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.84rem;
        min-height: 38px;
        padding: 0.55rem 0.75rem;
    }
    .btn-settings-primary {
        min-height: 40px;
        padding: 0.55rem 0.8rem;
        font-size: 0.87rem;
    }
}