:root {
    --bg-color: #0b0213;
    --gold: #c182ff;
    --gold-glow: rgba(193, 130, 255, 0.6);
    --gold-dark: #8a3dd6;
    --card-bg: rgba(15, 5, 30, 0.6);
    --card-border: rgba(193, 130, 255, 0.3);
    --text-primary: #f5eeff;
    --text-secondary: #c9bade;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background & Overlays */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color); /* Fallback en caso de que el video no cargue */
    z-index: -2;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Efecto cover similar al background-size */
    filter: brightness(0.6) contrast(1.2); /* Mantenemos la imagen oscura y contrastada */
}

.particle-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 10, 20, 0.8) 100%);
    z-index: -1;
}

/* Columns */
.columns-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: space-between;
}

.column {
    height: 100vh;
    width: 300px;
    background-size: 100% 100%; /* Cubre el alto de la página */
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.9));
    transition: transform 0.1s ease-out;
}

.left-column {
    background-image: url('assets/final_left_col.jpg');
    background-position: center;
    background-size: cover; /* Ajuste óptimo */
    border-right: 2px solid rgba(193, 130, 255, 0.2);
    box-shadow: 20px 0 50px rgba(0,0,0,0.9);
}

.right-column {
    background-image: url('assets/final_right_col.jpg');
    background-position: center;
    background-size: cover; /* Ajuste óptimo */
    border-left: 2px solid rgba(193, 130, 255, 0.2);
    box-shadow: -20px 0 50px rgba(0,0,0,0.9);
}

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 300px 4rem; /* Padding left/right to avoid overlapping columns */
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    transform-style: preserve-3d;
}

.title-container {
    position: relative;
    display: inline-block;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 4px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8),
                 0 0 20px var(--gold-glow),
                 0 0 40px rgba(193, 130, 255, 0.3);
    margin-bottom: 1rem;
    transform: translateZ(50px);
    position: relative;
    z-index: 2;
}

/* Smoke effect */
.smoke-effect {
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 100px;
    background: radial-gradient(ellipse, rgba(193, 130, 255, 0.5) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 1; /* Estará entre el título y el fondo */
    pointer-events: none;
    transform: translateY(-50%);
    animation: smoke-move 6s infinite alternate ease-in-out;
}

.smoke-reverse {
    animation: smoke-move-reverse 8s infinite alternate cubic-bezier(0.25, 0.1, 0.25, 1);
    background: radial-gradient(ellipse, rgba(138, 61, 214, 0.4) 0%, transparent 60%);
    top: 60%;
    height: 120px;
    filter: blur(30px);
    z-index: 3; /* Este humo pasará POR DELANTE del título */
}

@keyframes smoke-move {
    0% { transform: translate(-5%, -60%) scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(5%, -40%) scale(1.1) rotate(3deg); opacity: 0.8; }
    100% { transform: translate(10%, -50%) scale(0.9) rotate(-3deg); opacity: 0.5; }
}

@keyframes smoke-move-reverse {
    0% { transform: translate(10%, -40%) scale(1.1) rotate(0deg); opacity: 0.4; }
    50% { transform: translate(-5%, -60%) scale(0.9) rotate(-3deg); opacity: 0.7; }
    100% { transform: translate(-10%, -30%) scale(1.2) rotate(3deg); opacity: 0.4; }
}

/* 3D Title effect layered */
.hero-title::before, .hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-title::before {
    color: rgba(212, 175, 55, 0.3);
    transform: translateZ(-10px) translateY(2px);
    filter: blur(2px);
}

.hero-title::after {
    color: rgba(0,0,0, 0.5);
    transform: translateZ(-20px) translateY(5px);
    filter: blur(5px);
}

.hero-maestra {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 10px var(--gold-glow);
    transform: translateZ(40px);
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    transform: translateZ(30px);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    transform: translateZ(20px);
}

/* Services section */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
    transform-style: preserve-3d;
}

/* Mystical Floating Cards */
.card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 20, 35, 0.7), rgba(5, 10, 20, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 
                inset 0 0 0 rgba(212, 175, 55, 0.0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gold);
    box-shadow: 0 -5px 20px var(--gold-glow);
    transition: width 0.5s ease;
}

.card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 
                0 0 40px rgba(212, 175, 55, 0.2),
                inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.card:hover::after {
    width: 100%;
}

.card-inner {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 0 15px rgba(212,175,55,0.6));
}

.card:hover .card-icon {
    transform: rotateY(360deg) scale(1.1);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* CTA */
.cta-container {
    margin-top: 5rem;
    transform: translateZ(40px);
}

.cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper { padding: 6rem 15vw 4rem; }
    .column { width: 15vw; }
    .hero-title { font-size: 4rem; }
    .hero-maestra { font-size: 1.8rem; letter-spacing: 6px; }
}

@media (max-width: 900px) {
    .content-wrapper { padding: 4rem 18vw; }
    .columns-container { opacity: 1; z-index: 10; pointer-events: none; } /* Columnas en primer plano y 100% visibles */
    .column { width: 15vw; } /* Proporcionales al tamaño de la pantalla */
    .services-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; margin-bottom: 0; }
    .title-container { margin-bottom: 1.5rem; } /* Dar espacio inferior al contenedor del titulo */
    .hero-maestra { font-size: 1.4rem; letter-spacing: 4px; margin-top: 1.5rem; } /* Separar del titulo */
    .hero-subtitle { font-size: 1rem; letter-spacing: 3px; }
}
