/* Estilo para el encabezado */
header {
    background-image: url('matrixblue.jpg'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #a6f8ff;
    text-align: center;
    text-shadow: 3px 3px 6px #000;
    padding: 20px;
    position: relative;
    height: 145px; /* Ajusta este valor para cambiar la altura de la primera sección */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinear al final */
    height: 100%; /* Asegurar que el contenido ocupe toda la altura del header */
}

/* Ajuste de la posición de SantiagoVF.png */
.header-img:first-child {
    width: 180px;
    height: auto;
    position: relative;
    bottom: -20px; /* Ajusta este valor para mover la imagen hacia abajo */
}

/* Ajuste de la posición del logo */
.header-img:last-child {
    width: 249px; /* Aumentar el tamaño del logo */
    height: auto;
    position: relative;
    bottom: -63px; /* Ajusta este valor para mover la imagen hacia abajo */
}

/* Estilo para el texto principal */
main {
    background-color: #a6f8ff;
    padding: 10px;
    position: relative;
}

.main-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30vh; /* Reducir la altura para ver toda la página */
    position: relative;
    z-index: 2;
}

.robot {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 16.6%; /* Limitar el espacio del robot a 1/6 */
    align-items: flex-end; /* Alinear al final */
    position: relative;
    bottom: -72px;
}

.robot img {
    width: 180px; /* Ajustar el tamaño del robot */
    height: auto;
}

/* Ajuste de la posición del texto */
.text-content {
    flex: 5;
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
    text-align: center; /* Centrando el texto */
    margin-left: -207px; /* Ajusta este valor para mover el texto más a la derecha */
}

#typing {
    white-space: pre-wrap;
}

.main-bottom {
    text-align: center;
    margin-top: 10px;
    font-weight: bold; /* Poner el texto en negrita */
    position: relative;
    z-index: 2;
}

/* Establece un fondo de color uniforme para el elemento body */
body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* Estilo para el pie de página */
footer {
    background-image: url('matrixblue.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #a6f8ff;
    text-align: center;
    text-shadow: 3px 3px 6px #000;
    padding: 10px;
}

/* Estilo para las imágenes de redes sociales */
ul li a img {
    width: 60px;
    height: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Animación de flotación para los iconos de redes sociales */
@keyframes flotando {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Aplicar la animación a los contenedores de cada icono */
ul li {
    animation: flotando 3s ease-in-out infinite;
}

/* Desfase en la animación de cada icono */
ul li:nth-child(1) {
    animation-delay: 0s;
}

ul li:nth-child(2) {
    animation-delay: 1s;
}

ul li:nth-child(3) {
    animation-delay: 2s;
}

/* Efecto de resplandor al pasar el cursor sobre las imágenes de redes sociales */
ul li a img:hover {
    transform: scale(1.5);
}

/* Estilo para la lista de redes sociales */
ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* Media Queries para Responsividad */

/* Dispositivos móviles */
@media (max-width: 768px) {
    header {
        padding: 10px;
        height: auto; /* Dejar que la altura se ajuste automáticamente en móviles */
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .header-img:first-child {
        width: 150px;
        position: relative;
        bottom: 0; /* Ajustar posición para móviles */
    }

    .header-img:last-child {
        width: 180px;
        position: relative;
        bottom: 0; /* Ajustar posición para móviles */
    }

    .main-top {
        flex-direction: column;
        align-items: center;
        height: auto;
        position: relative;
        z-index: 2;
    }

    .text-content {
        padding-left: 0;
        text-align: center;
        margin-left: 0;
    }

    main {
        font-size: 16px;
        padding: 5px;
    }

    ul li a img {
        width: 40px;
    }

    .robot img {
        width: 140px;
        position: relative;
        bottom:72px; /* Ajustar posición para móviles */
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 20px;
    }

    .header-img:first-child {
        width: 160px;
        position: relative;
        bottom: 0; /* Ajustar posición para tablets */
    }

    .header-img:last-child {
        width: 200px;
        position: relative;
        bottom: 0; /* Ajustar posición para tablets */
    }

    main {
        font-size: 17px;
        padding: 10px;
    }

ul li a img {
    width: 50px;
}

    .robot img {
        width: 140px;
        position: relative;
        bottom: 0; /* Ajustar posición para tablets */
    }
}

/* --- Matrix Effect --- */
#matrix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: rgba(0, 0, 80, 0.5);
    font-family: monospace;
    white-space: nowrap;
    animation-name: matrix-fall;
    animation-timing-function: linear;
}

@keyframes matrix-fall {
    from {
        top: -100%;
    }
    to {
        top: 100%;
    }
}
