/* appbase.com.mx - Estilo Terminal/Hacker */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.8;
    color: #00ff41;
    background: #000000;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0,255,65,0.03) 25%, rgba(0,255,65,0.03) 26%, transparent 27%, transparent 74%, rgba(0,255,65,0.03) 75%, rgba(0,255,65,0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0,255,65,0.03) 25%, rgba(0,255,65,0.03) 26%, transparent 27%, transparent 74%, rgba(0,255,65,0.03) 75%, rgba(0,255,65,0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    cursor: crosshair;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #0a0a0a;
    border-bottom: 3px solid #00ff41;
    padding: 1.8rem 0;
    box-shadow: 0 0 20px rgba(0,255,65,0.3);
    position: relative;
}

header::before {
    content: '>_';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #00ff41;
    opacity: 0.5;
    animation: blink 1s infinite;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0,255,65,0.8);
    letter-spacing: 3px;
    transition: text-shadow 0.3s;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(0,255,65,1);
}

nav a {
    color: #00ff41;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #00ff41;
    transition: all 0.3s;
    position: relative;
}

nav a::before {
    content: '$ ';
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px rgba(0,255,65,0.6);
    transform: scale(1.1);
}

.content {
    background: #0a0a0a;
    padding: 3rem;
    margin: 2.5rem 0;
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 20px rgba(0,255,65,0.2),
        inset 0 0 20px rgba(0,255,65,0.05);
    position: relative;
    animation: terminalGlow 2s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0,255,65,0.2),
            inset 0 0 20px rgba(0,255,65,0.05);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0,255,65,0.4),
            inset 0 0 30px rgba(0,255,65,0.1);
    }
}

.content::before {
    content: '//';
    position: absolute;
    top: 10px;
    left: 10px;
    color: #00ff41;
    opacity: 0.3;
    font-size: 1.5rem;
}

h1 {
    color: #00ff41;
    font-size: 3rem;
    text-align: center;
    padding: 3rem 0;
    text-shadow: 0 0 20px rgba(0,255,65,0.8);
    font-weight: bold;
    letter-spacing: 5px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0,255,65,0.8);
    }
    50% {
        text-shadow: 0 0 30px rgba(0,255,65,1), 0 0 40px rgba(0,255,65,0.5);
    }
}

h2 {
    color: #00ff41;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    border-bottom: 2px solid #00ff41;
    padding-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(0,255,65,0.5);
    transition: text-shadow 0.3s;
}

h2:hover {
    text-shadow: 0 0 20px rgba(0,255,65,0.8);
}

.code-box {
    background: #000000;
    border: 2px solid #00ff41;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0;
    font-family: 'Consolas', monospace;
    box-shadow: 
        0 0 20px rgba(0,255,65,0.3),
        inset 0 0 20px rgba(0,255,65,0.1);
    position: relative;
    transition: all 0.3s;
}

.code-box:hover {
    box-shadow: 
        0 0 30px rgba(0,255,65,0.5),
        inset 0 0 30px rgba(0,255,65,0.2);
    transform: translateX(5px);
}

.code-box::before {
    content: '```';
    position: absolute;
    top: 5px;
    left: 10px;
    color: #00ff41;
    opacity: 0.5;
}

footer {
    background: #000000;
    color: #00ff41;
    text-align: center;
    padding: 2.5rem 20px;
    border-top: 3px solid #00ff41;
    box-shadow: 0 -5px 20px rgba(0,255,65,0.2);
}

a {
    color: #00ff41;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    text-shadow: 0 0 10px rgba(0,255,65,0.8);
    text-decoration: underline;
}

p {
    color: #c9d1d9;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #00ff41;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff41; }
}
