/* portal.css - Estilos del portal principal iteck.mx */

:root {
    --bg-dark: #070c19;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #00f2fe;
    --primary-alt: #4facfe;
    --secondary: #00f2fe;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background overlay transition */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

/* Base glow effect */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.15), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.portal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem;
    z-index: 2;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Central Logo Section (Compactado para visualización completa sin scroll) */
.logo-container {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(12px);
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}

.logo-inner {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
}

.portal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.3rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.portal-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.portal-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
    color: var(--text-muted);
    font-weight: bold;
    text-indent: 0.3rem;
}

/* Intro Text (Compactado) */
.portal-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.portal-intro h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: #fff;
}

.portal-intro p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Grid of panels (Optimizado para viewports verticales pequeños) */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.portal-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.panel-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: var(--transition);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.portal-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.panel-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* Feature Checkmarks */
.feature-list {
    list-style: none;
    margin-bottom: 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex-grow: 1;
}

.feature-list li {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-list li svg {
    color: var(--primary);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Highlighted SuperVoucher Card */
.portal-panel.highlighted {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.badge-highlight {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #070c19;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.panel-btn {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    margin-top: auto;
}

/* Hover effects */
.portal-panel:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0, 242, 254, 0.08);
}

.portal-panel:hover .panel-glow {
    opacity: 1;
    transform: scale(1.2);
}

.portal-panel:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-alt) 100%);
    color: #000;
    transform: rotate(5deg) scale(1.1);
}

.portal-panel:hover h2 {
    color: #fff;
}

.portal-panel:hover .panel-btn {
    color: #fff;
    transform: translateX(4px);
}

/* Footer style */
.portal-footer {
    text-align: center;
    padding: 1.2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2;
    position: relative;
    width: 100%;
}

.portal-footer p {
    margin-bottom: 0.2rem;
}

.legal-disclaimer {
    max-width: 800px;
    margin: 0.2rem auto 0;
    opacity: 0.6;
    font-size: 0.72rem;
    line-height: 1.3;
}

/* Animations */
@keyframes pulseGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .panels-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 500px;
        margin: 0 auto 1.5rem;
    }
    .portal-panel {
        min-height: auto;
    }
}
