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

body {
    font-family: 'Ubuntu Mono', monospace;
    background-color: #000;
    color: #0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Canvas para el efecto Matrix */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Título */
.title-container {
    text-align: center;
    margin: 5px 0 10px;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    margin-bottom: 20px;
    position: relative;
}

.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 12%, 15%, 52%, 55%, 82%, 85%, 100% {
        text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    }
    13%, 14%, 53%, 54%, 83%, 84% {
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(70px, 9999px, 85px, 0);
    }
    5% {
        clip: rect(28px, 9999px, 95px, 0);
    }
    10% {
        clip: rect(82px, 9999px, 64px, 0);
    }
    15% {
        clip: rect(1px, 9999px, 23px, 0);
    }
    20% {
        clip: rect(75px, 9999px, 53px, 0);
    }
    100% {
        clip: rect(65px, 9999px, 93px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 30px, 0);
    }
    5% {
        clip: rect(60px, 9999px, 65px, 0);
    }
    10% {
        clip: rect(10px, 9999px, 35px, 0);
    }
    15% {
        clip: rect(85px, 9999px, 70px, 0);
    }
    20% {
        clip: rect(65px, 9999px, 55px, 0);
    }
    100% {
        clip: rect(15px, 9999px, 95px, 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #0a0;
    text-shadow: 0 0 5px #0a0;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Contador de visitas */
.visits-counter {
    background-color: rgba(0, 20, 0, 0.7);
    border: 1px solid #0f0;
    border-radius: 5px;
    padding: 10px 20px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.visits-counter i {
    margin-right: 10px;
    color: #0f0;
}

/* Contenedor de píldoras */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .pills-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Píldoras */
.pill-wrapper {
    text-align: center;
    max-width: 300px;
}

.pill-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.pill-link:hover {
    transform: scale(1.05);
}

.pill {
    width: 150px;
    height: 300px;
    border-radius: 100px;
    position: relative;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.pill:hover {
    box-shadow: 0 0 40px;
}

.blue-pill {
    background: linear-gradient(135deg, #1a1aff, #0000cc, #000099);
    border: 3px solid #00f;
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.5);
}

.blue-pill:hover {
    box-shadow: 0 0 40px rgba(0, 0, 255, 0.8);
}

.red-pill {
    background: linear-gradient(135deg, #ff3333, #cc0000, #990000);
    border: 3px solid #f00;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.red-pill:hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
}

.pill-content {
    text-align: center;
    padding: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.pill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.pill-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pill-subtext {
    font-size: 1rem;
    opacity: 0.9;
}

.pill-description {
    color: #0a0;
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px;
    border-top: 1px dashed #0a0;
    margin-top: 10px;
}

/* Separador */
.separator {
    display: flex;
    align-items: center;
    color: #0f0;
    font-size: 1.5rem;
    font-weight: bold;
}

.line {
    height: 1px;
    width: 50px;
    background-color: #0f0;
}

.or {
    margin: 0 20px;
    text-shadow: 0 0 5px #0f0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #0a0;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #0a0;
}

.copyright {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #0f0;
}

.copyright i {
    margin-right: 5px;
}

.system-info {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Efectos de terminal */
.terminal {
    font-family: 'Ubuntu Mono', monospace;
    color: #0f0;
}

.terminal::after {
    content: "|";
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}