/**
 * ═════════════════════════════════════════════════════════════
 * TU FINAL GLORIOSO - PREMIUM STYLES
 * ═════════════════════════════════════════════════════════════
 */

/* ═══ CSS VARIABLES ═══ */
:root {
    --color-primary: #B89C6A;
    --color-dark: #0B1221;
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Layered Shadows (Elite Aesthetics) */
    --shadow-sm: 0 1px 2px rgba(11, 18, 33, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 18, 33, 0.1), 0 2px 4px -1px rgba(11, 18, 33, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(11, 18, 33, 0.1), 0 4px 6px -2px rgba(11, 18, 33, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(11, 18, 33, 0.1), 0 10px 10px -5px rgba(11, 18, 33, 0.04);
    --shadow-2xl: 0 35px 60px -15px rgba(11, 18, 33, 0.3);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 2.5rem;

    --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 300ms cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 500ms cubic-bezier(0.2, 0, 0, 1);
}

/* ═══ RESET & BASE ═══ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-gray-900);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══ TYPOGRAPHY ═══ */
.serif {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background: #A68A5A;
    border-color: #A68A5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-premium {
    background: linear-gradient(135deg, var(--color-primary) 0%, #D4AF37 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    color: var(--color-white);
    font-weight: 800;
    letter-spacing: 0.1em;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px -5px rgba(184, 156, 106, 0.4);
}

.btn-premium:hover:not(:disabled) {
    background-position: right center;
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(184, 156, 106, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--color-gray-600);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ═══ CARDS ═══ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.tfg-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-base);
}

.tfg-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ═══ FORMS ═══ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(184, 156, 106, 0.15);
    background: var(--color-white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-100);
    padding: 1.25rem 2rem;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.navbar-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-dark);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.navbar-credits {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
}

.navbar-credits-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.navbar-credits-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-dark);
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.75rem;
    color: var(--color-gray-400);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-base);
}

.footer-list li:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ═══ LOADING ═══ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══ TOAST NOTIFICATIONS ═══ */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 320px;
    max-width: 400px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transform-origin: top right;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-gray-300);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.success::before {
    background: var(--color-success);
}

.toast.error::before {
    background: var(--color-error);
}

.toast.warning::before {
    background: var(--color-warning);
}

.toast.info::before {
    background: var(--color-info);
}

.toast-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: var(--color-success);
}

.toast.error .toast-icon {
    color: var(--color-error);
}

.toast.warning .toast-icon {
    color: var(--color-warning);
}

.toast.info .toast-icon {
    color: var(--color-info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--color-gray-900);
    letter-spacing: -0.01em;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.4;
}

/* ═══ UTILS ═══ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ═══ PROGRESS BAR ═══ */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #C8A870);
    transition: width var(--transition-slow);
}

/* ═══ ANIMATIONS ═══ */
@keyframes meshRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 156, 106, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(184, 156, 106, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(184, 156, 106, 0);
    }
}

.mesh-gradient {
    filter: blur(60px);
    animation: meshRotate 20s infinite linear;
}

/* ═══ BADGE ═══ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}

.badge-primary {
    background: rgba(184, 156, 106, 0.1);
    color: var(--color-primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

/* ═══ MODAL ═══ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: block;
    /* Removed grid/flex for absolute inner flow */
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: none;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 18, 33, 0.94);
    backdrop-filter: blur(16px);
    z-index: 1;
    pointer-events: auto;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Absolute guaranteed centering */
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: clamp(1.5rem, 5vh, 2.5rem);
    max-width: 850px;
    width: min(calc(100vw - 2rem), 100%);
    margin: 0;
    max-height: 85vh;
    /* Keep it from touching screen edges */
    overflow-y: auto;
    line-height: 1.5;
    color: var(--color-gray-800);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.4),
        0 20px 40px -20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideUpAbs 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    pointer-events: auto;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 960px;
    width: min(100%, 960px);
}

.modal-header {
    position: relative;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.modal-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    padding-right: 3.5rem;
    line-height: 1.15;
    color: var(--color-dark);
    font-family: var(--font-serif);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.modal-header button {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-header button:hover {
    background: var(--color-error);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

#create-project-modal .modal-content {
    max-width: 780px;
    width: min(100%, 780px);
}

#project-detail-modal .modal-content {
    max-width: 980px;
    width: min(100%, 980px);
    scroll-behavior: auto;
    overflow-anchor: none;
}

#project-detail-content {
    overflow-anchor: none;
}

#project-detail-modal .modal-header h2 {
    font-size: clamp(1.55rem, 2.3vw, 2.35rem);
}

/* ═══ PACKAGE CARDS (Fixed from Checkout) ═══ */
.package-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 3px solid var(--color-gray-100);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.package-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(184, 156, 106, 0.2);
}

.package-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px -5px rgba(184, 156, 106, 0.1);
}

.package-card.featured::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: 1.5rem;
    right: -2.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 3.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.package-price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 1.5rem 0;
    line-height: 1;
}

.package-credits {
    font-size: 1.4rem;
    color: var(--color-gray-500);
    font-weight: 600;
}

/* ═══ PROJECT GRID (Fixed from Dashboard) ═══ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

/* Custom Scrollbar for Modal (Premium Look) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-gray-200);
    border-radius: 10px;
    border: 2px solid white;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideUpAbs {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 30px)) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 1rem;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .navbar-link {
        font-size: 0.625rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer {
        padding: 3rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
    }

    .modal {
        padding: 1.5rem 1rem;
    }

    .modal-content {
        border-radius: var(--radius-2xl);
        padding: 1.5rem;
        max-height: calc(100dvh - 5rem);
        width: 100%;
    }

    .modal-large {
        max-width: 100%;
    }

    .modal-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .modal-header h2 {
        padding-right: 2.75rem;
        font-size: clamp(1.35rem, 6vw, 1.9rem);
    }

    .modal-header button {
        width: 38px;
        height: 38px;
        top: 0;
        right: 0;
    }
}

/* ═══ BRUTAL LANDING PAGE STYLES ═══ */
.hero-section {
    background: radial-gradient(circle at center, #1a202c 0%, #0B1221 100%);
    color: var(--color-white);
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section h1 {
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    pointer-events: none;
}

.text-gold {
    color: var(--color-primary);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #F5DCA3 0%, #B89C6A 50%, #8C734B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn-premium {
    background: linear-gradient(135deg, #B89C6A 0%, #997B48 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(184, 156, 106, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(184, 156, 106, 0.4);
    background: linear-gradient(135deg, #C9AD7B 0%, #A68A5A 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(184, 156, 106, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.step-card {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--color-gray-200);
}

.step-card::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--color-gray-200);
}

.logo-display {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.pricing-featured {
    transform: scale(1.05);
    border: 2px solid var(--color-primary);
    position: relative;
    z-index: 10;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(184, 156, 106, 0.4);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   GENERATION TIMER MODAL - Premium AI Loading UI
   ═══════════════════════════════════════════════════════ */

/* Backdrop oscuro con blur intenso */
.gen-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 22, 0.88);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: genBackdropIn 0.35s ease-out;
}

@keyframes genBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Card principal con efecto glassmorphism dorado */
.gen-modal-card {
    position: relative;
    background: linear-gradient(145deg, #0f1822 0%, #141e2d 100%);
    border: 1px solid rgba(184, 156, 106, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(184, 156, 106, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(184, 156, 106, 0.05) inset;
    animation: genCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes genCardIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ícono animado con anillo pulsante */
.gen-icon-ring {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
}

.gen-icon-ring::before,
.gen-icon-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(184, 156, 106, 0.4);
    animation: pulseRing 2s ease-out infinite;
}

.gen-icon-ring::after {
    animation-delay: 1s;
    border-color: rgba(184, 156, 106, 0.15);
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.25);
        opacity: 0;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.gen-icon-inner {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #B89C6A, #8C6D3F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(184, 156, 106, 0.4);
}

.gen-icon-inner .material-icons {
    font-size: 2rem;
    color: white;
}

/* Título y subtítulo */
.gen-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.25rem;
}

.gen-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 2rem;
}

/* Bloque del reloj */
.gen-clock-box {
    background: rgba(184, 156, 106, 0.06);
    border: 1px solid rgba(184, 156, 106, 0.18);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.gen-clock-elapsed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gen-clock-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}

.gen-clock-time {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: 0 0 20px rgba(184, 156, 106, 0.5);
    animation: timerGlow 2s ease-in-out infinite alternate;
}

@keyframes timerGlow {
    from {
        text-shadow: 0 0 10px rgba(184, 156, 106, 0.3);
    }

    to {
        text-shadow: 0 0 25px rgba(184, 156, 106, 0.7);
    }
}

.gen-clock-divider {
    width: 1px;
    height: 50px;
    background: rgba(184, 156, 106, 0.2);
    flex-shrink: 0;
}

.gen-clock-estimate {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.gen-clock-estimate-time {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* Barra de progreso estimada */
.gen-progress-wrap {
    margin-bottom: 1.75rem;
}

.gen-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gen-progress-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gen-progress-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.gen-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.gen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #B89C6A, #E5CA8A, #B89C6A);
    background-size: 200% 100%;
    border-radius: 999px;
    transition: width 1s ease;
    animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Lista de fases */
.gen-phases {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gen-phase {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.35;
}

.gen-phase.is-done {
    opacity: 0.6;
}

.gen-phase.is-active {
    opacity: 1;
    background: rgba(184, 156, 106, 0.1);
    border: 1px solid rgba(184, 156, 106, 0.2);
}

.gen-phase.is-pending {
    opacity: 0.3;
}

/* Ícono de estado de cada fase */
.gen-phase-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.gen-phase.is-done .gen-phase-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.gen-phase.is-active .gen-phase-icon {
    background: rgba(184, 156, 106, 0.25);
    color: var(--color-primary);
    animation: spinSlow 1.5s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.gen-phase.is-pending .gen-phase-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.gen-phase-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
}

.gen-phase.is-done .gen-phase-text {
    color: rgba(255, 255, 255, 0.5);
}

.gen-phase.is-pending .gen-phase-text {
    color: rgba(255, 255, 255, 0.3);
}

.gen-phase-duration {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: monospace;
}

.gen-phase.is-active .gen-phase-duration {
    color: var(--color-primary);
    opacity: 0.7;
}

/* Aviso inferior */
.gen-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.gen-warning .material-icons {
    font-size: 1.1rem;
    color: #F59E0B;
    flex-shrink: 0;
}

.gen-warning p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/*  TARGETED SEARCH PREMIUM  */
.search-box-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    min-width: 350px;
}

.search-box-premium:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(184, 156, 106, 0.1);
    transform: translateY(-1px);
}

.search-box-premium .material-icons {
    color: var(--color-gray-400);
    font-size: 1.25rem;
    transition: color var(--transition-base);
}

.search-box-premium:focus-within .material-icons {
    color: var(--color-primary);
}

.search-box-premium input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-gray-900);
    width: 100%;
    padding: 0.5rem 0;
}

.search-box-premium input:focus {
    outline: none;
}

.search-box-premium input::placeholder {
    color: var(--color-gray-400);
}

/* ═══ VIEW TRANSITIONS ═══ */
.fade-in {
    animation: fadeInView 0.4s ease-out forwards;
}

@keyframes fadeInView {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ MICRO-INTERACTIONS & SKELETON ═══ */
.skeleton {
    background: #e2e8f0;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.6) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmerSkeleton 2s infinite;
}

@keyframes shimmerSkeleton {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-card {
    height: 15rem;
    width: 100%;
    border-radius: var(--radius-xl);
}

/* ═══ SUPPORT CHAT WIDGET ═══ */
.support-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.support-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #c8a870 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(184, 156, 106, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
    color: var(--color-dark);
    flex-shrink: 0;
}

.support-chat-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 16px 40px rgba(184, 156, 106, 0.55);
}

.support-chat-btn .material-icons {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.support-chat-btn.is-open .material-icons {
    transform: rotate(180deg);
}

.support-chat-panel {
    width: 340px;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(184, 156, 106, 0.15);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.support-chat-panel.is-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.support-chat-header {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    padding: 1.25rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-chat-header .support-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.support-chat-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.01em;
}

.support-chat-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.support-chat-online {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: pulse 2s infinite;
}

.support-chat-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.support-chat-intro {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.support-faq-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    margin-bottom: 0.75rem;
}

.support-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-faq-item {
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.support-faq-item:hover {
    border-color: var(--color-primary);
}

.support-faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.support-faq-q:hover {
    color: var(--color-primary);
}

.support-faq-q .material-icons {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-gray-400);
}

.support-faq-item.is-open .support-faq-q .material-icons {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.support-faq-a {
    font-size: 0.8rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    padding: 0 1rem 0.875rem;
    display: none;
}

.support-faq-item.is-open .support-faq-a {
    display: block;
}

.support-chat-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-gray-100);
    font-size: 0.75rem;
    color: var(--color-gray-400);
    text-align: center;
}

.support-chat-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.support-chat-footer a:hover {
    text-decoration: underline;
}