@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Outfit:wght@200;300;400;600&display=swap');

:root {
    --gold: #D4AF37;
    --gold-dark: #aa8a2e;
    --gold-light: #f1d592;
    --black: #050505;
    --dark-gray: #0f0f0f;
    --light-gray: #1a1a1a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(15, 15, 15, 0.9);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* MIAMI VICE PALETTE */
    --miami-pink: #f8bbd0;
    --miami-blue: #b2ebf2;
    --miami-teal: #80cbc4;
    --miami-purple: #e1bee7;
    --miami-neon-pink: #ff4081;
    --miami-neon-blue: #00e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
}

/* BACKGROUND VIDEO */
.bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
    object-position: center 25%;
    /* Alinea el vídeo un 25% desde arriba para no cortar los ojos */
    background: url('../assets/bg_fallback.jpg') no-repeat center center;
    background-size: cover;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.75);
    /* Oscurece el vídeo para que el texto sea legible */
    z-index: -1;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.luxury-text {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* LAYOUT & COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.btn-primary {
    background: var(--gold);
    color: var(--black) !important;
    padding: 1rem 2rem;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 2px;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-text {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--gold);
}

/* NAVBAR */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8), transparent);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* HERO SECTION */
.hero {
    padding: 8rem 2rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* HOW IT WORKS SECTION */
.how-it-works {
    padding: 6rem 2rem;
    background: rgba(212, 175, 55, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-num {
    display: none;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* FEATURES GRID (Legacy or Additional) */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* PRICING SECTION */
.pricing-section {
    padding: 2rem 1rem 4rem;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* FORZADO 3 COLUMNAS */
    gap: 1.5rem;
    max-width: 1100px;
    margin: 1.5rem auto 0;
    align-items: stretch;
}

.price-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.price-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.price-card.featured {
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
    transform: scale(1.05);
    background: rgba(20, 20, 20, 0.8);
    z-index: 5;
}

.price-card.featured:hover {
    transform: scale(1.08);
}

.credits-qty {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text);
    margin: 1rem 0 0.5rem;
}

.price-value {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2rem;
}

.save-badge {
    font-size: 0.6rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-block;
    letter-spacing: 1px;
}

/* DASHBOARD COMMON STYLES */
.upload-area {
    display: block;
    border: 2px dashed rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(212, 175, 55, 0.02);
}

.upload-area:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.luxury-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.5rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-footer {
    opacity: 1;
}

.gallery-card-date {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.gallery-card-delete {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: var(--transition);
}

.gallery-card-delete:hover {
    background: rgba(255, 0, 0, 0.6);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pricing-grid {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        max-width: 400px;
    }

    .price-card.featured {
        transform: scale(1);
    }
}

/* MULTI-IA COLUMN LAYOUT */
.columns-container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--black);
}

.ia-column {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ia-column:last-child {
    border-right: none;
}

.ia-column:hover {
    flex: 1.5;
}

.ia-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0.2;
    /* Más sutil para el fondo */
    transition: var(--transition);
    z-index: 1;
}

.ia-column:hover::before {
    opacity: 0.4;
    transform: scale(1.02);
}

/* DUAL POWER LAYOUT */
.dual-container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.dual-side {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    transition: var(--transition);
    text-decoration: none;
}

/* Left Side: VISUAL POWER (Dark) */
.side-visual {
    background: #050505;
    color: white;
}

.side-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 64, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Right Side: KNOWLEDGE POWER (Light/Elegant) */
.side-knowledge {
    background: #fdfcf8;
    /* Bone/Paper white */
    color: #1a1a1a;
    border-left: 1px solid rgba(212, 175, 55, 0.1);
}

.side-knowledge .subtitle {
    color: var(--gold-dark);
}

.side-knowledge h2 {
    color: #050505;
}

.side-knowledge p {
    color: #444;
}

.side-content {
    position: relative;
    z-index: 10;
    max-width: 400px;
}

.side-visual h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-knowledge h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.side-knowledge .btn-primary {
    background: #1a1a1a;
    color: var(--gold) !important;
}

.side-knowledge .btn-primary:hover {
    background: #000;
    transform: scale(1.05);
}

/* Divider Line */
.dual-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    z-index: 20;
    opacity: 0.3;
}

.ia-column-content {
    position: relative;
    z-index: 2;
    max-width: 250px;
}

.ia-column h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ia-column p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* SPECIFIC COLUMN THEMES */
.col-julia {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.col-julia::before {
    background-image: url('../assets/bg_vton.png');
}

.col-julia h2 {
    color: var(--gold);
}

.col-private::before {
    background-image: url('../assets/bg_private.png');
}

.col-faceswap {
    background: linear-gradient(135deg, #001f3f 0%, #0074d9 100%);
}

.col-faceswap h2 {
    color: var(--miami-blue);
    text-shadow: 0 0 15px var(--miami-neon-blue);
}

.col-sticker {
    background: linear-gradient(135deg, #2d0a31 0%, #b10dc9 100%);
}

.col-sticker h2 {
    color: var(--miami-pink);
    text-shadow: 0 0 15px var(--miami-neon-pink);
}

.col-comic {
    background: linear-gradient(135deg, #0a2e2d 0%, #008080 100%);
}

.col-comic h2 {
    color: var(--miami-teal);
    text-shadow: 0 0 15px #caffff;
}

/* Responsive Columns */
@media (max-width: 900px) {
    .columns-container {
        flex-direction: column;
        height: auto;
    }

    .ia-column {
        width: 100%;
        height: 25vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ia-column:hover {
        flex: 1;
        height: 35vh;
    }

    /* FIX DUAL CONTAINER FOR MOBILE */
    .dual-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .dual-side {
        height: 50vh;
        /* Mitad de pantalla para cada uno */
        padding: 5rem 1.5rem 1.5rem;
        justify-content: center;
    }

    .dual-divider {
        display: none;
    }

    .side-visual h2,
    .side-knowledge h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .side-content {
        max-width: 100%;
    }

    .side-content p {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .side-knowledge .btn-primary,
    .side-visual .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
}