﻿/* ==================================================
   SITE.CSS — ArandaCL (FINAL)
   Tema oscuro + acento cian, profesional IT
   ================================================== */

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f1c2c, #192a3d);
    color: #e0e0e0;
    min-height: 100%;
}

a {
    color: #00aabb;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: #00e5ff;
    }

h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.highlight {
    color: #00aabb;
}

.main-content h2, .main-content h3 {
    text-align: center;
}

/* --- SIDEBAR LATERAL --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #111827;
    padding-top: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
    z-index: 20;
    transition: transform 0.3s ease;
}

    .sidebar .logo {
        text-align: center;
        margin-bottom: 36px;
    }

        .sidebar .logo img {
            width: 140px;
            max-width: 80%;
            filter: drop-shadow(0px 0px 2px #00aabb);
        }

    .sidebar .menu {
        list-style: none;
    }

        .sidebar .menu li {
            margin-bottom: 8px;
        }

            .sidebar .menu li a {
                display: block;
                padding: 12px 20px;
                color: #e0e0e0;
                border-left: 4px solid transparent;
                transition: all 0.3s ease;
                font-weight: 500;
            }

                .sidebar .menu li a:hover {
                    color: #00aabb;
                    background: rgba(0, 170, 187, 0.05);
                    border-left-color: #00e5ff;
                }

                .sidebar .menu li a.active {
                    color: #00aabb;
                    background: rgba(0, 170, 187, 0.1);
                    border-left-color: #00aabb;
                }

                .sidebar .menu li a i {
                    margin-right: 12px;
                    font-size: 1.1em;
                }

/* --- CONTENIDO PRINCIPAL --- */
.main-content {
    margin-left: 220px;
    padding: 30px 40px;
    transition: margin-left 0.3s ease;
}

/* --- ESTILOS DE PÁGINAS INDIVIDUALES --- */

/* landing */
.landing {
    padding: 60px 20px;
    text-align: center;
}

    .landing h1 {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .landing h2 {
        font-size: 1.5rem;
        color: #ddd;
        font-weight: 400;
        margin-bottom: 25px;
    }

    .landing p {
        max-width: 600px;
        margin: 0 auto 30px;
        line-height: 1.6;
        color: #bbb;
    }

/* projects & experience */
.projects-list, .experience-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-item, .experience-item {
    background: rgba(255, 255, 255, .03);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-item:hover, .experience-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .project-item h3, .experience-item h3 {
        color: #00aabb;
        margin-bottom: 8px;
    }

    .project-item p, .experience-item p {
        color: #ccc;
        line-height: 1.5;
    }

    .project-item a {
        display: inline-block;
        margin-top: 15px;
        padding: 8px 16px;
        border: 1px solid #00aabb;
        border-radius: 5px;
        color: #00aabb;
    }

/* skills */
.skills-list {
    display: flex;
    justify-content: center;
}

    .skills-list ul {
        list-style: none;
        background: rgba(255, 255, 255, .03);
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        max-width: 600px;
        width: 100%;
        margin-top: 20px;
    }

    .skills-list li {
        font-size: 1.1rem;
        padding: 10px 0;
        color: #ccc;
        border-bottom: 1px solid #3d4a5c;
    }

        .skills-list li:last-child {
            border-bottom: none;
        }

/* --- ESTILOS DE FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, .03);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

    .contact-form p {
        font-style: italic;
        text-align: center;
        margin-bottom: 25px;
        color: #ccc;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #00aabb;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px;
    background: #252a34;
    border: 1px solid #3d4a5c;
    color: #e0e0e0;
    border-radius: 5px;
    transition: all .3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #00aabb;
        box-shadow: 0 0 5px rgba(0, 170, 187, .5);
    }

    .form-control[type="text"],
    .form-control[type="email"],
    .form-control[textmode="MultiLine"] {
        height: 40px;
        resize: vertical;
    }

/* Estilo para los botones de enviar y redes sociales */
.btn-send,
.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    text-align: center;
    padding: 12px 24px;
    border-radius: 5px;
    background: #252a34;
    border: 1px solid #00aabb;
    color: #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

    .btn-send:hover,
    .contact-links a:hover {
        background: #00aabb;
        color: #fff;
        border-color: #00aabb;
        box-shadow: 0 2px 8px rgba(0, 170, 187, .4);
        transform: translateY(-2px);
    }

/* Estilos específicos para el botón del formulario de contacto */
.contact-form .btn-send {
    width: 100%;
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 15px;
}

.btn-send i {
    margin-right: 8px;
}

/* Estilo para los validadores de ASP.NET */
.form-group span[class$="Validator"] {
    display: block;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Estilo para la línea de separación */
.main-content hr {
    border: none;
    border-top: 1px solid #3d4a5c;
    margin: 40px auto;
    max-width: 600px;
}

/* --- ANIMACIÓN PARA REGISTROS DE BASE DE DATOS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicamos la animación a los elementos de las listas, la página de inicio y el formulario */
.projects-list .project-item,
.experience-list .experience-item,
.skills-list ul li,
.landing h1,
.landing h2,
.landing p,
.contact-links a,
.contact-form p,
.contact-form .form-group,
.contact-form .btn-send {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

/* Retraso para cada item, creando el efecto escalonado */
/* Default.aspx */
.landing h1 {
    animation-delay: 0.1s;
}

.landing h2 {
    animation-delay: 0.2s;
}

.landing p {
    animation-delay: 0.3s;
}

.landing .contact-links a:nth-child(1) {
    animation-delay: 0.4s;
}

.landing .contact-links a:nth-child(2) {
    animation-delay: 0.5s;
}

.landing .contact-links a:nth-child(3) {
    animation-delay: 0.6s;
}

/* Experiencia.aspx & Proyectos.aspx */
.projects-list .project-item:nth-child(1),
.experience-list .experience-item:nth-child(1) {
    animation-delay: 0.1s;
}

.projects-list .project-item:nth-child(2),
.experience-list .experience-item:nth-child(2) {
    animation-delay: 0.2s;
}

.projects-list .project-item:nth-child(3),
.experience-list .experience-item:nth-child(3) {
    animation-delay: 0.3s;
}

.projects-list .project-item:nth-child(4),
.experience-list .experience-item:nth-child(4) {
    animation-delay: 0.4s;
}

.projects-list .project-item:nth-child(5),
.experience-list .experience-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Skills.aspx */
.skills-list ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.skills-list ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.skills-list ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.skills-list ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.skills-list ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.skills-list ul li:nth-child(6) {
    animation-delay: 0.6s;
}

.skills-list ul li:nth-child(7) {
    animation-delay: 0.7s;
}

.skills-list ul li:nth-child(8) {
    animation-delay: 0.8s;
}

.skills-list ul li:nth-child(9) {
    animation-delay: 0.9s;
}

.skills-list ul li:nth-child(10) {
    animation-delay: 1.0s;
}

/* Contacto.aspx */
.contact-form p {
    animation-delay: 0.1s;
}

.contact-form .form-group:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-form .form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-form .form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.contact-form .btn-send {
    animation-delay: 0.5s;
}

/* --- LOGO EN LANDING PAGE (MÓVIL) --- */
.landing-logo-mobile {
    display: none; /* Ocultar por defecto */
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 768px) {
    .landing-logo-mobile {
        display: block; /* Mostrar solo en móvil */
        width: 220px; /* Logo aún más grande */
        margin: 0 auto 25px;
    }

        .landing-logo-mobile img {
            width: 100%;
            filter: drop-shadow(0px 0px 2px #00aabb);
        }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        padding: 10px 6px 8px; /* Reduje un poco el padding horizontal */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0,0,0,.35);
    }

        .sidebar .logo {
            display: none; /* Ocultar el logo del sidebar en móvil */
        }

        .sidebar .menu {
            display: flex;
            gap: 2px; /* Reduje el espacio entre los íconos */
            justify-content: space-around; /* Distribución uniforme */
            width: 100%; /* Ocupar todo el ancho */
        }

            .sidebar .menu li {
                margin: 0;
                flex-basis: auto; /* El tamaño del ítem se basa en el contenido */
                width: calc(20% - 2px); /* Ancho aproximado para 5 íconos con un pequeño espacio */
                text-align: center; /* Centrar el texto si es necesario */
            }

                .sidebar .menu li a {
                    padding: 8px 6px; /* Reduje un poco el padding interno */
                    border-left: none;
                    border-radius: 8px;
                    display: flex;
                    flex-direction: column; /* Ícono arriba, texto abajo (si es necesario) */
                    align-items: center;
                    justify-content: center;
                    font-size: 0.8rem; /* Reduje un poco el tamaño de la fuente si el texto es muy largo */
                }

                    .sidebar .menu li a::before {
                        display: none;
                    }

                    .sidebar .menu li a.active {
                        background: rgba(0,170,187,.12);
                        border-left: none;
                    }

    .main-content {
        margin-left: 0;
        padding: 28px 18px 80px; /* espacio para la barra inferior */
    }

    .landing {
        padding: 60px 16px 20px;
    }

        .landing h1 {
            font-size: 2.1rem;
        }

        .landing h2 {
            font-size: 1.15rem;
        }

        .landing p {
            font-size: 1rem;
        }

    .contact-links {
        gap: 12px;
    }

        .contact-links a {
            padding: 9px 14px;
            font-size: .95rem;
        }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

        .contact-links a {
            width: 100%;
            text-align: center;
        }
}
