/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
    background: #000;
    color: #f4f4f4;
    scroll-behavior: smooth;
}

/* === ANIMACIÓN GENERAL === */
.fade-in-page {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CONTENEDOR GENERAL === */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 1.5rem; /* un poco menos para pantallas grandes */
    position: relative;
}

/* === HEADER === */
.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem; /* menos margen */
    position: relative;
    z-index: 2;
}

/* Línea separadora debajo del header */
.header::after {
    content: "";
    position: absolute;
    bottom: -1rem; /* menos separación */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

/* Logo */
.header .logo img {
    height: 60px;
    transition: transform 0.3s;
}

.header .logo img:hover {
    transform: scale(1.05);
}

/* Navegación */
.header nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: #f4f4f4;
    font-weight: 500;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #00ff99;
}

/* Icono login */
.login-icon {
    height: 50px; /* adaptado al header */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.login-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .login-icon {
        height: 30px;
    }
}

/* === HERO === */
.hero {
    text-align: center;
    max-width: 700px;
    margin-bottom: 2rem; /* menos espacio */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem; /* menos espacio */
    color: #00ff99;
    font-weight: bold;
}

.hero p {
    margin-bottom: 1.5rem; /* menos espacio */
    color: #ccc;
    font-size: 1.1rem;
}

/* Botones principales */
.btn-primary {
    background: #00ff99;
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #00cc7a;
    transform: translateY(-3px) scale(1.05);
}

/* Contenedor botones */
.hero .btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem; /* menos espacio antes de la terminal */
}

/* === TERMINAL MODERNA === */
.terminal {
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.2rem; /* un poco menos */
    width: 800px;
    height: 320px; /* menos altura para que quepa en 16:9 */
    margin: 2rem auto; /* menos margen */
    color: #d1d1d1;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    overflow-y: hidden;
    line-height: 1.4;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Contenido interno terminal */
.terminal-content {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    overflow: hidden;
}

.terminal-user {
    color: #00ff66;
    font-weight: bold;
}

.terminal-output {
    color: #cccccc;
    display: block;
    white-space: pre;
    font-family: 'Fira Code', monospace;
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: #00ff66;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === FOOTER === */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem 0; /* menos espacio */
    color: #fff;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .terminal {
        width: 95%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .header nav {
        margin-top: 1rem;
    }

    .terminal {
        height: 280px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .terminal {
        height: 220px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero .btn-container {
        gap: 0.5rem;
    }
}
