:root {
            --primary-color: #5D4E8C;
            --primary-dark: #4A3D70;
            --primary-light: #6B5A9E;
        }
        
        * {
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            min-height: 100vh;
        }
        
        /* Top Bar */
        .top-bar {
            background-color: var(--primary-color);
            color: white;
            padding: 8px 0;
            font-size: 14px;
        }
        
        /* Header */
        .main-header {
            background-color: var(--primary-color);
            padding: 15px 0;
        }
        
        .main-header .navbar-brand img {
            height: 40px;
        }
        
        .main-header .nav-link {
            color: rgba(255,255,255,0.9) !important;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 16px !important;
            transition: color 0.3s;
        }
        
        .main-header .nav-link:hover {
            color: white !important;
        }
        
        .header-icons .btn {
            color: white;
            padding: 8px 12px;
        }
        
        .header-icons .btn:hover {
            background-color: rgba(255,255,255,0.2);
            border-radius: 8px;
        }
        
        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: white;
            color: var(--primary-color);
            font-size: 11px;
            font-weight: bold;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .auth-section.modal {
            position: fixed;
            inset: 0;                 /* ocupa toda la pantalla */
            display: none;            /* oculto por defecto */
            align-items: center;      /* centro vertical */
            justify-content: center;  /* centro horizontal */
            padding: 0;               /* QUITA el padding */
            z-index: 1050;
        }

        .auth-section.is-active {
            display: flex;
        }

        .auth-section.modal .container {
    min-height: 100vh;
    display: flex;
    align-items: center;      /* centro vertical */
    justify-content: center;  /* centro horizontal */
}
                
        .auth-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            max-width: 900px;
            margin: 0 auto;
        }
        
        /* Left Panel - Branding */
        .auth-branding {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
            padding: 48px;
            color: white;
            position: relative;
            overflow: hidden;
            min-height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .auth-branding::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 256px;
            height: 256px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
        }
        
        .auth-branding::after {
            content: '';
            position: absolute;
            bottom: -50%;
            left: -50%;
            width: 192px;
            height: 192px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
        }
        
        .branding-logo {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 48px;
            position: relative;
            z-index: 1;
        }
        
        .branding-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            z-index: 1;
        }
        
        .branding-title {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 16px;
        }
        
        .branding-title span {
            color: #f9a8d4;
        }
        
        .branding-subtitle {
            color: rgba(255,255,255,0.8);
            font-size: 16px;
            margin-bottom: 32px;
        }
        
        .branding-features {
            list-style: none;
            padding: 0 !important;
            margin: 0;
        }
        
        .branding-features li {
            display: grid;
            grid-template-columns: 40px 1fr;
            gap: 12px;
            align-items: center;
        }
                
        .branding-features .feature-icon {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .branding-footer {
            margin-top: auto;
            padding-top: 32px;
            font-size: 12px;
            color: rgba(255,255,255,0.6);
            position: relative;
            z-index: 1;
        }
        
        /* Right Panel - Form */
        .auth-form-panel {
            padding: 48px;
        }
        
        .mobile-logo {
            display: none;
            text-align: center;
            margin-bottom: 24px;
        }
        
        .mobile-logo-box {
            display: inline-block;
            background: var(--primary-color);
            padding: 16px 24px;
            border-radius: 12px;
        }
        
        .mobile-logo-box span {
            font-size: 24px;
            font-weight: 700;
            color: white;
        }
        
        /* Tab Switcher */
        .tab-switcher {
            display: flex;
            gap: 8px;
            padding: 4px;
            background: #f3f4f6;
            border-radius: 12px;
            margin-bottom: 32px;
        }
        
        .tab-btn {
            flex: 1;
            padding: 12px 16px;
            border: none;
            background: transparent;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .tab-btn.active {
            background: white;
            color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .tab-btn:hover:not(.active) {
            color: #374151;
        }
        
        /* Form Styles */
        .form-header {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .form-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 4px;
        }
        
        .form-header p {
            color: #6b7280;
            font-size: 14px;
            margin: 0;
        }
        
        .form-group label {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 8px;
        }
        
        .input-group-custom {
            position: relative;
        }
        
        .input-group-custom .form-control {
            padding-left: 48px;
            height: 48px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .input-group-custom .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(93, 78, 140, 0.1);
        }
        
        .input-group-custom .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 16px;
            z-index: 10;
        }
        
        .input-group-custom .toggle-password22 {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            padding: 0;
            z-index: 10;
        }
        
        .input-group-custom .toggle-password22:hover {
            color: #6b7280;
        }
        
        .forgot-password {
            text-align: right;
            margin-bottom: 24px;
        }
        
        .forgot-password a {
            font-size: 14px;
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
        }
        
        .forgot-password a:hover {
            text-decoration: underline;
        }
        
        .btn-submit {
            width: 100%;
            height: 48px;
            background: var(--primary-color);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(93, 78, 140, 0.25);
            transition: all 0.3s;
        }
        
        .btn-submit:hover {
            background: var(--primary-dark);
            box-shadow: 0 6px 20px rgba(93, 78, 140, 0.35);
            transform: translateY(-1px);
        }
        
        .terms-text {
            text-align: center;
            font-size: 12px;
            color: #6b7280;
            margin-top: 16px;
        }
        
        .terms-text a {
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
        }
        
        .terms-text a:hover {
            text-decoration: underline;
        }
        
        /* Tab Content */
        .tab-content2 {
            display: none;
        }
        
        .tab-content2.active {
            display: block;
        }
        
        /* Footer */
        .main-footer {
            background-color: #111827;
            color: white;
            padding: 60px 0 0;
        }
        
        .footer-logo {
            background-color: white;
            display: inline-block;
            padding: 8px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        
        .footer-logo span {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .footer-description {
            color: #9ca3af;
            font-size: 14px;
            line-height: 1.7;
        }
        
        .footer-social a {
            width: 40px;
            height: 40px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-right: 10px;
            transition: background-color 0.3s;
        }
        
        .footer-social a:hover {
            background-color: var(--primary-dark);
            color: white;
        }
        
        .footer-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #9ca3af;
            font-size: 14px;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--primary-color);
        }
        
        .footer-contact li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 16px;
            color: #9ca3af;
            font-size: 14px;
        }
        
        .footer-contact i {
            color: var(--primary-color);
            margin-top: 3px;
        }
        
        .footer-bottom {
            border-top: 1px solid #1f2937;
            padding: 24px 0;
            margin-top: 40px;
        }
        
        .footer-copyright {
            color: #6b7280;
            font-size: 14px;
        }
        
        .payment-methods img {
            height: 32px;
            opacity: 0.6;
            margin-left: 16px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .auth-branding {
                display: none;
            }
            
            .mobile-logo {
                display: block;
            }
            
            .auth-form-panel {
                padding: 32px 24px;
            }
            
            .auth-section {
                padding: 30px 0;
            }
        }

        .auth-card {
            position: relative;
        }

        .modal-close-btn {
          position: absolute;
          top: 15px;
          right: 15px;
          background: transparent;
          border: none;
          font-size: 32px;
          color: #715D95; /* o blanco si prefieres */
          cursor: pointer;
          z-index: 99999;
          line-height: 1;
        }

