/* ============================================
   CLUB DE AMIGOS DE CHARL'S - STYLES
   ============================================
   Sigue los tokens de diseño del sitio principal
   ============================================ */

:root {
    --color-primary: #C9961A;
    --color-chocolate: #4A2C2A;
    --color-chocolate-light: #6d4c4a;
    --color-chocolate-hover: #3d2321;
    --color-creamy: #FFF9F0;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-success: #2ecc71;
    --color-gold-soft: rgba(201, 150, 26, 0.1);
    --font-lora: 'Lora', serif;
    --font-poppins: 'Poppins', sans-serif;
}

/* Base */
body.club-theme {
    font-family: var(--font-poppins);
    color: var(--color-text);
    background-color: #f7f3e8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a2c2a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Typography */
.font-lora {
    font-family: var(--font-lora);
}

.text-chocolate {
    color: var(--color-chocolate) !important;
}

.text-gold {
    color: var(--color-primary) !important;
}

/* Backgrounds */
.bg-chocolate {
    background-color: var(--color-chocolate) !important;
}

.bg-creamy {
    background-color: var(--color-creamy) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.club-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    position: absolute;
    top: 0;
    left: 0;
}

.club-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(25, 12, 11, 0.85) 0%,
        rgba(46, 26, 25, 0.90) 100%
    );
}

.club-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 140px 20px 70px;
}

.club-hero-content h1, .hero-title {
    font-family: var(--font-lora);
    font-size: 3.2rem;
    color: #ffffff !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 12px;
    font-weight: 700;
}

.club-hero-content p, .hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    max-width: 620px;
    margin: 0 auto 20px;
    font-weight: 500;
}

/* Hero VIP Buttons */
.hero-actions-wrapper {
    margin-top: 20px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #C9961A 0%, #F5C451 50%, #B88510 100%);
    color: #2D1816 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 25px rgba(201, 150, 26, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 150, 26, 0.65), 0 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #d8a421 0%, #f7cd63 50%, #c49116 100%);
    color: #1a0d0c !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .club-hero {
        min-height: 320px;
    }

    .club-hero-content {
        padding: 100px 15px 45px;
    }

    .club-hero-content h1 {
        font-size: 2rem;
    }

    .club-hero-content p {
        font-size: 1rem;
    }
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
    padding: 60px 0;
    background-color: var(--color-creamy);
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(201, 150, 26, 0.15);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(74, 44, 42, 0.1);
    border-color: var(--color-primary);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-chocolate) 0%, var(--color-chocolate-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h5 {
    font-family: var(--font-lora);
    color: var(--color-chocolate);
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   REGISTRATION FORM
   ============================================ */
.registration-section {
    padding: 60px 0 80px;
}

.registration-card {
    border: none;
    box-shadow: 0 15px 35px rgba(74, 44, 42, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.registration-card .card-header {
    background: linear-gradient(135deg, var(--color-chocolate) 0%, #2e1a19 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
}

/* Decorative Gold Line */
.registration-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.registration-card .card-header h2 {
    font-family: var(--font-lora);
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.registration-card .card-header p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(201, 150, 26, 0.3);
    margin-bottom: 10px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #ffffff !important;
    font-weight: 700;
    border-bottom-color: var(--color-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.auth-tab:hover:not(.active) {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

/* Form Styles */
.registration-card .form-label {
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.registration-card .form-control {
    border: 1px solid #e0dfdc;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.registration-card .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-gold-soft);
    background-color: #fff;
}

.registration-card .form-control::placeholder {
    color: #bbb;
}

/* Input group icon */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-chocolate-light);
    z-index: 5;
    font-size: 0.9rem;
}

.has-icon {
    padding-left: 42px !important;
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: var(--color-chocolate);
    border-color: var(--color-chocolate);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem var(--color-gold-soft);
    border-color: var(--color-primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.form-check-label a {
    color: var(--color-chocolate);
    font-weight: 600;
    text-decoration: none;
}

.form-check-label a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Submit Button */
.btn-club-submit {
    background: linear-gradient(135deg, var(--color-chocolate) 0%, #2e1a19 100%);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-club-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 150, 26, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-club-submit:hover::before {
    left: 100%;
}

.btn-club-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 44, 42, 0.3);
    color: white;
}

.btn-club-submit:active {
    transform: translateY(-1px);
}

.btn-club-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.modal-club .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-club .modal-body {
    padding: 50px 40px;
}

.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-success), #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-club h3 {
    font-family: var(--font-lora);
    color: var(--color-chocolate);
}

/* ============================================
   ALREADY MEMBER ALERT
   ============================================ */
.alert-already-member {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    color: #856404;
    padding: 16px 20px;
    animation: slideDown 0.4s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-title {
    font-family: var(--font-lora);
    color: var(--color-chocolate);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-chocolate));
    margin: 15px auto 25px;
    border-radius: 2px;
}

/* ============================================
   FOOTER MINI
   ============================================ */
.club-footer {
    background: linear-gradient(135deg, var(--color-chocolate) 0%, #2e1a19 100%);
    padding: 30px 0;
    text-align: center;
}

.club-footer p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 0.85rem;
}

.club-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.club-footer a:hover {
    color: #e0b32d;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .registration-card .card-header {
        padding: 30px 20px;
    }

    .registration-card .card-body {
        padding: 25px 20px !important;
    }

    .modal-club .modal-body {
        padding: 35px 25px;
    }

    .benefits-section {
        padding: 40px 0;
    }

    .registration-section {
        padding: 40px 0 60px;
    }
}

/* ============================================
   VIP DASHBOARD STYLES
   ============================================ */
.club-navbar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-hero {
    position: relative;
    background: url('/images/slider/banner Club de amigos de Charls.webp') top center / cover no-repeat;
    padding: 35px 0 40px;
}

.dashboard-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(74, 44, 42, 0.85) 0%, rgba(46, 26, 25, 0.90) 100%);
    z-index: 1;
    pointer-events: none;
}

.dashboard-content {
    padding-top: 25px;
    padding-bottom: 40px;
}

.vip-card {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    margin-top: 0;
    z-index: 10;
    position: relative;
}

.vip-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e1e24 0%, #2a2a32 100%);
    border-radius: 20px;
    z-index: 1;
}

.vip-card-content {
    position: relative;
    z-index: 5 !important;
}

.vip-card-bg::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(201, 150, 26, 0.15) 50%, transparent 55%);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

.badge-vip-level {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-bronce { background: #cd7f32; color: #fff; }
.badge-plata { background: #c0c0c0; color: #333; }
.badge-oro { background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7); color: #333; }

.qr-container {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#qrcode img, #qrcode canvas {
    max-width: 150px;
    max-height: 150px;
    display: block;
    margin: 0 auto;
}

.premium-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(74, 44, 42, 0.05);
    transition: transform 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 44, 42, 0.1);
}

.points-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.points-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-lora);
}

.points-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 5px;
}

/* ============================================
   VENTANA EMERGENTE VIP (POPUP CLUB CHARL'S)
   ============================================ */
.club-vip-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: calc(100% - 30px);
    max-width: 380px;
    background: linear-gradient(135deg, #2b1716 0%, #3e211f 100%);
    border: 1px solid rgba(201, 150, 26, 0.45);
    border-radius: 18px;
    padding: 20px 22px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(201, 150, 26, 0.2);
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
}

.club-vip-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
}

.popup-close-btn:hover {
    color: #ffffff;
}

.popup-header-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #F5C451;
    background: rgba(201, 150, 26, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(201, 150, 26, 0.3);
    margin-bottom: 10px;
}

.popup-title {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.popup-text {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    margin-bottom: 14px;
}

.popup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-popup-gold {
    background: linear-gradient(135deg, #C9961A 0%, #F5C451 100%);
    color: #2b1716 !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(201, 150, 26, 0.35);
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-popup-gold:hover {
    transform: translateY(-2px);
}

.btn-popup-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

.btn-popup-link:hover {
    color: #ffffff;
}

.popup-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9961A, #F5C451);
    width: 100%;
    transform-origin: left;
}

.club-vip-popup.show .popup-progress-bar {
    animation: popupTimer 8s linear forwards;
}

@keyframes popupTimer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 576px) {
    .club-vip-popup {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
}
