/* ==================== VARIABLES Y COLORES ==================== */
:root {
    --primary-color: #274e7d;
    --secondary-color: #ffffff;
    --dark-color: #1a2b3f;
    --light-gray: #f5f5f5;
    --medium-gray: #999999;
    --dark-gray: #333333;
    --accent-color: #3366aa;
    --transition: all 0.3s ease;
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease;
}

.header.header-hidden {
    transform: translateY(-100%);
}

/* Fila superior */
.header-top {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0d1a2d 100%);
    padding: 12px 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.logo-img {
    height: 55px;
    width: auto;
    max-width: 220px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Buscador */
.header-search {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 11px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: #FFB84D;
}

.search-input::placeholder {
    color: var(--medium-gray);
    font-size: 13px;
}

.search-btn {
    padding: 11px 22px;
    background: #FFB84D;
    color: var(--dark-color);
    border: 2px solid #FFB84D;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

/* Selector de idioma/ciudad */
.header-locale {
    position: relative;
    flex-shrink: 0;
}

.locale-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: inherit;
}

.locale-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.locale-icon {
    font-size: 20px;
}

.locale-text {
    font-weight: 700;
    color: white;
}

.locale-divider {
    opacity: 0.4;
    color: rgba(255,255,255,0.5);
}

.locale-lang {
    color: rgba(255, 255, 255, 0.85);
}

.locale-lang .dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
}

/* Panel desplegable de idioma/región */
.locale-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 200;
    overflow: hidden;
    color: var(--dark-gray);
}

.header-locale.open .locale-panel {
    display: block;
}

.locale-panel-section {
    padding: 22px 24px;
}

.locale-panel-section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.locale-panel-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    text-align: center;
}

.locale-panel-section p {
    font-size: 13px;
    color: var(--medium-gray);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 14px;
}

.locale-panel-section .locale-link {
    color: var(--accent-color);
    font-size: 13px;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.locale-panel-section .locale-link:hover {
    text-decoration: underline;
}

.locale-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.locale-select {
    flex: 1;
    max-width: 180px;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: var(--dark-gray);
    background: white;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: auto;
}

.locale-select:focus {
    border-color: var(--accent-color);
}

.locale-confirm-btn {
    padding: 10px 20px;
    background: #FFB84D;
    color: var(--dark-color);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.locale-confirm-btn:hover {
    background: #FFA500;
}

/* Botones de acción */
.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-register {
    padding: 10px 22px;
    background: transparent;
    color: #FFB84D;
    border: 2px solid #FFB84D;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-register:hover {
    background: #FFB84D;
    color: var(--dark-color);
}

.btn-login {
    padding: 10px 22px;
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover {
    background: #4477cc;
    border-color: #4477cc;
}

/* Fila de navegación */
.header-nav {
    background: #000000;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav > a,
.nav-dropdown-toggle {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav > a:hover,
.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-menu a:hover {
    background: rgba(39, 78, 125, 0.08);
    color: var(--primary-color);
    padding-left: 26px;
}

/* Estilos especiales para links de nav */
.nav-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: auto;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.nav-btn-sell {
    background: #FFB84D !important;
    color: var(--dark-color) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    margin-left: 6px;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.nav-btn-sell:hover {
    background: #FFA500 !important;
}

/* ==================== HAMBURGER & MOBILE NAV ==================== */
.header-nav-inner {
    position: relative;
}

.hamburger {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    z-index: 110;
    color: white;
    flex-shrink: 0;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.hamburger.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile user icon wrapper - hidden on desktop */
.mobile-user-wrapper {
    display: none;
    position: relative;
}

.mobile-user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

.mobile-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding: 8px;
    z-index: 200;
    min-width: 180px;
    flex-direction: column;
    gap: 6px;
}

.mobile-user-wrapper.open .mobile-user-dropdown {
    display: flex;
}

.mobile-user-dropdown-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

.btn-register-mobile {
    background: transparent;
    color: #FFB84D;
    border: 2px solid #FFB84D !important;
}

.btn-register-mobile:hover {
    background: #FFB84D;
    color: var(--dark-color);
}

.btn-login-mobile {
    background: var(--accent-color);
    color: white;
}

.btn-login-mobile:hover {
    background: #4477cc;
}

/* Mobile actions row - hidden on desktop */
.header-mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    /* === ROW 1: Logo + locale + account icon + hamburger === */
    .header-top-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo {
        order: 1;
    }

    .logo-img {
        height: 38px;
    }

    /* Hide locale text details, show only globe icon + arrow */
    .header-locale {
        order: 2;
        margin-left: auto;
    }

    .locale-toggle {
        padding: 6px 8px;
        gap: 4px;
    }

    .locale-text,
    .locale-divider,
    .locale-lang {
        display: none;
    }

    .locale-icon {
        font-size: 22px;
    }

    .locale-panel {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        right: auto;
        width: 300px;
        max-width: 92vw;
    }

    /* Login becomes account icon on mobile */
    .header-actions {
        display: none;
    }

    .mobile-user-wrapper {
        display: block;
        order: 3;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
        order: 4;
    }

    /* === ROW 2: Search + Registrarse === */
    .header-search {
        order: 5;
        width: 100%;
        display: flex;
        gap: 0;
    }

    .search-input {
        flex: 1;
        font-size: 13px;
        padding: 10px 12px;
        border: 2px solid #FFB84D;
        border-right: none;
        border-radius: 6px 0 0 6px;
        background: white;
    }

    .search-btn {
        font-size: 0;
        padding: 10px 14px;
        background: #FFB84D;
        border: 2px solid #FFB84D;
        border-radius: 0;
        position: relative;
    }

    .search-btn::before {
        content: '\1F50D';
        font-size: 16px;
    }

    /* After search btn: show a visible Registrarse button */
    .header-actions .btn-register {
        display: none;
    }

    /* === HEADER-NAV: hidden on mobile, replaced by hamburger menu === */
    .header-nav {
        display: none;
    }

    /* When hamburger is active, show nav as overlay */
    .header-nav.mobile-open {
        display: block;
    }

    .header-nav.mobile-open .nav {
        display: flex;
        flex-direction: column;
    }

    .header-nav.mobile-open .nav > a,
    .header-nav.mobile-open .nav .nav-dropdown-toggle {
        padding: 14px 22px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        box-sizing: border-box;
    }

    .header-nav.mobile-open .nav-highlight,
    .header-nav.mobile-open .nav-btn-sell {
        display: none;
    }

    .header-nav.mobile-open .nav-highlight {
        margin-left: 0;
        border-radius: 0 !important;
        background: rgba(255,255,255,0.05) !important;
    }

    .header-nav.mobile-open .nav-dropdown {
        width: 100%;
    }

    .header-nav.mobile-open .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,0.04);
    }

    .header-nav.mobile-open .dropdown-menu a {
        color: rgba(255,255,255,0.85);
        padding-left: 38px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .header-nav.mobile-open .dropdown-menu a:hover {
        background: rgba(255,184,77,0.12);
        color: #FFB84D;
        padding-left: 44px;
    }

    /* === ROW 3: Mobile action buttons === */
    .header-mobile-actions {
        display: block;
        background: linear-gradient(135deg, var(--dark-color) 0%, #0d1a2d 100%);
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .header-mobile-actions-inner {
        display: flex;
        gap: 10px;
    }

    .mobile-btn-sell {
        flex: 1;
        background: #FFB84D;
        color: var(--dark-color);
        font-weight: 700;
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 6px;
        text-align: center;
        text-decoration: none;
        transition: var(--transition);
    }

    .mobile-btn-sell:hover {
        background: #FFA500;
    }

    .mobile-btn-help {
        flex: 1;
        background: rgba(255,255,255,0.08);
        color: white;
        font-weight: 600;
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 6px;
        text-align: center;
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.15);
        transition: var(--transition);
    }

    .mobile-btn-help:hover {
        background: rgba(255,255,255,0.15);
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--dark-color) 100%);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}

.hero-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 40px;
    min-height: 85vh;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    display: grid;
    opacity: 1;
}

/* Navegación del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    line-height: 1;
}

.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

.carousel-btn:hover {
    background: rgba(255, 184, 77, 0.35);
    border-color: rgba(255, 184, 77, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: #FFB84D;
    border-color: #FFB84D;
    box-shadow: 0 0 10px rgba(255, 184, 77, 0.5);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 184, 77, 0.5);
}

/* ==================== SLIDE 2 – Stats & Badges ==================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 184, 77, 0.5);
    border-radius: 14px;
    padding: 30px 20px;
    backdrop-filter: blur(5px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 184, 77, 0.3);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: #FFB84D;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(255, 184, 77, 0.3);
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-hero-cta-alt {
    background: transparent;
    color: #FFB84D;
    border: 2px solid #FFB84D;
}

.btn-hero-cta-alt:hover {
    background: #FFB84D;
    color: var(--dark-color);
}

.hero-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-badge:hover {
    background: rgba(255, 184, 77, 0.15);
    border-color: rgba(255, 184, 77, 0.5);
    transform: translateY(-4px);
}

.badge-icon {
    font-size: 36px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ==================== HERO BG ELEMENTS ==================== */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ==================== OVERLAY STRIPES ==================== */
.overlay-stripe {
    position: absolute;
    transform-origin: center;
    pointer-events: none;
}

/* Franja principal - celeste claro grande */
.stripe-1 {
    width: 120%;
    height: 55%;
    top: -15%;
    left: -10%;
    background: linear-gradient(160deg, rgba(135, 206, 235, 0.12) 0%, rgba(100, 180, 220, 0.08) 100%);
    transform: rotate(-12deg);
    border-bottom: 1px solid rgba(135, 206, 235, 0.1);
}

/* Franja azul medio */
.stripe-2 {
    width: 70%;
    height: 110%;
    top: -10%;
    right: -5%;
    background: linear-gradient(155deg, transparent 0%, rgba(51, 102, 170, 0.15) 30%, rgba(30, 64, 130, 0.2) 60%, transparent 100%);
    transform: skewX(-15deg);
}

/* Franja oscura con textura tipo fibra de carbono */
.stripe-3 {
    width: 45%;
    height: 120%;
    top: -10%;
    right: -10%;
    background: linear-gradient(160deg, transparent 20%, rgba(10, 15, 25, 0.35) 50%, rgba(10, 15, 25, 0.5) 100%);
    transform: skewX(-12deg);
}

/* Franja dorada/amarilla de acento */
.stripe-4 {
    width: 8px;
    height: 140%;
    top: -20%;
    right: 42%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 184, 77, 0.25) 30%, rgba(255, 184, 77, 0.35) 50%, rgba(255, 184, 77, 0.25) 70%, transparent 100%);
    transform: rotate(-12deg);
    filter: blur(1px);
}

/* Franja azul eléctrica delgada */
.stripe-5 {
    width: 4px;
    height: 140%;
    top: -20%;
    right: 38%;
    background: linear-gradient(180deg, transparent 0%, rgba(66, 153, 255, 0.3) 30%, rgba(66, 153, 255, 0.5) 50%, rgba(66, 153, 255, 0.3) 70%, transparent 100%);
    transform: rotate(-12deg);
    filter: blur(0.5px);
}

/* Panel con textura de fibra de carbono */
.overlay-panel {
    position: absolute;
}

.panel-carbon {
    width: 40%;
    height: 100%;
    top: 0;
    right: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 10% 100%);
    opacity: 0.6;
}

/* Panel con brillo azul */
.panel-glow {
    width: 50%;
    height: 100%;
    top: 0;
    right: 10%;
    background: linear-gradient(170deg, transparent 0%, rgba(0, 100, 200, 0.08) 40%, rgba(0, 80, 180, 0.12) 60%, transparent 100%);
    clip-path: polygon(20% 0, 80% 0, 60% 100%, 0% 100%);
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.06) 0%, transparent 70%);
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.04) 0%, transparent 70%);
}

.bg-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 77, 0.15), transparent);
    height: 1px;
}

.bg-line-1 {
    width: 60%;
    top: 25%;
    left: -5%;
    transform: rotate(-8deg);
}

.bg-line-2 {
    width: 40%;
    bottom: 30%;
    right: -5%;
    transform: rotate(12deg);
}

.bg-line-3 {
    width: 50%;
    top: 65%;
    left: 20%;
    transform: rotate(-3deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 45px 45px;
}

/* ==================== GEOMETRIC SHAPES ==================== */
.geo {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* Hexágonos */
.geo-hex {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geo-hex-1 {
    top: 12%;
    right: 18%;
    background: rgba(255, 184, 77, 0.07);
    border: none;
    animation: geoFloat 8s ease-in-out infinite;
}

.geo-hex-2 {
    bottom: 22%;
    left: 8%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    animation: geoFloat 10s ease-in-out infinite reverse;
}

/* Diamantes / Rombos */
.geo-diamond {
    width: 35px;
    height: 35px;
    border: 1.5px solid rgba(255, 184, 77, 0.2);
    transform: rotate(45deg);
}

.geo-diamond-1 {
    top: 30%;
    left: 42%;
    animation: geoSpin 15s linear infinite;
}

.geo-diamond-2 {
    bottom: 15%;
    right: 25%;
    width: 22px;
    height: 22px;
    border-color: rgba(255, 255, 255, 0.1);
    animation: geoSpin 20s linear infinite reverse;
}

/* Triángulos */
.geo-triangle {
    width: 0;
    height: 0;
}

.geo-triangle-1 {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 42px solid rgba(255, 184, 77, 0.06);
    top: 18%;
    left: 25%;
    animation: geoFloat 12s ease-in-out infinite;
}

.geo-triangle-2 {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid rgba(255, 255, 255, 0.04);
    bottom: 35%;
    right: 12%;
    animation: geoFloat 9s ease-in-out infinite reverse;
}

/* Anillos */
.geo-ring {
    border-radius: 50%;
    border: 1.5px solid rgba(255, 184, 77, 0.15);
    background: transparent;
}

.geo-ring-1 {
    width: 80px;
    height: 80px;
    top: 55%;
    left: 15%;
    animation: geoPulse 6s ease-in-out infinite;
}

.geo-ring-2 {
    width: 50px;
    height: 50px;
    top: 8%;
    right: 35%;
    border-color: rgba(255, 255, 255, 0.08);
    animation: geoPulse 8s ease-in-out infinite 2s;
}

/* Cuadrado con bordes redondeados */
.geo-square {
    border: 1.5px solid rgba(255, 184, 77, 0.12);
    border-radius: 6px;
}

.geo-square-1 {
    width: 45px;
    height: 45px;
    bottom: 40%;
    right: 8%;
    transform: rotate(20deg);
    animation: geoSpin 25s linear infinite;
}

/* Cruz / Plus */
.geo-cross {
    width: 30px;
    height: 30px;
    position: absolute;
}

.geo-cross-1 {
    top: 40%;
    left: 5%;
    animation: geoFloat 7s ease-in-out infinite;
}

.geo-cross-1::before,
.geo-cross-1::after {
    content: '';
    position: absolute;
    background: rgba(255, 184, 77, 0.18);
}

.geo-cross-1::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.geo-cross-1::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

/* Clusters de puntos */
.geo-dot-cluster {
    width: 60px;
    height: 60px;
    background-image: radial-gradient(rgba(255, 184, 77, 0.25) 2px, transparent 2px);
    background-size: 12px 12px;
}

.geo-dot-cluster-1 {
    top: 70%;
    left: 35%;
    animation: geoFloat 11s ease-in-out infinite;
}

.geo-dot-cluster-2 {
    top: 5%;
    right: 5%;
    width: 45px;
    height: 45px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    animation: geoFloat 14s ease-in-out infinite reverse;
}

/* Animaciones de figuras geométricas */
@keyframes geoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes geoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes geoPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    z-index: 10;
    text-align: left;
    animation: fadeInLeft 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 50px 20px 30px;
}

.hero-slide:nth-child(2) .hero-content {
    text-align: center;
    align-items: center;
    padding: 20px 40px;
}

.hero-slide:nth-child(2) .btn-hero-cta {
    align-self: center;
}

.hero-slide:nth-child(2) .hero-content p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
}

.hero p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 520px;
}

.highlight-yellow {
    color: #FFB84D;
    font-weight: bold;
    font-size: 1.1em;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.scroll-indicator span {
    font-size: 14px;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 28px;
    animation: bounce 2s infinite;
}

/* ==================== HERO STEPS ==================== */
.hero-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 184, 77, 0.5);
    border-radius: 14px;
    padding: 25px 20px;
    backdrop-filter: blur(5px);
}

.step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 0 10px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 184, 77, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #FFB84D;
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255, 184, 77, 0.4);
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    color: #FFB84D;
}

.step p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.btn-hero-cta {
    background-color: #FFB84D;
    color: var(--dark-color);
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.4);
    width: fit-content;
}

.btn-hero-cta:hover {
    background-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 77, 0.5);
}

/* ==================== HERO VEHICLES ==================== */
.hero-vehicles {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.canvas-container {
    display: none;
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: bold;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: var(--light-gray);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    text-align: left;
}

.content-text p {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.features {
    list-style: none;
}

.features li {
    font-size: 18px;
    padding: 12px 0;
    color: var(--dark-gray);
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.features li:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.info-card {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-stat h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-stat p {
    font-size: 18px;
    color: var(--medium-gray);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(39, 78, 125, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--medium-gray);
    font-size: 16px;
}

/* ==================== MODELS SECTION ==================== */
.models {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
}

.models h2 {
    color: white;
}

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

.model-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.model-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.model-image {
    font-size: 72px;
    margin-bottom: 20px;
}

.model-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.model-card p {
    opacity: 0.9;
    font-size: 16px;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: linear-gradient(135deg, #f0f3f8 0%, #e8ecf4 100%);
    padding: 100px 0;
}

.contact .container > h2 {
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 50px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(39,78,125,0.06);
}

.contact-info-text p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1.02rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    font-weight: 700;
}

.contact-cta {
    display: flex;
    align-items: stretch;
}

.contact-cta-inner {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff;
}

.contact-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #FFB84D;
}

.contact-cta h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 800;
}

.contact-cta-desc {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 30px;
}

.contact-cta .btn-primary {
    background: #FFB84D;
    color: var(--dark-color);
    padding: 16px 44px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(255,184,77,0.35);
}

.contact-cta .btn-primary:hover {
    background: #FFA500;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255,184,77,0.5);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    object-fit: contain;
    transition: var(--transition);
}

.footer-logo-img:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
    transform: scale(1.05);
}

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 100vh;
        padding: 40px 20px;
    }
    
    .hero-content {
        padding: 20px 20px 40px 20px;
    }
    
    .hero-vehicles {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-image {
        max-width: 100%;
    }

    .hero h2 {
        font-size: 42px;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}

@media (max-width: 768px) {
    .header-top-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-img {
        height: 38px;
    }

    .header-search {
        order: 5;
        max-width: 100%;
        width: 100%;
    }

    .hero {
        padding: 0;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        min-height: auto;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-content {
        padding: 10px 0 30px 0;
    }

    .hero-steps {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .btn-hero-cta {
        width: 100%;
    }

    .hero-vehicles {
        max-width: 100%;
        height: auto;
    }

    .hero-image {
        max-width: 100%;
        height: auto;
    }

    .canvas-container {
        display: none;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .contact-info-text {
        gap: 16px;
        padding: 30px 24px;
        border-radius: 16px;
    }

    .contact-info-text p {
        font-size: 0.92rem;
    }

    .contact-label {
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }

    .contact-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .contact-cta-inner {
        padding: 36px 24px;
        border-radius: 16px;
    }

    .contact-cta-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }

    .contact-cta-icon svg {
        width: 36px;
        height: 36px;
    }

    .contact-cta h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .contact-cta-desc {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .contact-cta .btn-primary {
        padding: 14px 32px;
        font-size: 0.92rem;
        width: 100%;
        border-radius: 10px;
    }

    .contact {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo-img {
        height: 60px;
    }

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

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }

    .carousel-indicators {
        bottom: 15px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-number {
        font-size: 32px;
    }

    .hero-badge-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==================== SCROLL ANIMATIONS ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: slideInUp 0.8s ease-out;
}

/* ============================================================
   CÓMO FUNCIONA PAGE STYLES
   ============================================================ */

/* --- Banner --- */
.how-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 60%, var(--accent-color) 100%);
    overflow: hidden;
}
.how-banner-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="none"/><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>');
    pointer-events: none;
}
.how-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
}
.how-banner-content h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.how-banner-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- General Section --- */
.how-section {
    padding: 80px 0;
}
.how-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 12px;
    text-align: center;
}
.how-section-desc {
    color: #5a6a7a;
    font-size: 1.05rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* --- Cómo Comenzar (Steps Grid) --- */
.how-start {
    background: #f7f9fc;
}
.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.how-step-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 28px 36px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.how-step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(39,78,125,0.3);
}
.how-step-icon {
    color: var(--primary-color);
    margin-bottom: 18px;
}
.how-step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.how-step-card p {
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Timeline (Después de Registrarte) --- */
.how-after-register {
    background: #fff;
}
.how-timeline {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.how-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}
.how-timeline-item {
    position: relative;
    margin-bottom: 36px;
}
.how-timeline-item:last-child {
    margin-bottom: 0;
}
.how-timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color);
}
.how-timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}
.how-timeline-content p {
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Por Qué Apex (Benefits Grid) --- */
.how-why-apex {
    background: #f7f9fc;
}
.how-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.how-benefit-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}
.how-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
}
.how-benefit-icon {
    color: var(--primary-color);
    margin-bottom: 16px;
}
.how-benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}
.how-benefit-card p {
    color: #5a6a7a;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- App Móvil --- */
.how-app {
    background: #fff;
}
.how-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.how-app-text .how-section-title {
    text-align: left;
}
.how-app-text > p {
    color: #5a6a7a;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}
.how-app-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.how-app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.98rem;
    color: var(--dark-color);
    font-weight: 500;
}
.how-app-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.how-app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--dark-color);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
}
.how-app-store-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Phone mockup */
.how-app-mockup {
    display: flex;
    justify-content: center;
}
.how-phone-frame {
    width: 260px;
    height: 520px;
    background: var(--dark-color);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}
.how-phone-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 3;
}
.how-phone-screen {
    background: #f0f2f5;
    border-radius: 26px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.how-phone-header {
    background: var(--primary-color);
    padding: 32px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.how-phone-logo {
    height: 24px;
    filter: brightness(0) invert(1);
}
.how-phone-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.how-phone-card {
    background: #fff;
    border-radius: 10px;
    height: 80px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.how-phone-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary-color);
    border-radius: 10px 0 0 10px;
}
.how-phone-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e2e5ea;
}
.how-phone-nav span {
    width: 24px;
    height: 24px;
    background: #cfd5de;
    border-radius: 6px;
}

/* --- Ayuda Section --- */
.how-help {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 100px 0;
}
.how-help-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.how-help-icon {
    margin-bottom: 24px;
}
.how-help .how-section-title {
    color: #fff;
}
.how-help-content > p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}
.how-help-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.how-help-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.how-help-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #FFB84D;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(255,184,77,0.3);
}
.how-help-btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

/* --- Formas de Pago --- */
.how-payment {
    background: #fff;
}
.how-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.how-payment-card {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8ecf2;
}
.how-payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.how-payment-icon {
    color: var(--primary-color);
    margin-bottom: 16px;
}
.how-payment-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}
.how-payment-card p {
    color: #5a6a7a;
    font-size: 0.88rem;
    line-height: 1.6;
}
.how-payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- FAQ --- */
.how-faq {
    background: #f7f9fc;
}
.how-faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.how-faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e8ecf2;
    transition: box-shadow 0.3s ease;
}
.how-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.how-faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(39,78,125,0.12);
}
.how-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.3s ease;
    font-family: inherit;
}
.how-faq-question:hover {
    color: var(--primary-color);
}
.how-faq-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f2f5;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}
.how-faq-item.active .how-faq-arrow {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: #fff;
}
.how-faq-item.active .how-faq-arrow svg {
    stroke: #fff;
}
.how-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.how-faq-item.active .how-faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.how-faq-answer p {
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- CTA Final --- */
.how-cta {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0d1b2a 100%);
    padding: 80px 0;
}
.how-cta-content {
    text-align: center;
}
.how-cta-content h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.how-cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.how-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.how-cta-btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: #FFB84D;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(255,184,77,0.3);
}
.how-cta-btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
}
.how-cta-btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.how-cta-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- Nav Active State --- */
.nav-active {
    color: #FFB84D !important;
    font-weight: 700;
}

/* ==================== CÓMO FUNCIONA RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .how-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-banner {
        min-height: 240px;
    }
    .how-banner-content {
        padding: 50px 16px 40px;
    }
    .how-banner-content h1 {
        font-size: 1.8rem;
    }
    .how-banner-content p {
        font-size: 1rem;
    }
    .how-section {
        padding: 56px 0;
    }
    .how-section-title {
        font-size: 1.5rem;
    }
    .how-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .how-benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .how-app-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .how-app-text .how-section-title {
        text-align: center;
    }
    .how-app-buttons {
        justify-content: center;
    }
    .how-phone-frame {
        width: 220px;
        height: 440px;
    }
    .how-payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .how-help-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .how-cta-content h2 {
        font-size: 1.6rem;
    }
    .how-faq-question {
        font-size: 0.92rem;
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    .how-payment-grid {
        grid-template-columns: 1fr;
    }
    .how-app-store-btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
    .contact-info-text {
        gap: 14px;
        padding: 24px 20px;
        border-radius: 14px;
    }
    .contact-info-text p {
        font-size: 0.86rem;
    }
    .contact-label {
        font-size: 0.72rem;
    }
    .contact-cta-inner {
        padding: 32px 20px;
    }
    .contact-cta h3 {
        font-size: 1.15rem;
    }
    .contact-cta-desc {
        font-size: 0.85rem;
    }
    .contact {
        padding: 48px 0;
    }
}

/* ========================================
   MEMBERSHIPS PAGE STYLES
   ======================================== */

/* Banner */
.mem-banner {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 60%, var(--accent-color) 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
}

.mem-banner-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.mem-banner-content {
    position: relative;
    z-index: 2;
}

.mem-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.mem-banner p {
    max-width: 800px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.92;
}

.mem-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mem-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Section common */
.mem-section {
    padding: 80px 0;
}

.mem-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 12px;
}

.mem-section-desc {
    text-align: center;
    color: #555;
    font-size: 1.08rem;
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Plans Grid */
.mem-plans {
    background: #f4f6fa;
}

.mem-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.mem-plan-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 32px 36px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mem-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.mem-plan-featured {
    border-color: var(--primary-color);
    transform: scale(1.04);
    box-shadow: 0 8px 36px rgba(39,78,125,0.18);
}

.mem-plan-featured:hover {
    transform: scale(1.04) translateY(-6px);
}

.mem-plan-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 24px;
    border-radius: 50px;
    white-space: nowrap;
}

.mem-plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.mem-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
}

.mem-price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.mem-price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
}

.mem-plan-tagline {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 44px;
}

.mem-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    text-align: left;
}

.mem-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 0.94rem;
    color: #444;
    line-height: 1.5;
}

.mem-plan-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.mem-plan-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    margin-top: 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mem-plan-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.mem-plan-btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.mem-plan-btn-primary {
    background: #FFB84D;
    border: 2px solid #FFB84D;
    color: var(--dark-color);
}

.mem-plan-btn-primary:hover {
    background: #FFA500;
    border-color: #FFA500;
}

.mem-plan-btn-dark {
    background: var(--dark-color);
    border: 2px solid var(--dark-color);
    color: #fff;
}

.mem-plan-btn-dark:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Comparison Table */
.mem-compare {
    background: #fff;
}

.mem-table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.mem-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.mem-table thead {
    background: var(--dark-color);
    color: #fff;
}

.mem-table th {
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.mem-table th:first-child {
    text-align: left;
    min-width: 200px;
}

.mem-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #eee;
}

.mem-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
}

.mem-table tbody tr:hover {
    background: #f8f9fc;
}

.mem-table-highlight {
    background: rgba(39,78,125,0.04);
}

thead .mem-table-highlight {
    background: var(--primary-color);
}

/* Detail Sections */
.mem-detail {
    position: relative;
}

.mem-detail-guest {
    background: #f4f6fa;
}

.mem-detail-basic {
    background: #fff;
}

.mem-detail-premier {
    background: #f4f6fa;
}

.mem-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mem-detail-grid-reverse {
    direction: rtl;
}

.mem-detail-grid-reverse > * {
    direction: ltr;
}

.mem-detail-badge {
    display: inline-block;
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(39,78,125,0.1);
    color: var(--primary-color);
    margin-bottom: 16px;
}

.mem-detail-badge-primary {
    background: #FFB84D;
    color: var(--dark-color);
}

.mem-detail-badge-dark {
    background: var(--dark-color);
    color: #fff;
}

.mem-detail-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.mem-detail-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.mem-detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mem-detail-features li svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.mem-detail-features li strong {
    display: block;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.mem-detail-features li p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.mem-detail-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mem-detail-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mem-detail-icon-box {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mem-detail-icon-guest {
    background: linear-gradient(135deg, rgba(39,78,125,0.08), rgba(51,102,170,0.12));
    color: var(--primary-color);
    border: 3px solid rgba(39,78,125,0.15);
}

.mem-detail-icon-basic {
    background: linear-gradient(135deg, rgba(255,184,77,0.15), rgba(255,165,0,0.2));
    color: #b87700;
    border: 3px solid rgba(255,184,77,0.3);
}

.mem-detail-icon-premier {
    background: linear-gradient(135deg, rgba(26,43,63,0.1), rgba(39,78,125,0.18));
    color: var(--dark-color);
    border: 3px solid rgba(26,43,63,0.2);
}

/* CTA Section */
.mem-cta {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    text-align: center;
    color: #fff;
    padding: 80px 0;
}

.mem-cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.mem-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.mem-cta-btn {
    display: inline-block;
    padding: 16px 50px;
    background: #FFB84D;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mem-cta-btn:hover {
    background: #FFA500;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,184,77,0.4);
}

/* ===== Memberships Responsive ===== */
@media (max-width: 1024px) {
    .mem-banner h1 {
        font-size: 2.2rem;
    }
    .mem-plans-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .mem-plan-featured {
        transform: none;
    }
    .mem-plan-featured:hover {
        transform: translateY(-6px);
    }
    .mem-detail-grid,
    .mem-detail-grid-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    .mem-detail-visual {
        order: -1;
    }
    .mem-section-title,
    .mem-detail-info .mem-section-title {
        text-align: center !important;
    }
    .mem-detail-info {
        text-align: center;
    }
    .mem-detail-features li {
        text-align: left;
    }
    .mem-detail-btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mem-banner {
        padding: 80px 0 50px;
    }
    .mem-banner h1 {
        font-size: 1.8rem;
    }
    .mem-banner p {
        font-size: 0.98rem;
    }
    .mem-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .mem-badge {
        padding: 8px 18px;
        font-size: 0.88rem;
    }
    .mem-section {
        padding: 60px 0;
    }
    .mem-section-title {
        font-size: 1.7rem;
    }
    .mem-cta-content h2 {
        font-size: 1.8rem;
    }
    .mem-detail-icon-box {
        width: 200px;
        height: 200px;
    }
    .mem-detail-icon-box svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .mem-banner h1 {
        font-size: 1.5rem;
    }
    .mem-plan-card {
        padding: 30px 22px 28px;
    }
    .mem-price-amount {
        font-size: 2.2rem;
    }
    .mem-table th,
    .mem-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    .mem-cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(39,78,125,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #FFB84D;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(255,184,77,0.45);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
    .scroll-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===============================================
   HELP CENTER (Centro de Ayuda)
   =============================================== */

/* ---- Banner ---- */
.hc-banner {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.hc-banner-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hc-banner-content {
    position: relative;
    z-index: 2;
}

.hc-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hc-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: 28px;
}

/* ---- Search Box ---- */
.hc-search-box {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hc-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 1rem;
    background: #fff;
    color: #222;
}

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

.hc-search-btn {
    background: #FFB84D;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    color: var(--dark-color);
    transition: background 0.25s;
    display: flex;
    align-items: center;
}

.hc-search-btn:hover {
    background: #FFA500;
}

.hc-search-hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    min-height: 20px;
}

.hc-search-hint.hc-hint-error {
    color: #ff7f7f;
}

/* ---- Section ---- */
.hc-section {
    padding: 72px 0;
    background: #f4f6fa;
}

.hc-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.hc-section-desc {
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ---- Categories Grid ---- */
.hc-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Card ---- */
.hc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.hc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.hc-card.hc-card-active {
    border-color: #FFB84D;
    box-shadow: 0 8px 36px rgba(255,184,77,0.25);
}

.hc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px;
    cursor: pointer;
    user-select: none;
}

.hc-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hc-card-title-area {
    flex: 1;
    min-width: 0;
}

.hc-card-title-area h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.hc-card-summary {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.hc-card-toggle {
    flex-shrink: 0;
    margin-top: 4px;
    color: #999;
    transition: color 0.25s;
}

.hc-card:hover .hc-card-toggle {
    color: #FFB84D;
}

/* ---- Card Body (hidden data source) ---- */
.hc-card-body {
    display: none;
}

/* ---- Modal Overlay ---- */
.hc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 24px;
}

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

.hc-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hc-modal-overlay.hc-modal-open .hc-modal {
    transform: translateY(0) scale(1);
}

.hc-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.hc-modal-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hc-modal-title {
    flex: 1;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
}

.hc-modal-close {
    flex-shrink: 0;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hc-modal-close:hover {
    background: #ff4d4d;
    color: #fff;
    transform: rotate(90deg);
}

.hc-modal-body {
    padding: 28px 32px 32px;
    overflow-y: auto;
    flex: 1;
}

.hc-modal-body::-webkit-scrollbar {
    width: 6px;
}

.hc-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.hc-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.hc-modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ---- Article inside card ---- */
.hc-article {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.hc-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hc-article h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.hc-article p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
}

/* ---- Search highlight ---- */
.hc-highlight {
    background: rgba(255,184,77,0.35);
    border-radius: 3px;
    padding: 0 2px;
}

.hc-card.hc-card-dimmed {
    opacity: 0.4;
    pointer-events: none;
    transform: scale(0.98);
}

/* ---- Contact Banner ---- */
.hc-contact-section {
    background: #fff;
    padding: 64px 0 72px;
}

.hc-contact-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    border-radius: 20px;
    padding: 40px 48px;
    color: #fff;
}

.hc-contact-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFB84D;
}

.hc-contact-text {
    flex: 1;
}

.hc-contact-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hc-contact-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.hc-contact-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.hc-contact-btn {
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.hc-contact-btn-primary {
    background: #FFB84D;
    color: var(--dark-color);
}

.hc-contact-btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,184,77,0.4);
}

.hc-contact-btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
}

.hc-contact-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ---- Responsive Help Center ---- */
@media (max-width: 1024px) {
    .hc-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hc-banner {
        padding: 85px 0 40px;
    }
    .hc-banner h1 {
        font-size: 1.7rem;
    }
    .hc-banner p {
        font-size: 1rem;
    }
    .hc-search-box {
        max-width: 100%;
    }
    .hc-search-input {
        padding: 14px 18px;
        font-size: 0.93rem;
    }
    .hc-section {
        padding: 48px 0;
    }
    .hc-section-title {
        font-size: 1.5rem;
    }
    .hc-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hc-card-header {
        padding: 20px 18px;
        gap: 12px;
    }
    .hc-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .hc-card-icon svg {
        width: 26px;
        height: 26px;
    }
    .hc-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px;
    }
    .hc-modal-header {
        padding: 20px 20px 16px;
        gap: 12px;
    }
    .hc-modal-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .hc-modal-icon svg {
        width: 24px;
        height: 24px;
    }
    .hc-modal-title {
        font-size: 1.12rem;
    }
    .hc-modal-body {
        padding: 20px 20px 24px;
    }
    .hc-modal-overlay {
        padding: 12px;
    }
    .hc-contact-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 20px;
    }
    .hc-contact-actions {
        flex-direction: column;
        width: 100%;
    }
    .hc-contact-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hc-banner {
        padding: 80px 0 32px;
    }
    .hc-banner h1 {
        font-size: 1.4rem;
    }
    .hc-card-title-area h3 {
        font-size: 1.02rem;
    }
}

/* ===============================================
   320px — ULTRA SMALL PHONES
   =============================================== */
@media (max-width: 360px) {

    /* --- Global --- */
    .container {
        padding: 0 12px;
    }

    /* --- Header --- */
    .logo-img {
        height: 30px;
    }

    .search-input {
        padding: 9px 10px;
        font-size: 12px;
    }

    .search-input::placeholder {
        font-size: 11px;
    }

    .search-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .locale-toggle {
        padding: 6px 8px;
        font-size: 12px;
        gap: 5px;
    }

    .locale-icon {
        font-size: 16px;
    }

    .locale-panel {
        width: 280px;
        right: -40px;
    }

    .locale-panel-section {
        padding: 16px 14px;
    }
}

/* ==================== AUTH PAGES (Registro / Login) ==================== */
.auth-section {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2e 0%, #1a3352 40%, #274e7d 100%);
}

.auth-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 44px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.auth-card-login {
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-row {
    display: flex;
    gap: 14px;
}

.auth-form-row .auth-field {
    flex: 1;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dce3eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-color);
    background: #f9fbfd;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 78, 125, 0.12);
    background: #fff;
}

.auth-field input::placeholder {
    color: #b0b8c4;
}

/* Password wrapper */
.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper input {
    padding-right: 44px;
}

.auth-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 4px;
    display: flex;
    align-items: center;
}

.auth-toggle-pw:hover {
    color: var(--primary-color);
}

/* Checkbox */
.auth-checkbox-field {
    margin-top: 2px;
}

.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 1.4;
}

.auth-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.auth-checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Errors */
.auth-errors {
    background: #fff0f0;
    border: 1px solid #ffc4c4;
    border-radius: 8px;
    padding: 12px 16px;
    color: #c0392b;
    font-size: 0.88rem;
}

.auth-errors p {
    margin: 4px 0;
}

/* Submit */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 78, 125, 0.35);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner inside button */
.auth-submit-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -8px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 5px;
    flex: 1;
    border-radius: 3px;
    background: #dce3eb;
    transition: background 0.3s;
}

.strength-bar.active-weak { background: #e74c3c; }
.strength-bar.active-fair { background: #f39c12; }
.strength-bar.active-good { background: #27ae60; }
.strength-bar.active-strong { background: #2ecc71; }

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.strength-text.weak { color: #e74c3c; }
.strength-text.fair { color: #f39c12; }
.strength-text.good { color: #27ae60; }
.strength-text.strong { color: #2ecc71; }

/* Verification Panel */
.auth-verify-panel {
    text-align: center;
}

.verify-icon {
    margin-bottom: 12px;
}

.verify-email-display {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-top: 4px;
}

.auth-code-input {
    text-align: center;
    font-size: 1.8rem !important;
    font-weight: 700;
    letter-spacing: 10px;
    padding: 14px !important;
    font-family: 'Courier New', monospace;
}

/* Forgot password panels */
.auth-forgot-panel {
    margin-top: 0;
}

/* Options row (remember me + forgot) */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.auth-forgot-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* Success message */
.auth-success {
    background: #eafaf1;
    border: 1px solid #a3d9b1;
    border-radius: 8px;
    padding: 12px 16px;
    color: #27ae60;
    font-size: 0.88rem;
    text-align: center;
}

/* Success Modal Overlay */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.success-modal-overlay.show {
    opacity: 1;
}

.success-modal {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.success-modal-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(39, 78, 125, 0.3);
}

.success-modal-icon svg {
    width: 40px;
    height: 40px;
}

.success-modal-checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s 0.4s ease forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-modal h2 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin: 0 0 10px;
    font-weight: 800;
}

.success-modal p {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.success-modal .success-modal-name {
    color: var(--primary-color);
    font-weight: 700;
}

.success-modal-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.success-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 78, 125, 0.35);
}

@media (max-width: 480px) {
    .success-modal {
        padding: 36px 24px 28px;
    }
    .success-modal h2 {
        font-size: 1.3rem;
    }
    .success-modal-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }
    .success-modal-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ==================== PLAN SELECTION PAGE ==================== */
.plan-section {
    padding-top: 100px;
}

.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header h1 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.plan-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.plan-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.plan-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.18);
}

.plan-card.featured {
    border: 2px solid #d4af37;
}

.plan-card-ribbon {
    position: absolute;
    top: 16px;
    right: -8px;
    background: #274e7d;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px 4px 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px 0 0 4px;
    z-index: 2;
}

.plan-card-ribbon.premier {
    background: linear-gradient(135deg, #d4af37, #b8942e);
}

.plan-card-header {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    color: #fff;
}

.plan-card-header.premier {
    background: linear-gradient(135deg, #1a3a5c, #0f2540);
}

.plan-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.plan-currency {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.9;
}

.plan-amount {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
}

.plan-period {
    font-size: 0.95rem;
    opacity: 0.8;
}

.plan-features {
    list-style: none;
    padding: 24px;
    margin: 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.plan-features li svg {
    flex-shrink: 0;
}

.plan-feature-disabled {
    opacity: 0.5;
}

.plan-select-btn {
    display: block;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 14px;
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-select-btn.premier {
    background: linear-gradient(135deg, #d4af37, #b8942e);
    color: #1a1a1a;
}

.plan-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,78,125,0.35);
}

.plan-skip-row {
    text-align: center;
    margin-top: 28px;
}

.plan-skip-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.plan-skip-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Payment Card */
.plan-payment-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 36px;
}

.plan-payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.plan-payment-header h2 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 0;
}

.plan-back-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    transition: all 0.2s;
}

.plan-back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.plan-order-summary {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.plan-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.plan-order-total {
    border-top: 1px solid #e0e3ea;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.05rem;
}

.plan-order-total strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card-input-wrapper {
    position: relative;
}

.card-input-wrapper input {
    padding-right: 90px;
}

.card-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0.4;
}

.card-icons .card-icon.active {
    opacity: 1;
}

.plan-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: #27ae60;
}

/* ==================== ACCOUNT DASHBOARD ==================== */
.acct-section {
    min-height: 100vh;
    padding: 100px 0 60px;
    background: #f0f2f7;
    position: relative;
    overflow: hidden;
}
.acct-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.acct-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}
.acct-bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    right: -150px;
}
.acct-bg-shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -150px;
    left: -100px;
}

/* Layout */
.acct-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* Sidebar */
.acct-sidebar {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.acct-sidebar-profile {
    padding: 32px 24px 20px;
    text-align: center;
    border-bottom: 1px solid #eef0f5;
}
.acct-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(39,78,125,0.25);
    overflow: hidden;
}
.acct-avatar.has-photo {
    background: none;
}
.acct-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Header user avatar */
.header-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.mobile-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile photo upload area */
.profile-photo-area {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 8px 0;
}
.profile-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(39,78,125,0.18);
}
.profile-photo-initials {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
}
.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.profile-photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 22px;
    font-size: 0.85rem;
}
.acct-btn-outline {
    background: transparent;
    border: 2px solid #c0392b;
    color: #c0392b;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.acct-btn-outline:hover {
    background: #c0392b;
    color: #fff;
}
.profile-photo-hint {
    font-size: 0.78rem;
    color: var(--medium-gray);
    margin: 0;
}
.acct-sidebar-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 4px;
}
.acct-sidebar-email {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin: 0 0 14px;
    word-break: break-all;
}
.acct-plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #e8ecf1;
    color: #666;
}
.acct-plan-badge.basica {
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    color: #fff;
}
.acct-plan-badge.premier {
    background: linear-gradient(135deg, #d4af37, #b8942e);
    color: #1a1a1a;
}

/* Sidebar Nav */
.acct-sidebar-nav {
    padding: 12px 0;
}
.acct-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.acct-nav-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}
.acct-nav-item.active {
    background: #f0f4ff;
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}
.acct-nav-item svg {
    flex-shrink: 0;
}
.acct-nav-divider {
    border: none;
    border-top: 1px solid #eef0f5;
    margin: 4px 0;
}
.acct-nav-logout {
    color: #c0392b !important;
}
.acct-nav-logout:hover {
    background: #fef5f5 !important;
}

/* Main Content */
.acct-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.acct-page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0 0 6px;
}
.acct-page-desc {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Cards */
.acct-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px 32px;
}
.acct-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f5;
}
.acct-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}
.acct-card-icon.security {
    background: #fef3e0;
    color: #e67e22;
}
.acct-card-icon.payment {
    background: #e8f5e9;
    color: #27ae60;
}
.acct-card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 2px;
}
.acct-card-header p {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Forms */
.acct-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.acct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.acct-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.acct-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #dce1ea;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--dark-color);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.acct-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39,78,125,0.1);
}
.acct-field input.input-disabled {
    background: #f5f6f8;
    color: var(--medium-gray);
    cursor: not-allowed;
}
.acct-input-icon {
    position: relative;
}
.acct-input-icon svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    pointer-events: none;
}
.acct-input-icon input {
    padding-right: 42px;
}
.acct-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.acct-btn-primary {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #1a3a5c);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.acct-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,78,125,0.3);
}

/* Plan Banner */
.plan-banner {
    border-radius: 18px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.plan-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #274e7d, #1a3a5c);
    z-index: 0;
}
.plan-banner.basica::before {
    background: linear-gradient(135deg, #274e7d 0%, #1a3a5c 50%, #0d2137 100%);
}
.plan-banner.premier::before {
    background: linear-gradient(135deg, #d4af37 0%, #b8942e 40%, #8a6e1f 100%);
}
.plan-banner.premier {
    color: #1a1a1a;
}
.plan-banner-decor {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -100px;
    right: -60px;
    z-index: 0;
}
.plan-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.plan-banner-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.plan-banner-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
    animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}
.plan-banner-price {
    text-align: right;
}
.plan-banner-price .price-amount {
    font-size: 2rem;
    font-weight: 800;
}
.plan-banner-price .price-period {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Plan Details Grid */
.plan-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.plan-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fd;
    border-radius: 12px;
    transition: transform 0.2s;
}
.plan-detail-item:hover {
    transform: translateY(-2px);
}
.plan-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8ecf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}
.plan-detail-label {
    font-size: 0.76rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.plan-detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Plan Actions */
.plan-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.plan-actions-row .acct-btn-primary {
    flex: 1;
    min-width: 160px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.plan-actions-row .acct-btn-upgrade {
    flex: 1;
    min-width: 160px;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #d4af37, #b8942e);
    color: #1a1a1a;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.plan-actions-row .acct-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}
.plan-actions-row .acct-btn-danger {
    padding: 12px 32px;
    border: 1.5px solid #e0e3ea;
    border-radius: 10px;
    background: #fff;
    color: #c0392b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.plan-actions-row .acct-btn-danger:hover {
    background: #fef5f5;
    border-color: #c0392b;
}

/* Account Table */
.acct-table-wrap {
    overflow-x: auto;
    margin: -4px -4px 0;
    padding: 0 4px;
}
.acct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.acct-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--medium-gray);
    border-bottom: 2px solid #eef0f5;
}
.acct-table tbody tr {
    transition: background 0.15s;
}
.acct-table tbody tr:hover {
    background: #f8f9fd;
}
.acct-table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: var(--dark-color);
}
.acct-table .tx-amount {
    font-weight: 700;
}
.acct-table .tx-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.acct-table .tx-status.completed {
    background: #e8f5e9;
    color: #27ae60;
}
.acct-table .tx-status.pending {
    background: #fff3e0;
    color: #e67e22;
}

/* Empty State */
.acct-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--medium-gray);
}
.acct-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}
.acct-empty-state p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.acct-empty-hint {
    font-size: 0.82rem;
    display: block;
    color: #aaa;
}

/* Payment Card List */
.pay-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid #e8ecf1;
    border-radius: 14px;
    transition: all 0.2s;
    background: #fff;
}
.pay-card-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pay-card-item.default {
    border-color: var(--primary-color);
    background: #f8faff;
}
.pay-card-type-icon {
    width: 52px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.pay-card-type-icon.visa { background: linear-gradient(135deg, #1a1f71, #2d3aba); }
.pay-card-type-icon.mastercard { background: linear-gradient(135deg, #333, #555); }
.pay-card-type-icon.amex { background: linear-gradient(135deg, #2e77bc, #4a9fe5); }
.pay-card-type-icon.paypal { background: linear-gradient(135deg, #003087, #009cde); }
.pay-card-info {
    flex: 1;
}
.pay-card-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}
.pay-card-exp {
    font-size: 0.78rem;
    color: var(--medium-gray);
    margin-top: 2px;
}
.pay-card-default-tag {
    font-size: 0.68rem;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pay-card-actions {
    display: flex;
    gap: 6px;
}
.pay-card-action-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e0e3ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    transition: all 0.2s;
}
.pay-card-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4ff;
}
.pay-card-action-btn.delete:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fef5f5;
}

/* Security Card on Payments */
.pay-security-card {
    padding: 24px 28px;
    background: #f9fafb;
    border: 1px solid #e8ecf1;
}
.pay-security-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.pay-security-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-security-row h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 4px;
}
.pay-security-row p {
    font-size: 0.82rem;
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.5;
}

/* ===== Deposit / Balance Card ===== */
.deposit-card {
    border-left: 4px solid var(--primary-color);
}
.deposit-icon svg {
    color: var(--primary-color);
}
.deposit-balance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.deposit-balance-box {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}
.deposit-balance-label {
    display: block;
    font-size: 0.78rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}
.deposit-balance-amount {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-color);
}
.deposit-balance-amount.deposit-secondary {
    color: var(--medium-gray);
    font-size: 1.15rem;
}
.deposit-balance-amount.deposit-highlight {
    color: var(--primary-color);
}
.deposit-form-wrapper {
    border-top: 1px solid #eef1f5;
    padding-top: 20px;
}
.deposit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}
.deposit-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}
.deposit-field input,
.deposit-field select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dde1e8;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}
.deposit-field input:focus,
.deposit-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.deposit-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 4px;
}
.deposit-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.deposit-quick-btn {
    padding: 6px 16px;
    border: 2px solid #dde1e8;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.2s;
}
.deposit-quick-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4ff;
}
.deposit-quick-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.deposit-submit-btn {
    width: 100%;
    max-width: 320px;
}
.deposit-invite-msg {
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
    padding: 20px 0;
}
/* Header dropdown balance */
.user-dropdown-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin: 0 -4px 4px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 0.82rem;
}
.user-dropdown-balance-label {
    color: var(--medium-gray);
    font-weight: 500;
}
.user-dropdown-balance-amount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .deposit-balance-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .deposit-form-row {
        grid-template-columns: 1fr;
    }
}

/* Add payment method button */
.pay-add-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}
.pay-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: 2px dashed #cfd6e0;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pay-add-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

/* Add Method Modal */
.add-method-modal {
    max-width: 460px;
    padding: 32px 36px 28px;
    text-align: left;
    position: relative;
}
.add-method-modal h2 {
    text-align: center;
    margin-bottom: 20px;
}
.add-method-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}
.add-method-close:hover {
    background: #f0f0f0;
    color: var(--dark-color);
}
.add-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.add-method-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e4ea;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s;
}
.add-method-tab:hover {
    border-color: #b0b8c4;
}
.add-method-tab.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4ff;
}
.paypal-form-icon {
    text-align: center;
    margin-bottom: 16px;
}
.paypal-submit-btn {
    background: linear-gradient(135deg, #003087, #009cde) !important;
}

/* Plan page — Method tabs (Card / PayPal) */
.plan-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.plan-method-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e4ea;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s;
}
.plan-method-tab:hover {
    border-color: #b0b8c4;
}
.plan-method-tab.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4ff;
}

/* Plan page — Saved methods selection */
.plan-section-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 12px;
}
.plan-saved-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.plan-saved-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e0e4ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.plan-saved-item:hover {
    border-color: #b0b8c4;
}
.plan-saved-item.selected {
    border-color: var(--primary-color);
    background: #f0f4ff;
}
.plan-saved-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cfd6e0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.plan-saved-item.selected .plan-saved-radio {
    border-color: var(--primary-color);
}
.plan-saved-item.selected .plan-saved-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--primary-color);
    border-radius: 50%;
}
.plan-saved-info {
    flex: 1;
}
.plan-saved-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark-color);
}
.plan-saved-detail {
    font-size: 0.78rem;
    color: var(--medium-gray);
    margin-top: 2px;
}
.plan-confirm-saved-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.plan-or-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.plan-or-divider::before,
.plan-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 80px);
    height: 1px;
    background: #dce3eb;
}
.plan-or-divider::before { left: 0; }
.plan-or-divider::after { right: 0; }
.plan-or-divider span {
    background: #fff;
    padding: 0 12px;
    font-size: 0.82rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Alert boxes inside acct forms */
.acct-card .error-box,
.acct-card .success-box {
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

/* ==================== ACCOUNT DASHBOARD RESPONSIVE ==================== */
@media (max-width: 920px) {
    .acct-layout {
        grid-template-columns: 1fr;
    }
    .acct-sidebar {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-radius: 14px;
    }
    .acct-sidebar-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        border-bottom: none;
        border-right: 1px solid #eef0f5;
        text-align: left;
        min-width: 0;
        flex-shrink: 0;
    }
    .acct-sidebar-profile .acct-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin: 0;
    }
    .acct-sidebar-email,
    .acct-plan-badge {
        display: none;
    }
    .acct-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 2px;
        flex: 1;
    }
    .acct-nav-item {
        padding: 10px 14px;
        border-left: none;
        border-radius: 8px;
        font-size: 0.82rem;
    }
    .acct-nav-item.active {
        background: #f0f4ff;
        border-left: none;
    }
    .acct-nav-divider {
        display: none;
    }
    .plan-details-grid {
        grid-template-columns: 1fr;
    }
    .plan-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .plan-banner-price {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .acct-section {
        padding: 80px 0 40px;
    }
    .acct-sidebar {
        flex-direction: column;
    }
    .acct-sidebar-profile {
        border-right: none;
        border-bottom: 1px solid #eef0f5;
        width: 100%;
        justify-content: center;
    }
    .acct-sidebar-nav {
        width: 100%;
        justify-content: center;
    }
    .acct-card {
        padding: 20px 18px;
    }
    .acct-form-row {
        grid-template-columns: 1fr;
    }
    .plan-banner {
        padding: 28px 20px;
    }
    .plan-banner-name {
        font-size: 1.2rem;
    }
    .plan-banner-price .price-amount {
        font-size: 1.5rem;
    }
    .plan-actions-row {
        flex-direction: column;
    }
    .acct-table {
        font-size: 0.78rem;
    }
    .acct-table thead th,
    .acct-table tbody td {
        padding: 10px 8px;
    }
    .pay-card-item {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ==================== MANAGE PLAN PAGE (legacy) ==================== */
.manage-plan-wrapper {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* User Menu Badge */
.user-menu-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ==================== CHATBOT WIDGET ==================== */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(39, 78, 125, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(39, 78, 125, 0.55);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-toggle .chatbot-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.chatbot-toggle.active .chatbot-icon-chat {
    opacity: 0;
    transform: rotate(90deg);
}

.chatbot-toggle.active .chatbot-icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Indicador de notificación */
.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chatbot-toggle.active .chatbot-badge {
    display: none;
}

/* Ventana del chat */
.chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header del chat */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chatbot-close-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chatbot-close-btn:hover {
    background: rgba(255,255,255,0.2);
}
@media (max-width: 480px) {
    .chatbot-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.chatbot-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-header-info p {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 2px 0 0 0;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    min-height: 200px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Burbujas de mensaje */
.chatbot-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.87rem;
    line-height: 1.5;
    animation: chatbot-fadeIn 0.3s ease;
    word-wrap: break-word;
}

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

.chatbot-msg.bot {
    background: var(--light-gray);
    color: var(--dark-gray);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-msg.bot a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.chatbot-msg.bot a:hover {
    text-decoration: underline;
}

.chatbot-msg.user {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Indicador de escribiendo */
.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: var(--light-gray);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 60px;
}

.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: #999;
    border-radius: 50%;
    animation: chatbot-typingDot 1.4s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Sugerencias rápidas */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-self: flex-start;
    max-width: 85%;
}

.chatbot-suggestion-btn {
    background: white;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chatbot-suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Input del chat */
.chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
}

.chatbot-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.87rem;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    resize: none;
    max-height: 80px;
    line-height: 1.4;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
}

.chatbot-input::placeholder {
    color: #aaa;
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: var(--dark-color);
    transform: scale(1.05);
}

.chatbot-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.chatbot-send-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Quick actions iniciales */
.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

/* ==================== INVENTORY & AUCTION PAGES ==================== */

/* ── Page Banner ── */
.inv-banner, .auc-banner {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, #0d1a2d 100%);
    padding: 60px 0 50px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.inv-banner-overlay, .auc-banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(51,102,170,0.3) 0%, transparent 60%);
    pointer-events: none;
}
.inv-banner-content, .auc-banner-content {
    position: relative;
    z-index: 1;
}
.inv-banner h1, .auc-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.inv-banner p, .auc-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Live indicator */
.auc-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
}
.auc-live-dot {
    width: 10px; height: 10px;
    background: #e53e3e;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Inventory Layout ── */
.inv-main {
    padding: 30px 0 60px;
}
.inv-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* ── Sidebar Filters ── */
.inv-filters {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 130px;
    height: fit-content;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}
.inv-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.inv-filters-header h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
}
.inv-filters-clear {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.85rem;
}
.inv-filters-clear:hover { text-decoration: underline; }

.inv-filter-group {
    margin-bottom: 16px;
}
.inv-filter-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}
.inv-filter-input, .inv-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s;
}
.inv-filter-input:focus, .inv-filter-select:focus {
    border-color: var(--accent-color);
    outline: none;
}
.inv-filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inv-filter-range .inv-filter-input {
    flex: 1;
}
.inv-filter-apply {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.inv-filter-apply:hover {
    background: var(--accent-color);
}

/* ── Toolbar ── */
.inv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.inv-toolbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 0.95rem;
}
.inv-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}
.inv-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.inv-toolbar-sort select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ── Vehicle Grid ── */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ── Vehicle Card ── */
.vcard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.vcard-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.vcard-img {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #f7fafc);
    overflow: hidden;
}
.vcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vcard-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.vcard-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcard-fav-btn:hover { transform: scale(1.15); }
.vcard-fav-active { background: #fee2e2; }

.vcard-body {
    padding: 14px 16px 18px;
}
.vcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.vcard-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
}
.vcard-badge-ok { background: #d1fae5; color: #065f46; }
.vcard-badge-warn { background: #fee2e2; color: #991b1b; }
.vcard-lote {
    font-size: 0.8rem;
    color: #94a3b8;
}
.vcard-title {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.3;
}
.vcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
}
.vcard-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.vcard-est {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
}
.vcard-buy {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Auction badge on card */
.vcard-auction {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.vcard-auc-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.78rem;
}
.vcard-auc-sched {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #2563eb;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.78rem;
}
.vcard-auc-price { font-weight: 600; color: var(--dark-color); }
.vcard-auc-bids { color: #94a3b8; }

/* ── Pagination ── */
.inv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
}
.inv-page-btn {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.inv-page-btn:hover { background: #f1f5f9; border-color: var(--accent-color); }
.inv-page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.inv-page-dots { padding: 0 4px; color: #94a3b8; }

/* ── Empty State ── */
.inv-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.inv-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}
.inv-empty-state h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}
.inv-empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}
.inv-empty-state p a { color: var(--accent-color); }
.inv-empty-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
    transition: background 0.2s;
}
.inv-empty-btn:hover { background: var(--accent-color); }
.inv-empty-btn-alt {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.inv-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1rem;
}

/* ── Alerts ── */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alerts-section-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 30px 0 16px;
}

/* ── Alert Create Card ── */
.alert-create-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 10px;
}
.alert-create-card h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 18px;
}
.alert-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.alert-form-field {
    flex: 1;
}
.alert-form-field label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}
.alert-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

/* ── Alert Cards (saved-card) ── */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.saved-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.saved-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    border-color: #cbd5e1;
}
.saved-card-inactive {
    opacity: 0.55;
    background: #fafafa;
}
.saved-card-info {
    flex: 1;
    min-width: 0;
}
.saved-card-info h4 {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.saved-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.saved-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}
.saved-date {
    font-size: 0.8rem;
    color: #94a3b8;
}
.saved-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 16px;
    align-items: flex-start;
}
.saved-run-btn,
.saved-del-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.saved-run-btn {
    background: #f0f4ff;
    color: #6c63ff;
    border-color: #ddd8ff;
}
.saved-run-btn:hover {
    background: #6c63ff;
    color: white;
}
.saved-del-btn {
    background: #fff5f5;
    color: #ef4444;
    border-color: #fee2e2;
}
.saved-del-btn:hover {
    background: #ef4444;
    color: white;
}

@media (max-width: 640px) {
    .saved-card {
        flex-direction: column;
        gap: 12px;
    }
    .saved-card-actions {
        margin-left: 0;
        width: 100%;
    }
    .saved-run-btn,
    .saved-del-btn {
        flex: 1;
        text-align: center;
    }
}

/* ── Calendar ── */
.cal-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cal-header h2 {
    font-size: 1.4rem;
    color: var(--dark-color);
}
.cal-nav-btn {
    width: 40px; height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}
.cal-nav-btn:hover { background: #f1f5f9; border-color: var(--accent-color); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.cal-day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 8px 0;
    text-transform: uppercase;
}
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-cell {
    min-height: 70px;
    padding: 6px;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}
.cal-cell-empty { border-color: transparent; }
.cal-cell-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}
.cal-cell-today {
    border-color: var(--accent-color);
    background: #f0f6ff;
}
.cal-cell-today .cal-cell-num { color: var(--accent-color); }
.cal-cell-has-auctions {
    cursor: pointer;
    background: #fafbff;
}
.cal-cell-has-auctions:hover {
    background: #eef2ff;
    border-color: var(--accent-color);
}
.cal-cell-selected {
    background: #dbeafe !important;
    border-color: var(--primary-color) !important;
}
.cal-cell-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.cal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.cal-dot-live { background: #dc2626; }
.cal-dot-sched { background: #2563eb; }
.cal-cell-count {
    font-size: 0.72rem;
    color: #64748b;
}
.cal-detail {
    margin-top: 10px;
}
.cal-detail h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* ── Auction Detail ── */
.auc-detail-breadcrumb {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 18px;
}
.auc-detail-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}
.auc-detail-breadcrumb a:hover { text-decoration: underline; }

.auc-detail-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}
.auc-detail-img {
    background: linear-gradient(135deg, #e2e8f0, #f7fafc);
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auc-detail-img img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}
.auc-img-placeholder {
    font-size: 5rem;
    padding: 60px;
}
.auc-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.auc-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}
.auc-thumb:hover { opacity: 1; }
.auc-thumb.active { border-color: var(--accent-color); opacity: 1; }
.auc-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.auc-spec {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}
.auc-spec span {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.auc-spec strong {
    font-size: 0.95rem;
    color: var(--dark-color);
}
.auc-spec p {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 4px;
}
.auc-spec-full {
    grid-column: 1 / -1;
}

/* Bid Card */
.auc-bid-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 130px;
}
.auc-bid-card h2 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}
.auc-bid-status {
    margin-bottom: 16px;
}
.auc-bid-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.auc-bid-price-item {
    background: #f8fafc;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
}
.auc-bid-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.auc-bid-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-color);
}
.auc-bid-timer {
    color: #dc2626;
    font-family: 'Courier New', monospace;
}
.auc-timer-ended { color: #94a3b8; }

.auc-bid-info {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.auc-bid-info strong { color: var(--dark-color); }

.auc-bid-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.auc-bid-input-wrap:focus-within { border-color: var(--accent-color); }
.auc-bid-currency {
    padding: 0 14px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
}
.auc-bid-input {
    flex: 1;
    border: none;
    padding: 14px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    background: transparent;
}
.auc-bid-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.auc-bid-btn:hover { background: linear-gradient(135deg, #b91c1c, #991b1b); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(220,38,38,0.3); }

.auc-bid-limit-info {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 6px;
    padding: 0 2px;
    line-height: 1.4;
}
.auc-bid-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.auc-bid-login {
    text-align: center;
    padding: 20px 0;
}
.auc-bid-login p {
    color: #64748b;
    margin-bottom: 12px;
}

.auc-bid-history {
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
.auc-bid-history h4 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 12px;
}
.auc-bid-list {
    max-height: 250px;
    overflow-y: auto;
}
.auc-bid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.85rem;
}
.auc-bid-postor { color: #64748b; }
.auc-bid-monto { font-weight: 700; color: var(--dark-color); }
.auc-bid-fecha { color: #94a3b8; font-size: 0.78rem; }
.auc-no-bids { text-align: center; color: #94a3b8; padding: 20px 0; }

.auc-section-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 30px 0 20px;
}

/* ── Mis Subastas: Tabs, Stats, Cards ── */
.auc-my-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.auc-my-tab {
    padding: 8px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.auc-my-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.auc-my-tab.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    font-weight: 600;
}

.auc-my-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.auc-my-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 100px;
    flex: 1;
}
.auc-my-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}
.auc-stat-live { color: #dc2626; }
.auc-stat-sched { color: #2563eb; }
.auc-stat-done { color: #16a34a; }
.auc-stat-won { color: #d97706; }
.auc-my-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.vcard-auc-done {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.78rem;
}

.auc-my-won-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #d97706;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
}

.auc-my-card-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

/* ── Responsive: Inventory & Auction Pages ── */
@media (max-width: 900px) {
    .inv-layout {
        grid-template-columns: 1fr;
    }
    .inv-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
        padding: 24px;
    }
    .inv-filters-open {
        display: block;
    }
    .inv-filter-toggle {
        display: flex;
    }
    .auc-detail-layout {
        grid-template-columns: 1fr;
    }
    .auc-bid-card {
        position: static;
    }
}
@media (max-width: 600px) {
    .inv-banner h1, .auc-banner h1 { font-size: 1.6rem; }
    .inv-grid { grid-template-columns: 1fr; }
    .auc-detail-specs { grid-template-columns: 1fr; }
    .alert-form-row { flex-direction: column; gap: 10px; }
    .cal-cell { min-height: 50px; }
    .auc-bid-prices { grid-template-columns: 1fr; }
    .auc-my-stats { gap: 8px; }
    .auc-my-stat { min-width: 70px; padding: 10px 12px; }
    .auc-my-stat-num { font-size: 1.2rem; }
    .auc-my-tabs { gap: 6px; }
    .auc-my-tab { padding: 6px 14px; font-size: 0.82rem; }
}

.chatbot-quick-btn {
    background: white;
    border: 1.5px solid #e0e0e0;
    color: var(--dark-gray);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-quick-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(39, 78, 125, 0.04);
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .chatbot-messages {
        max-height: calc(100vh - 180px);
        max-height: calc(100dvh - 180px);
    }

    .chatbot-toggle {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
}

/* Ajustar posición scroll-top-btn */
.scroll-top-btn {
    left: 24px;
}

.user-menu-badge.basica {
    background: rgba(39,78,125,0.2);
    color: #a8c4e0;
}

.user-menu-badge.premier {
    background: rgba(212,175,55,0.25);
    color: #d4af37;
}

.user-menu-badge.invitado {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.user-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

@media (max-width: 700px) {
    .plan-cards-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .plan-header h1 {
        font-size: 1.6rem;
    }
    .plan-payment-card {
        padding: 24px 20px;
    }
}

/* Profile legacy helpers */
.input-disabled {
    background: #f0f2f5 !important;
    color: var(--medium-gray) !important;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== LOGGED-IN USER MENU ==================== */
.user-menu-wrapper {
    position: relative;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-user-menu:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.open {
    display: block;
}

.user-dropdown-email {
    display: block;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--medium-gray);
    border-bottom: 1px solid #eee;
    word-break: break-all;
}

.user-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: #f5f7fa;
    color: #c0392b;
}

.mobile-user-name {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* ==================== AUTH RESPONSIVE ==================== */
@media (max-width: 600px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-form-row {
        flex-direction: column;
        gap: 18px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .locale-panel-section h4 {
        font-size: 14px;
    }

    .locale-panel-section p {
        font-size: 12px;
    }

    .locale-select {
        font-size: 13px;
        padding: 8px 10px;
    }

    .hamburger-label {
        font-size: 11px;
    }

    /* --- Hero --- */
    .hero h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-slide {
        padding: 20px 10px;
    }

    .hero-steps {
        padding: 14px 10px;
        gap: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-title {
        font-size: 14px;
    }

    .step p {
        font-size: 12px;
    }

    .btn-hero-cta {
        padding: 12px 20px;
        font-size: 13px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 12px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* --- Sections General --- */
    .section {
        padding: 48px 0;
    }

    .section h2 {
        font-size: 26px;
    }

    /* --- About --- */
    .content-text p {
        font-size: 14px;
    }

    .features li {
        font-size: 13px;
        padding: 8px 0;
    }

    .card-stat h3 {
        font-size: 32px;
    }

    .card-stat p {
        font-size: 13px;
    }

    /* --- Features --- */
    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* --- Models --- */
    .model-card {
        padding: 28px 16px;
    }

    .model-image {
        font-size: 40px;
    }

    .model-card h3 {
        font-size: 16px;
    }

    .model-card p {
        font-size: 13px;
    }

    /* --- Contact --- */
    .contact {
        padding: 40px 0;
    }

    .contact .container > h2 {
        font-size: 24px;
    }

    .contact-subtitle {
        font-size: 0.85rem;
    }

    .contact-content {
        gap: 18px;
        margin-top: 24px;
    }

    .contact-info-text {
        gap: 12px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    .contact-info-text p {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .contact-label {
        font-size: 0.68rem;
        letter-spacing: 0.6px;
    }

    .contact-cta-inner {
        padding: 28px 16px;
        border-radius: 14px;
    }

    .contact-cta-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }

    .contact-cta-icon svg {
        width: 30px;
        height: 30px;
    }

    .contact-cta h3 {
        font-size: 1.05rem;
    }

    .contact-cta-desc {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .contact-cta .btn-primary {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 30px 0;
    }

    .footer-logo-img {
        height: 48px;
    }

    .footer p {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* --- How It Works page --- */
    .how-banner-content h1 {
        font-size: 1.4rem;
    }

    .how-banner-content p {
        font-size: 0.85rem;
    }

    .how-section-title {
        font-size: 1.3rem;
    }

    .how-section-desc {
        font-size: 0.85rem;
    }

    .how-step-card {
        padding: 24px 16px;
    }

    .how-step-card h3 {
        font-size: 1rem;
    }

    .how-step-card p {
        font-size: 0.82rem;
    }

    .how-benefit-card {
        padding: 24px 16px;
    }

    .how-benefit-card h3 {
        font-size: 1rem;
    }

    .how-benefit-card p {
        font-size: 0.82rem;
    }

    .how-faq-question {
        padding: 16px 14px;
        font-size: 0.88rem;
    }

    .how-faq-answer p {
        font-size: 0.82rem;
        padding: 0 14px 16px;
    }

    .how-cta-content h2 {
        font-size: 1.3rem;
    }

    .how-cta-content p {
        font-size: 0.85rem;
    }

    .how-cta-btn-primary,
    .how-cta-btn-secondary {
        padding: 12px 24px;
        font-size: 0.88rem;
        width: 100%;
        text-align: center;
    }

    .how-payment-card {
        padding: 20px 14px;
    }

    .how-payment-card h3 {
        font-size: 0.95rem;
    }

    .how-payment-card p {
        font-size: 0.82rem;
    }

    .how-help-btn {
        padding: 12px 24px;
        font-size: 0.88rem;
        width: 100%;
        text-align: center;
    }

    /* --- Memberships page --- */
    .mem-banner h1 {
        font-size: 1.25rem;
    }

    .mem-banner p {
        font-size: 0.85rem;
    }

    .mem-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .mem-section-title {
        font-size: 1.3rem;
    }

    .mem-plan-card {
        padding: 24px 16px 22px;
    }

    .mem-plan-header h3 {
        font-size: 1.1rem;
    }

    .mem-price-amount {
        font-size: 1.9rem;
    }

    .mem-plan-features li {
        font-size: 0.82rem;
    }

    .mem-plan-btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .mem-table th,
    .mem-table td {
        padding: 10px 8px;
        font-size: 0.78rem;
    }

    .mem-detail-desc {
        font-size: 0.85rem;
    }

    .mem-detail-features li strong {
        font-size: 0.9rem;
    }

    .mem-detail-features li p {
        font-size: 0.82rem;
    }

    .mem-cta-content h2 {
        font-size: 1.3rem;
    }

    .mem-cta-content p {
        font-size: 0.85rem;
    }

    .mem-cta-btn {
        padding: 12px 24px;
        font-size: 0.88rem;
        width: 100%;
    }

    /* --- Help Center page --- */
    .hc-banner {
        padding: 75px 0 28px;
    }

    .hc-banner h1 {
        font-size: 1.2rem;
    }

    .hc-banner p {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .hc-search-input {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .hc-search-btn {
        padding: 0 16px;
    }

    .hc-section {
        padding: 36px 0;
    }

    .hc-section-title {
        font-size: 1.3rem;
    }

    .hc-section-desc {
        font-size: 0.88rem;
        margin-bottom: 32px;
    }

    .hc-categories-grid {
        gap: 12px;
    }

    .hc-card-header {
        padding: 16px 14px;
        gap: 10px;
    }

    .hc-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hc-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .hc-card-title-area h3 {
        font-size: 0.92rem;
    }

    .hc-card-summary {
        font-size: 0.78rem;
    }

    .hc-modal {
        border-radius: 14px;
    }

    .hc-modal-header {
        padding: 16px 14px 14px;
        gap: 10px;
    }

    .hc-modal-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .hc-modal-icon svg {
        width: 20px;
        height: 20px;
    }

    .hc-modal-title {
        font-size: 1rem;
    }

    .hc-modal-close {
        width: 34px;
        height: 34px;
    }

    .hc-modal-body {
        padding: 16px 14px 20px;
    }

    .hc-article h4 {
        font-size: 0.88rem;
    }

    .hc-article p {
        font-size: 0.82rem;
    }

    .hc-modal-overlay {
        padding: 8px;
    }

    .hc-contact-banner {
        padding: 26px 16px;
        border-radius: 14px;
        gap: 16px;
    }

    .hc-contact-icon {
        width: 60px;
        height: 60px;
    }

    .hc-contact-text h3 {
        font-size: 1.1rem;
    }

    .hc-contact-text p {
        font-size: 0.82rem;
    }

    .hc-contact-btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    /* --- Scroll to top --- */
    .scroll-top-btn {
        bottom: 14px;
        left: 14px;
        width: 40px;
        height: 40px;
    }

    .scroll-top-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== LEGAL PAGES (Privacidad / Términos) ==================== */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px 48px 56px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.legal-content .legal-updated {
    color: #7a8a9a;
    font-size: 0.92rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ecf0;
}
.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 36px 0 12px;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 8px;
}
.legal-content p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 12px;
}
.legal-content ul {
    margin: 8px 0 16px 24px;
    color: #444;
    line-height: 1.75;
}
.legal-content ul li {
    margin-bottom: 6px;
}
.legal-content strong {
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 20px 36px;
        border-radius: 12px;
    }
    .legal-content h2 {
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════
   NOTIFICATION BELL & PANEL
   ═══════════════════════════════════════════════ */
.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.notif-bell-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    position: relative;
    transition: transform 0.2s;
}
.notif-bell-btn:hover {
    transform: scale(1.15);
}
.notif-bell-btn svg {
    display: block;
}
.notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    z-index: 1000;
    overflow: hidden;
}
.notif-panel.open {
    display: flex;
    flex-direction: column;
}
.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.notif-panel-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}
.notif-mark-all {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.notif-mark-all:hover {
    text-decoration: underline;
}
.notif-panel-list {
    overflow-y: auto;
    flex: 1;
    max-height: 380px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #334155;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-unread {
    background: #eff6ff;
}
.notif-unread:hover {
    background: #dbeafe;
}
.notif-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-msg {
    display: block;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #334155;
}
.notif-unread .notif-msg {
    font-weight: 600;
    color: #1e293b;
}
.notif-time {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 3px;
}
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .notif-panel {
        width: calc(100vw - 20px);
        right: -50px;
    }
}

/* ═══════════════════════════════════════════════
   PRICE FLASH ANIMATION
   ═══════════════════════════════════════════════ */
@keyframes priceFlash {
    0% { background: transparent; }
    20% { background: #dcfce7; transform: scale(1.05); }
    100% { background: transparent; transform: scale(1); }
}
.price-flash {
    animation: priceFlash 1s ease;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════
   TIMER URGENCY
   ═══════════════════════════════════════════════ */
@keyframes urgentPulse {
    0%, 100% { color: #ef4444; }
    50% { color: #f97316; text-shadow: 0 0 8px rgba(239,68,68,0.4); }
}
.auc-timer-urgent {
    animation: urgentPulse 1s ease-in-out infinite;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════
   BID STATUS BADGES (Detail Page)
   ═══════════════════════════════════════════════ */
.auc-bid-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 8px;
}
.auc-bid-winning {
    background: #dcfce7;
    color: #16a34a;
}
.auc-bid-losing {
    background: #fef3c7;
    color: #d97706;
    animation: urgentPulse 2s ease-in-out infinite;
}
.auc-bid-won {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
}
.auc-bid-lost {
    background: #f1f5f9;
    color: #64748b;
}
.auc-bid-owner {
    background: #e0f2fe;
    color: #0369a1;
    display: block;
    text-align: center;
    margin-bottom: 12px;
}
.auc-seller-info {
    margin-top: 16px;
}
.auc-seller-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #334155;
}
.auc-seller-icon {
    font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════
   BID HISTORY TOP BID HIGHLIGHT
   ═══════════════════════════════════════════════ */
.auc-bid-top {
    background: linear-gradient(90deg, #fffbeb, #fef3c7);
    border-left: 3px solid #f59e0b;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   FINISHED AUCTIONS SECTION (subastas-hoy)
   ═══════════════════════════════════════════════ */
.auc-finished-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 10px;
}
.auc-finished-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.auc-finished-icon {
    font-size: 1.6rem;
}
.auc-finished-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.auc-finished-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}
.vcard-finished {
    opacity: 0.85;
    transition: opacity 0.2s;
}
.vcard-finished:hover {
    opacity: 1;
}
.vcard-finished-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   PROXY BIDDING
   ═══════════════════════════════════════════════ */
.auc-proxy-section {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.auc-proxy-toggle {
    background: none;
    border: 1px dashed #6c63ff;
    color: #6c63ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}
.auc-proxy-toggle:hover {
    background: #6c63ff;
    color: white;
}
.auc-proxy-form {
    margin-top: 12px;
    padding: 16px;
    background: #f8f7ff;
    border-radius: 10px;
    border: 1px solid #e8e6ff;
}
.auc-proxy-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}
.auc-proxy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #6c63ff, #5a54e0);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}
.auc-proxy-btn:hover { opacity: 0.9; }
.auc-proxy-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auc-proxy-status {
    margin-top: 8px;
}
.auc-proxy-active {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   BUY NOW
   ═══════════════════════════════════════════════ */
.auc-buynow-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #aaa;
    font-size: 0.85rem;
}
.auc-buynow-divider::before,
.auc-buynow-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}
.auc-buynow-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b35, #e85d26);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.auc-buynow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.4);
}
.auc-buynow-price {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════
   SHARE + VIEWER ROW
   ═══════════════════════════════════════════════ */
.auc-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.auc-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}
.auc-viewer-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: viewerPulse 2s ease-in-out infinite;
}
@keyframes viewerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.auc-share-btns {
    display: flex;
    gap: 6px;
}
.auc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.auc-share-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
    background: #f8f7ff;
}

/* ═══════════════════════════════════════════════
   ENDING SOON TOAST
   ═══════════════════════════════════════════════ */
.auc-ending-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.auc-ending-toast.show {
    transform: translateX(0);
}
.auc-ending-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    border-left: 4px solid #ff6b35;
    max-width: 360px;
}
.auc-ending-toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.auc-ending-toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.auc-ending-toast-text strong {
    color: #ff6b35;
    font-size: 0.9rem;
}
.auc-ending-toast-text span {
    font-size: 0.8rem;
    color: #666;
}
.auc-ending-toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.auc-ending-toast-close:hover {
    color: #333;
}

/* ═══════════════════════════════════════════════
   USER STATS DASHBOARD
   ═══════════════════════════════════════════════ */
.auc-stats-dashboard {
    margin-bottom: 24px;
}
.auc-dash-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 16px;
}
.auc-dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.auc-dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.auc-dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.auc-dash-icon {
    font-size: 1.4rem;
}
.auc-dash-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}
.auc-dash-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
}
@media (max-width: 768px) {
    .auc-dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════
   RECEIPT BUTTON
   ═══════════════════════════════════════════════ */
.auc-receipt-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6c63ff, #5a54e0);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.auc-receipt-btn:hover {
    opacity: 0.85;
}
.auc-receipt-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    transition: opacity 0.2s, transform 0.2s;
}
.auc-receipt-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ==================== SELL VEHICLE PAGE ==================== */

/* Banner */
.sell-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 60%, var(--accent-color) 100%);
    overflow: hidden;
}
.sell-banner-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="none"/><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>');
    pointer-events: none;
}
.sell-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
}
.sell-banner-content h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.sell-banner-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}
.sell-banner-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.sell-banner-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.92rem;
    font-weight: 600;
}
.sell-banner-badge svg {
    color: #FFB84D;
}

/* Section */
.sell-section {
    padding: 60px 0 80px;
    background: #f7f9fc;
}

/* Steps indicator */
.sell-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}
.sell-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    cursor: default;
}
.sell-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e5ec;
    color: #8a95a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #d0d7e0;
    transition: all .3s;
}
.sell-step span {
    font-size: 0.78rem;
    color: #8a95a5;
    font-weight: 600;
    transition: color .3s;
}
.sell-step.active .sell-step-number {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(39,78,125,.18);
}
.sell-step.active span {
    color: var(--dark-color);
}
.sell-step.completed .sell-step-number {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}
.sell-step.completed span {
    color: #27ae60;
}
.sell-step-line {
    flex: 1;
    height: 2px;
    background: #d0d7e0;
    margin: 0 10px;
    margin-bottom: 22px;
    max-width: 100px;
}

/* Card */
.sell-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px 44px;
}

/* Form */
.sell-form {
    width: 100%;
}
.sell-form-step {
    display: none;
    animation: sellFadeIn .35s ease;
}
.sell-form-step.active {
    display: block;
}
@keyframes sellFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sell-form-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.sell-form-subtitle {
    color: #5a6a7a;
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.sell-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.sell-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sell-field-full {
    grid-column: 1 / -1;
}
.sell-field label {
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 600;
}
.sell-field input,
.sell-field select,
.sell-field textarea {
    background: #f9fbfd;
    border: 2px solid #dce3eb;
    border-radius: 8px;
    color: var(--dark-gray);
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}
.sell-field input:focus,
.sell-field select:focus,
.sell-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39,78,125,.12);
    background: #fff;
}
.sell-field input.sell-field-error,
.sell-field select.sell-field-error,
.sell-field textarea.sell-field-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,.15);
}
.sell-field small {
    color: #8a95a5;
    font-size: 0.78rem;
}
.sell-field input::placeholder,
.sell-field textarea::placeholder {
    color: #aab3bf;
}
.sell-field textarea {
    resize: vertical;
    min-height: 100px;
}
.sell-odometer-row {
    display: flex;
    gap: 8px;
}
.sell-odometer-row input {
    flex: 1;
    background: #f9fbfd;
    border: 2px solid #dce3eb;
    border-radius: 8px;
    color: var(--dark-gray);
    padding: 12px 14px;
    font-size: 0.95rem;
}
.sell-odometer-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39,78,125,.12);
    background: #fff;
}
.sell-odo-unit {
    width: 70px;
    background: #f9fbfd;
    border: 2px solid #dce3eb;
    border-radius: 8px;
    color: var(--dark-gray);
    padding: 12px 8px;
    font-size: 0.95rem;
}

/* Nav buttons */
.sell-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 16px;
}
.sell-btn-prev,
.sell-btn-next {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.sell-btn-prev {
    background: #e8ecf1;
    color: var(--dark-color);
}
.sell-btn-prev:hover {
    background: #d5dbe3;
}
.sell-btn-next {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}
.sell-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39,78,125,.3);
}

/* Upload area */
.sell-upload-area {
    border: 2px dashed #c5cdd8;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    background: #f9fbfd;
}
.sell-upload-area:hover,
.sell-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(39,78,125,.04);
}
.sell-upload-icon {
    color: #8a95a5;
    margin-bottom: 12px;
}
.sell-upload-text {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 500;
}
.sell-upload-hint {
    color: #8a95a5;
    font-size: 0.82rem;
}
.sell-upload-input {
    display: none;
}

/* Image previews */
.sell-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.sell-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #eef1f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sell-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sell-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sell-preview-remove:hover {
    background: #e74c3c;
}
.sell-preview-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Summary */
.sell-summary {
    background: #f4f6fa;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 28px;
}
.sell-summary h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.sell-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sell-summary-item {
    display: flex;
    gap: 8px;
}
.sell-summary-label {
    color: #8a95a5;
    font-size: 0.88rem;
}
.sell-summary-value {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.88rem;
}

/* Submit button */
.sell-btn-submit {
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(39,78,125,.25);
}
.sell-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,78,125,.35);
}
.sell-btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* My listings section */
.sell-listings-section {
    padding: 60px 0 80px;
    background: #fff;
}
.sell-my-listings {
    max-width: 900px;
    margin: 0 auto;
}
.sell-my-listings h2 {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
}
.sell-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.sell-listing-card {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sell-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.sell-listing-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.sell-listing-info {
    padding: 16px;
}
.sell-listing-info h4 {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.sell-listing-lot {
    color: #8a95a5;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.sell-listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sell-listing-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.sell-listing-status.active {
    background: rgba(39,174,96,.1);
    color: #27ae60;
}
.sell-listing-status.scheduled {
    background: rgba(241,196,15,.12);
    color: #d4a10a;
}
.sell-listing-status.ended {
    background: #eef1f5;
    color: #8a95a5;
}
.sell-listing-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
}
.sell-listing-link {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.sell-listing-link:hover {
    text-decoration: underline;
}
.sell-no-listings {
    color: #8a95a5;
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sell-banner-content h1 {
        font-size: 1.8rem;
    }
    .sell-banner-content {
        padding: 80px 16px 40px;
    }
    .sell-banner-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .sell-section {
        padding: 40px 0 60px;
    }
    .sell-card {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .sell-form-grid {
        grid-template-columns: 1fr;
    }
    .sell-summary-grid {
        grid-template-columns: 1fr;
    }
    .sell-steps {
        gap: 0;
    }
    .sell-step {
        min-width: 60px;
    }
    .sell-step span {
        font-size: 0.7rem;
    }
    .sell-step-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .sell-upload-area {
        padding: 30px 15px;
    }
    .sell-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
    .sell-my-listings h2 {
        font-size: 1.4rem;
    }
}

/* =====================================================
   ORDERS / CHECKOUT / MIS COMPRAS SYSTEM
   ===================================================== */

/* Banner */
.ord-banner {
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 60%, var(--accent-color) 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
}
.ord-banner-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.ord-banner-content {
    position: relative;
    z-index: 2;
}
.ord-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.ord-banner p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Section */
.ord-section {
    min-height: 60vh;
    padding: 50px 0 60px;
    background: #f0f2f7;
    position: relative;
    overflow: hidden;
}
.ord-section-list {
    padding-top: 40px;
}
.ord-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ord-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}
.ord-bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -150px;
    right: -100px;
}
.ord-bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    bottom: -100px;
    left: -80px;
}

/* Breadcrumb */
.ord-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}
.ord-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.ord-breadcrumb a:hover {
    text-decoration: underline;
}
.ord-breadcrumb span {
    color: #999;
}

/* Loading */
.ord-loading {
    text-align: center;
    padding: 80px 20px;
}
.ord-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: ordSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes ordSpin {
    to { transform: rotate(360deg); }
}
.ord-loading p {
    color: #666;
    font-size: 1rem;
}

/* ── Checkout Layout ── */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.checkout-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 32px;
}
.checkout-card h2 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-card h2 .icon {
    font-size: 1.5rem;
}

/* Vehicle Summary Card */
.checkout-vehicle {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f7f9fc;
    border-radius: 12px;
    margin-bottom: 24px;
}
.checkout-vehicle img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.checkout-vehicle-info h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 6px;
}
.checkout-vehicle-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 3px;
}
.checkout-vehicle-info .lote-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
}

/* Cost Breakdown */
.checkout-cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.checkout-cost-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.checkout-cost-table tr:last-child {
    border-bottom: none;
}
.checkout-cost-table td {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
}
.checkout-cost-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--dark-color);
}
.checkout-cost-table .total-row td {
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    border-top: 2px solid var(--primary-color);
}
.checkout-cost-table .saldo-row td {
    color: #27ae60;
}
.checkout-cost-table .due-row td {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Deadline */
.checkout-deadline {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #c0392b;
}
.checkout-deadline.ok {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #27ae60;
}

/* Saldo Toggle */
.checkout-saldo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f8ff;
    border: 1px solid #bdd8f1;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    cursor: pointer;
}
.checkout-saldo-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-color);
}
.checkout-saldo-toggle .saldo-amount {
    font-weight: 700;
    color: var(--primary-color);
}

/* Payment Method Selection */
.checkout-methods {
    margin-bottom: 24px;
}
.checkout-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.checkout-method-option:hover {
    border-color: var(--primary-color);
    background: #f7f9fc;
}
.checkout-method-option.selected {
    border-color: var(--primary-color);
    background: #f0f4ff;
}
.checkout-method-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}
.checkout-method-label {
    flex: 1;
}
.checkout-method-label strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-color);
}
.checkout-method-label span {
    font-size: 0.8rem;
    color: #888;
}

/* New Card Form */
.checkout-card-form {
    padding: 20px;
    background: #f7f9fc;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}
.checkout-card-form.visible {
    display: block;
}
.checkout-input-group {
    margin-bottom: 14px;
}
.checkout-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.checkout-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.checkout-input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 78, 125, 0.1);
}
.checkout-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Pay Button */
.checkout-pay-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}
.checkout-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 78, 125, 0.3);
}
.checkout-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Already paid / Expired states */
.checkout-status-card {
    text-align: center;
    padding: 40px;
}
.checkout-status-card .status-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.checkout-status-card h2 {
    justify-content: center;
}
.checkout-status-card p {
    color: #666;
    margin-bottom: 20px;
}
.checkout-status-card .btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.checkout-status-card .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── Mis Compras Cards ── */
.purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}
.purchase-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.purchase-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.purchase-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.purchase-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pendiente_pago { background: #fff3cd; color: #856404; }
.badge-pagado { background: #d4edda; color: #155724; }
.badge-documentacion { background: #cce5ff; color: #004085; }
.badge-listo_entrega { background: #d1ecf1; color: #0c5460; }
.badge-en_transito { background: #e2d5f1; color: #5a3d8a; }
.badge-entregado { background: #d4edda; color: #155724; }
.badge-completado { background: #b8daff; color: #004085; }
.badge-cancelado { background: #f8d7da; color: #721c24; }

.purchase-card-body {
    padding: 20px;
}
.purchase-card-body h3 {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}
.purchase-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #777;
}
.purchase-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.purchase-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 14px;
}
.purchase-card-actions {
    display: flex;
    gap: 10px;
}
.purchase-card-actions a,
.purchase-card-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.btn-ord-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
}
.btn-ord-primary:hover {
    opacity: 0.9;
}
.btn-ord-outline {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color) !important;
}
.btn-ord-outline:hover {
    background: #f0f4ff;
}

/* Empty state */
.purchases-empty {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}
.purchases-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
.purchases-empty h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}
.purchases-empty p {
    color: #888;
    margin-bottom: 24px;
}
.purchases-empty a {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}
.purchases-empty a:hover {
    transform: translateY(-2px);
}

/* Auth gate for purchases */
.purchases-auth-gate {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}
.purchases-auth-gate .gate-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.purchases-auth-gate h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}
.purchases-auth-gate p {
    color: #888;
    margin-bottom: 20px;
}
.purchases-auth-gate a {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* ── Order Detail ── */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.order-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 24px;
}
.order-detail-card h2 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timeline */
.order-timeline {
    position: relative;
    padding-left: 36px;
}
.order-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e0e3ea;
    border-radius: 2px;
}
.timeline-step {
    position: relative;
    margin-bottom: 28px;
    padding-left: 20px;
}
.timeline-step:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -26px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e3ea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e3ea;
    z-index: 2;
}
.timeline-step.active .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: timelinePulse 2s infinite;
}
.timeline-step.completed .timeline-dot {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}
@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--primary-color); }
    50% { box-shadow: 0 0 0 6px rgba(39, 78, 125, 0.2); }
}
.timeline-step h4 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 4px;
}
.timeline-step.active h4 {
    color: var(--primary-color);
    font-weight: 700;
}
.timeline-step p {
    font-size: 0.82rem;
    color: #999;
}
.timeline-step.completed p,
.timeline-step.active p {
    color: #666;
}
.timeline-step .timeline-date {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 2px;
}

/* Vehicle Detail in Order */
.order-vehicle-card {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.order-vehicle-card img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.order-vehicle-info h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 4px;
}
.order-vehicle-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2px;
}

/* Order Summary Sidebar */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.order-summary-item:last-child {
    border-bottom: none;
}
.order-summary-item .label {
    color: #666;
}
.order-summary-item .value {
    font-weight: 600;
    color: var(--dark-color);
}
.order-summary-item.total .label,
.order-summary-item.total .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Order detail status badge (large) */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delivery form in order detail */
.order-delivery-form {
    padding: 20px;
    background: #f7f9fc;
    border-radius: 12px;
    margin-top: 16px;
}
.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.delivery-option:hover,
.delivery-option.selected {
    border-color: var(--primary-color);
    background: #f0f4ff;
}
.delivery-option input[type="radio"] {
    accent-color: var(--primary-color);
}
.delivery-address-input {
    margin-top: 12px;
    display: none;
}
.delivery-address-input.visible {
    display: block;
}
.delivery-address-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
}
.delivery-address-input textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.btn-delivery-save {
    margin-top: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-delivery-save:hover {
    opacity: 0.9;
}

/* Confirm delivery button */
.btn-confirm-delivery {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 16px;
}
.btn-confirm-delivery:hover {
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .ord-banner h1 {
        font-size: 1.8rem;
    }
    .purchases-grid {
        grid-template-columns: 1fr;
    }
    .checkout-vehicle {
        flex-direction: column;
    }
    .checkout-vehicle img {
        width: 100%;
        height: 160px;
    }
    .order-vehicle-card {
        flex-direction: column;
    }
    .order-vehicle-card img {
        width: 100%;
        height: 160px;
    }
    .checkout-input-row {
        grid-template-columns: 1fr;
    }
    .purchase-card-actions {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════
   LIVE CHAT WIDGET (user side)
   ═══════════════════════════════════════ */
.lc-fab {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9997;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(39, 78, 125, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lc-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(39, 78, 125, 0.55);
}
.lc-fab.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}
.lc-fab svg {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}
.lc-fab:hover svg {
    transform: scale(1.05);
}

/* Notification badge on FAB */
.lc-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    animation: chatbot-pulse 2s infinite;
}

.lc-widget {
    position: fixed;
    bottom: 168px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lc-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header — matches chatbot header */
.lc-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.lc-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.lc-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.lc-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lc-header-info strong {
    font-size: 0.95rem;
    font-weight: 600;
}
.lc-header-info span {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lc-status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}
.lc-header-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lc-header-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lc-header-close svg {
    width: 22px;
    height: 22px;
}

/* Body states */
.lc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    min-height: 300px;
}
.lc-body p {
    color: var(--dark-gray);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.lc-idle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.lc-idle-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    fill: none;
}

.lc-topic-input {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    font-size: 0.87rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    line-height: 1.4;
}
.lc-topic-input:focus {
    border-color: var(--primary-color);
}
.lc-topic-input::placeholder {
    color: #aaa;
}

.lc-start-btn, .lc-cancel-btn, .lc-end-btn, .lc-submit-rating {
    margin-top: 16px;
    padding: 12px 28px;
    border: none;
    border-radius: 24px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.lc-start-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(39, 78, 125, 0.3);
}
.lc-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(39, 78, 125, 0.4);
}
.lc-cancel-btn {
    background: var(--light-gray);
    color: var(--dark-gray);
}
.lc-cancel-btn:hover {
    background: #ddd;
}
.lc-end-btn {
    background: #fef2f2;
    color: #ef4444;
    padding: 8px 20px;
    font-size: 0.82rem;
    border-radius: 20px;
}
.lc-end-btn:hover {
    background: #fee2e2;
}

/* Waiting animation */
.lc-waiting-anim {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: lcPulseRing 2s ease-in-out infinite;
}
@keyframes lcPulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 78, 125, 0.3); }
    50% { box-shadow: 0 0 0 14px rgba(39, 78, 125, 0); }
}
.lc-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
}
.lc-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: lcBounce 1.4s ease-in-out infinite;
}
.lc-dots span:nth-child(2) { animation-delay: 0.16s; }
.lc-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes lcBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.lc-waiting-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 10px;
}
.lc-waiting-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Active chat */
.lc-agent-bar {
    padding: 10px 16px;
    background: rgba(39, 78, 125, 0.06);
    font-size: 0.82rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.lc-agent-bar .lc-status-dot {
    width: 6px;
    height: 6px;
}
.lc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 260px;
    width: 100%;
    scroll-behavior: smooth;
}
.lc-messages::-webkit-scrollbar {
    width: 5px;
}
.lc-messages::-webkit-scrollbar-track {
    background: transparent;
}
.lc-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.lc-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.87rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: chatbot-fadeIn 0.3s ease;
}
.lc-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.lc-msg-admin {
    align-self: flex-start;
    background: var(--light-gray);
    color: var(--dark-gray);
    border-bottom-left-radius: 4px;
}
.lc-input-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
    background: #fff;
}
.lc-input-bar input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.87rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    line-height: 1.4;
}
.lc-input-bar input:focus {
    border-color: var(--primary-color);
}
.lc-input-bar input::placeholder {
    color: #aaa;
}
.lc-input-bar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.lc-input-bar button:hover {
    background: var(--dark-color);
    transform: scale(1.05);
}
.lc-input-bar button svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Rating stars */
.lc-rating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.lc-rating-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}
.lc-rating-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}
.lc-stars {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    font-size: 2.2rem;
    cursor: pointer;
}
.lc-stars span {
    color: #e2e8f0;
    transition: color 0.15s, transform 0.15s;
}
.lc-stars span:hover {
    transform: scale(1.15);
}
.lc-stars span.active {
    color: #f59e0b;
}
.lc-stars:hover span {
    color: #f59e0b;
}
.lc-stars span:hover ~ span {
    color: #e2e8f0;
}
.lc-submit-rating {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.lc-submit-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}
.lc-submit-rating:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Done state icon */
.lc-done-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

#lcActive {
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

@media (max-width: 480px) {
    .lc-widget, .lc-widget.open {
        right: 10px;
        left: 10px;
        bottom: 100px;
        width: auto;
        max-height: 70vh;
    }
    .lc-fab {
        right: 16px;
        bottom: 96px;
        width: 52px;
        height: 52px;
    }
    .lc-header-close {
        display: flex;
    }
}
