/**
 * Frantes.com - Official Theme & Color Palette
 * Recovered from Web Archive (2023-2024)
 * Primary Brand: Royal Indigo #1B15A7 / #1910a5
 * Secondary Gradient: #4065c2 to #1910a5
 * Light clean theme with #ffffff cards and #f2f2f2 wrapper
 */

:root {
    --frantes-blue-dark: #1910a5;
    --frantes-blue-primary: #1B15A7;
    --frantes-blue-light: #4065c2;
    --frantes-blue-hover: #140c88;
    --frantes-bg-body: #ffffff;
    --frantes-bg-wrapper: #f2f2f2;
    --frantes-text-dark: #14162f;
    --frantes-border-subtle: #e2e8f0;
}

html, body {
    height: auto !important;
    min-height: 100% !important;
    background-color: #f2f2f2 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: #14162f !important;
}

#wrapper {
    height: auto !important;
    min-height: 100% !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

.main-container {
    height: auto !important;
    min-height: 500px !important;
    padding: 20px 0 40px !important;
    display: block !important;
    clear: both !important;
}

/* Header & Logo */
#main-header.main-header-frantes {
    background: #ffffff !important;
    border-bottom: 2px solid #1B15A7 !important;
    box-shadow: 0 2px 10px rgba(27, 21, 167, 0.08) !important;
    padding: 0 !important;
    position: relative;
    z-index: 999;
}

.main-header-frantes .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px 0;
    gap: 20px;
}

/* 1. Logo Centrado Verticalmente */
.main-header-frantes .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.main-header-frantes .logo h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.frantes-brand-logo {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #08080a !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.frantes-brand-logo:hover {
    color: #14162f !important;
}

.frantes-brand-logo .logo-f {
    color: #1B15A7 !important;
    font-weight: 900;
}

/* 2. Buscador Central Moderno y Separado */
.main-header-frantes .header-search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
}

.search-form-frantes {
    position: relative;
    width: 100%;
    margin: 0;
}

.search-input-frantes {
    width: 100% !important;
    height: 44px !important;
    background: #f4f6fa !important;
    border: 1.5px solid #d5dce7 !important;
    border-radius: 24px !important;
    padding: 8px 48px 8px 20px !important;
    font-size: 14px !important;
    color: #14162f !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease-in-out !important;
}

.search-input-frantes:focus {
    background: #ffffff !important;
    border-color: #1B15A7 !important;
    box-shadow: 0 0 0 3px rgba(27, 21, 167, 0.15) !important;
    outline: none !important;
}

.search-btn-frantes {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1B15A7;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(27, 21, 167, 0.3);
}

.search-btn-frantes:hover {
    background: #4065c2;
    transform: translateY(-50%) scale(1.06);
}

/* 3. Acceso de Usuarios y VIP */
.main-header-frantes .header-user-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.user-guest-box,
.user-logged-box {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 8px;
}

.user-guest-box .user-icon {
    color: #64748b;
    font-size: 15px;
}

.user-guest-box .link-auth {
    color: #14162f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.user-guest-box .link-auth:hover {
    color: #1B15A7;
}

.user-guest-box .sep,
.user-logged-box .sep {
    color: #cbd5e1;
    margin: 0 2px;
}

.btn-vip-gold {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #1B15A7 0%, #1910a5 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(27, 21, 167, 0.25);
    transition: all 0.2s;
    margin-left: 6px;
    border: 1px solid #140c88;
}

.btn-vip-gold i {
    color: #fbbf24;
}

.btn-vip-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 21, 167, 0.35);
    background: #4065c2;
}

.badge-admin-hdr {
    background: #1B15A7;
    color: #fff;
    padding: 5px 9px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.badge-vip-hdr {
    background: #16a34a;
    color: #fff;
    padding: 5px 9px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.badge-activate-vip {
    background: #1B15A7;
    color: #fff;
    padding: 5px 9px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.user-name a {
    font-weight: 700;
    color: #14162f;
    text-decoration: none;
}

.user-name a:hover {
    color: #1B15A7;
}

.user-logout {
    color: #64748b;
    text-decoration: none;
}

.user-logout:hover {
    color: #ef4444;
}

@media (max-width: 991px) {
    .main-header-frantes .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 14px 0 10px;
    }
    .main-header-frantes .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
}

/* Main Navigation Menu (Gradient Royal Blue from Web Archive) */
#menu,
.navbar-site.bg-menu,
.frantes-nav-bg {
    background: #4065c2 !important;
    background: -moz-linear-gradient(top, #4065c2 0%, #1910a5 100%) !important;
    background: -webkit-linear-gradient(top, #4065c2 0%, #1910a5 100%) !important;
    background: linear-gradient(to bottom, #4065c2 0%, #1910a5 100%) !important;
    border: 1px solid #1910a5 !important;
    box-shadow: 0 3px 6px rgba(25, 16, 165, 0.2) !important;
}

#menu ul li a,
#menu ul li span {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

#menu ul li:hover,
#menu ul li.active {
    background: rgba(0, 0, 0, 0.15) !important;
}

/* Submenu dropdowns */
#menu ul li .submenu {
    background: #1910a5 !important;
    border: 1px solid #140c88 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

#menu ul li .submenu li a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#menu ul li .submenu li a:hover {
    background: #4065c2 !important;
    color: #ffffff !important;
}

/* Buttons & Badges */
.btn-primary,
.btn-danfra-primary,
.btn-frantes-primary {
    background: #1B15A7 !important;
    border-color: #1910a5 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-danfra-primary:hover,
.btn-frantes-primary:hover {
    background: #4065c2 !important;
    border-color: #4065c2 !important;
    color: #ffffff !important;
}

.badge-vip,
.badge-vip-active {
    background: #1B15A7 !important;
    color: #ffffff !important;
}

/* Item cards / catalog posters */
.item-list,
.inner-box,
.product-con {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out !important;
}

.item-list:hover,
.product-con:hover {
    box-shadow: 0 6px 14px rgba(27, 21, 167, 0.12) !important;
    transform: translateY(-2px);
    border-color: #1B15A7 !important;
}

.item-name,
.product-title,
.post_title {
    color: #14162f !important;
    font-weight: 700 !important;
}

.item-list:hover .item-name,
.product-con:hover .product-title {
    color: #1B15A7 !important;
}

/* Section titles */
.products-t h2,
.title-3,
.cat-list h3 {
    color: #14162f !important;
    font-weight: 800 !important;
    border-left: 4px solid #1B15A7;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* Pagination */
.pagination > li > a {
    color: #1B15A7 !important;
    border-color: #cbd5e1 !important;
}

.pagination > li > a:hover {
    background-color: #eef2ff !important;
    border-color: #1B15A7 !important;
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background-color: #1B15A7 !important;
    border-color: #1B15A7 !important;
    color: #ffffff !important;
}

/* Footer */
#footer,
#main-footer {
    background: #14162f !important;
    color: #94a3b8 !important;
    border-top: 3px solid #1B15A7 !important;
    padding: 30px 0 20px !important;
}

#footer a,
#main-footer a {
    color: #cbd5e1 !important;
}

#footer a:hover,
#main-footer a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}
