:root {
    --agency-color: #2a1b3d;
    /* Deep Purple */
    --agency-accent: #a4508b;
    --magazine-color: #833ab4;
    /* Vibrant Purple/Pink */
    --magazine-accent: #fd1d1d;
    --text-light: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #111;
    overflow: hidden;
    /* Prevent scroll on desktop */
}

.portal-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Split Sections */
.split-section {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    transition: width var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
}

/* Backgrounds & Overlays */
.split-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed) ease;
    z-index: 1;
    filter: grayscale(30%) brightness(0.6);
}

.agency::before {
    background-image: linear-gradient(45deg, rgba(42, 27, 61, 0.85), rgba(164, 80, 139, 0.5)), url('assets/fondod.png');
}

.magazine::before {
    background-image: linear-gradient(45deg, rgba(131, 58, 180, 0.85), rgba(253, 29, 29, 0.5)), url('assets/fondo_revista.png');
}

.split-section:hover::before {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.8);
}

/* Content Styling */
.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    transition: transform var(--transition-speed) ease;
}

.brand-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.split-section:hover .brand-logo {
    transform: scale(1.05);
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* CTA Button */
.cta-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-container:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
}

.icon-arrow {
    transition: transform 0.3s ease;
}

.cta-container:hover .icon-arrow {
    transform: translateX(5px);
}

/* Separator */
.separator {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: height 0.6s ease, opacity 0.3s ease, left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Interaction (Desktop) */
@media (min-width: 769px) {
    .portal-container.hover-left .agency {
        width: 65%;
    }

    .portal-container.hover-left .magazine {
        width: 35%;
    }

    .portal-container.hover-left .separator {
        left: 65%;
    }

    .portal-container.hover-right .magazine {
        width: 65%;
    }

    .portal-container.hover-right .agency {
        width: 35%;
    }

    .portal-container.hover-right .separator {
        left: 35%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portal-container {
        flex-direction: column;
    }

    .split-section {
        width: 100%;
        height: 50%;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .separator {
        display: none;
    }
}