/* ===== ISVD Presentacion Interactiva ===== */
/* Mobile-first | Dark theme | Animated */

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

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #141428;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-orange: #ff6d00;
    --accent-blue: #2979ff;
    --accent-green: #00c853;
    --accent-pink: #ff1744;
    --gradient-main: linear-gradient(135deg, #ff6d00, #ff1744, #aa00ff);
    --font-main: 'Poppins', sans-serif;
    --font-display: 'Fredoka One', cursive;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    user-select: none;
}

#app {
    height: 100%;
    position: relative;
}

/* ===== SCREENS ===== */
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
    overflow: hidden;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ===== LANDING ===== */
.landing-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, #1a0a30 0%, var(--bg-dark) 70%);
    z-index: 0;
}

.landing-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, #ff6d0020, #2979ff20, #00c85320, #ff6d0020);
    animation: rotateBg 15s linear infinite;
}

@keyframes rotateBg {
    to { transform: rotate(360deg); }
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    padding-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-pulse {
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-landing {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 109, 0, 0.5));
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.landing-title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.landing-title .line1 {
    display: block;
    font-size: 2.2rem;
    color: var(--text-secondary);
    animation: slideDown 0.8s ease both;
}

.landing-title .line2 {
    display: block;
    font-size: 2.8rem;
    animation: slideUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease 0.5s both;
}

/* ===== GLOW BUTTON ===== */
.btn-glow {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--gradient-main);
    color: white;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    animation: fadeIn 1s ease 0.7s both, glowPulse 2s ease-in-out 1.7s infinite;
    transition: transform 0.2s ease;
}

.btn-glow:active {
    transform: scale(0.95);
}

.btn-glow span {
    position: relative;
    z-index: 2;
}

.btn-ripple {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: var(--gradient-main);
    filter: blur(15px);
    opacity: 0.6;
    z-index: 0;
    animation: ripplePulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px #ff6d0060; }
    50% { box-shadow: 0 0 40px #ff6d00a0, 0 0 60px #ff174440; }
}

@keyframes ripplePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.expo-badge {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1s both;
}

/* Floating shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.floating-shapes::before {
    width: 200px;
    height: 200px;
    background: var(--accent-orange);
    top: 10%;
    right: -50px;
    animation: float1 8s ease-in-out infinite;
}

.floating-shapes::after {
    width: 150px;
    height: 150px;
    background: var(--accent-blue);
    bottom: 15%;
    left: -40px;
    animation: float2 6s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* ===== COUNTER SCREEN ===== */
.counter-content {
    text-align: center;
}

.big-number {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    animation: fadeIn 0.6s ease 0.3s both;
}

.counter-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1.5rem;
    animation: fadeIn 0.6s ease 0.5s both;
}

.counter-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: dotBounce 1.5s ease-in-out infinite;
}

.counter-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.counter-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* ===== CAREER CARDS ===== */
.career-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    z-index: 20;
}

.logo-tiny {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.7;
}

.card-counter {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.cards-container {
    width: 100%;
    height: 100%;
    position: relative;
    touch-action: pan-y;
}

.career-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 4.5rem 1.5rem 2rem;
    background: var(--bg-dark);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.career-card.active {
    transform: translateX(0);
}

.career-card.exit-left {
    transform: translateX(-100%);
}

.career-card.exit-right {
    transform: translateX(100%);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px var(--card-glow));
}

.card-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--card-color);
}

.card-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, var(--card-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hook {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-official {
    font-size: 0.72rem;
    color: var(--card-color);
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.card-resolution {
    font-size: 0.62rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.card-facts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.fact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fact-icon {
    font-size: 1.2rem;
}

.fact-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-personality {
    margin-bottom: 1rem;
}

.personality-label {
    font-size: 0.8rem;
    color: var(--card-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: var(--card-glow);
    border: 1px solid var(--card-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--card-color);
}

.card-swipe-hint {
    text-align: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-swipe-hint span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ===== NAVIGATION ARROWS ===== */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.15);
}

.nav-arrow:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.nav-arrow-left {
    left: 0.5rem;
}

.nav-arrow-right {
    right: 0.5rem;
}

/* ===== EXPANDABLE SECTIONS ===== */
.card-expandable {
    margin-bottom: 0.5rem;
}

.expand-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.expand-toggle:active {
    background: rgba(255, 255, 255, 0.08);
}

.expand-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--card-color);
}

.expand-toggle.open .expand-arrow {
    transform: rotate(180deg);
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expand-content.open {
    max-height: 300px;
}

.expand-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0 0.25rem;
}

.subject-item,
.job-item {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--card-color);
}

.job-item {
    border-left-color: var(--card-color);
}

/* Swipe indicator */
.swipe-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.swipe-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-orange);
}

/* ===== CTA SCREEN ===== */
.cta-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: slideUp 0.6s ease 0.2s both;
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease 0.4s both;
}

.cta-stand {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease 0.5s both;
}

.stand-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stand-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-btn {
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease 0.6s both;
}

.cta-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    animation: fadeIn 0.6s ease 0.8s both;
}

.cta-link:active {
    opacity: 1;
}

/* Confetti container */
.cta-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes numberPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-enter-anim {
    animation: cardEnter 0.5s ease both;
}

/* ===== TABLETS+ ===== */
@media (min-width: 768px) {
    .landing-title .line1 { font-size: 3rem; }
    .landing-title .line2 { font-size: 3.8rem; }
    .landing-sub { font-size: 1.2rem; }

    .big-number { font-size: 12rem; }

    .career-card {
        padding: 5rem 3rem 3rem;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 24px;
        inset: 2rem;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .nav-arrow-left { left: 1.5rem; }
    .nav-arrow-right { right: 1.5rem; }

    .card-title { font-size: 2.8rem; }
    .card-icon { font-size: 4.5rem; }

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

/* Scrollbar hidden on cards */
.career-card::-webkit-scrollbar {
    display: none;
}

.career-card {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
