/* portal.css - Grupo Óptico Portal */

:root {
    --primary-blue: #0A2540;
    --accent-cyan: #00D4FF;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --card-glow-retail: rgba(0, 122, 255, 0.25);
    --card-glow-wholesale: rgba(0, 212, 255, 0.25);
}

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

body {
    font-family: var(--font-sans);
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    background-color: #030712;
}

/* Background & Overlays */
.portal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: blur(4px) brightness(0.5);
    transform: scale(1.05);
}

.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 37, 64, 0.6) 0%, rgba(3, 7, 18, 0.9) 100%);
    z-index: -1;
}

/* Main Container */
.portal-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

/* Header */
.portal-header {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 10px 40px;
}

.portal-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 60px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0) 75%);
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.55));
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.brand-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.05);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-brand:hover {
    transform: scale(1.12);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 80%);
    filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.45));
}

.portal-brand:hover .brand-logo {
    transform: scale(1.06);
}

.divider-line {
    display: none;
}

.portal-brand.wholesale h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #ffffff;
    letter-spacing: 2px;
}

.portal-brand.wholesale h1 span {
    color: var(--accent-cyan);
}

/* Video Showcase Section */
.video-frame {
    width: 100%;
    max-width: 650px;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.6) 100%);
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
}

.video-badge i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Selection Section */
.selection-section {
    text-align: center;
    width: 100%;
}

.selection-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* Options Grid & Cards */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.option-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 40px 30px;
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#card-retail:hover .card-glow {
    box-shadow: 0 0 40px var(--card-glow-retail);
    opacity: 1;
}

#card-wholesale:hover .card-glow {
    box-shadow: 0 0 40px var(--card-glow-wholesale);
    opacity: 1;
}

.option-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.75);
}

.icon-header {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.option-card:hover .icon-header {
    transform: scale(1.1) rotate(2deg);
}

.option-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 70px;
}

/* Portal Buttons */
.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-retail {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: #ffffff;
}

.btn-wholesale {
    background: linear-gradient(135deg, #0A2540, #113f6e);
    color: #ffffff;
    border: 1px solid var(--accent-cyan);
}

.btn-retail:hover {
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.btn-wholesale:hover {
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Hover List Panels */
.hover-panel {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* Hover panel triangle pointer */
.hover-panel::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.option-card:hover .hover-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hover-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.hover-panel ul {
    list-style: none;
}

.hover-panel ul li {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.hover-panel ul li i {
    color: var(--accent-cyan);
    margin-top: 3px;
    font-size: 0.85rem;
}

/* Portal Footer */
.portal-footer {
    width: 100%;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 800px) {
    .options-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
    }
    
    .portal-header {
        padding: 12px 20px;
        gap: 20px;
    }
    
    .brand-logo {
        height: 38px;
    }
    
    .portal-brand.wholesale h1 {
        font-size: 20px;
    }
    
    .video-frame {
        height: 180px;
    }
    
    /* Disable hover panels on mobile, show them inside cards or handled via JS tap */
    .hover-panel {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: none; /* Controlled by JS toggle on mobile click */
    }
    
    .hover-panel::after {
        display: none;
    }
    
    .option-card.active .hover-panel {
        display: block;
    }
}
