:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-red: #FF0000;
    --color-blue: #0000FF;
    --color-purple: #8800FF;
    --color-orange: #FF8800;
    --color-yelow: #FFFF00;
    --color-white-blue: #5b638e;
    --color-white-blue-index: #dedfe5;
    --color-dark-gray: #0D0D0D;
    --color-black-transparent : rgba(0, 0, 0, 0.49);


    --font-size-medium: 16px;
}
* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgb(146, 146, 146);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-black);
    box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.4);
    padding: 5px;
    height: 8%;
}
.content {
    justify-content: center;
    align-items: center;
    margin: auto;
}

.logo-container {
    flex: 1;
}

#logo {
    height: 60px;
    margin-left: 20px;
}


.menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.5s ease;
    white-space: nowrap;
}
/* #000000 */
nav ul li a:hover {
    background-color: var(--color-dark-gray);
    color: var(--color-white-blue);
}
/*Estilo de los iconos de los idiomas */
.language-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Estilo para cada elemento de la lista */
.language-options li {
    display: inline-block;
}

/* Estilo para el enlace dentro de cada elemento de la lista */
.language-options li a {
    display: block;
    text-decoration: none; /* Quitar subrayado del enlace */
    padding: 5px; /* Espaciado dentro del enlace */
}

/* Estilo para la imagen dentro del enlace */
.language-options li a img {
    border-radius: 50%;
    height: 25px;
    margin-right: 10px;
    margin-top: 2px;
    transition: transform 0.3s ease; /* Agregar una transición para suavizar el hover */
}

p#second-message {
    margin-bottom: 3em;
}

#button-download {
    text-decoration: none;
    background: linear-gradient(to right, var(--color-black), var(--color-purple));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Cambiar el cursor al pasar sobre el enlace */
.language-options li a:hover {
    cursor: pointer;
}

/* Agregar sombra sutil al pasar sobre la imagen */
.language-options li a:hover img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.index-main {
    height: 86%;  /* volvemos a tu sistema 8 + 86 + 6 = 100 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;  /* solo padding horizontal */
    background: radial-gradient(circle at top left, #1f2937 0, #020617 55%, #000000 100%);
}

/* Estilo de index */
.index-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
}

.index-img-content {
    flex: 0 0 320px;           /* ancho fijo para la foto */
    display: flex;
    justify-content: center;
}

.index-img-content img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* Columna de texto */
.index-text-content {
    flex: 1;
    color: var(--color-white);
    padding: 0;
    margin: 0;
}

.index-text-content-presentation {
    max-width: 520px;
}

/* Nombre grande pero más controlado, responsive */
.index-text-content h1 {
    font-size: clamp(3rem, 4vw + 1rem, 4.2rem); /* MÁS GRANDE */
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.1;
}

/* Título del rol debajo del nombre */
.role-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-white-blue-index);
}

/* Línea(s) de tecnologías principales */
.role-stack {
    margin: 8px 0 22px;
    font-size: 0.92rem;
    color: rgba(169, 174, 196, 0.88); /* -12% opacidad, más suave */
    letter-spacing: 0.06em; /* un pelín más de aire */
    word-spacing: 0.12em;
}

/* Estilo más suave para los separadores "·" */
.role-stack span.separator {
    color: rgba(169, 174, 196, 0.55); /* gris más leve */
}
/* Párrafos de bienvenida */
.index-text-content p {
    margin: 0 0 12px;
    font-size: 1.05rem; /* MÁS GRANDE */
    line-height: 1.75; /* MÁS CÓMODO */
    color: #e6e9f0; /* un pelín más luminoso */
}



p#second-message {
    margin-bottom: 1.8em;
}

/* Botón CV */
#button-download {
    margin-top: 6px;   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    background-size: 200% 100%;
    background-position: 0 0;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition:
        background-position 0.35s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

#button-download:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
}

/* Fila de iconos de lenguajes */
.index-text-content-languages {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

/* Etiqueta “Stack principal:” */
.index-text-content-languages::before {
    content: "STACK PRINCIPAL:";
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(185, 146, 255, 0.9); /* púrpura suave */
    margin-right: 8px;
}

.index-text-content-languages .tech {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    padding: 3px;
    background: radial-gradient(circle at 30% 0,
        rgba(190, 140, 255, 0.35),
        rgba(24, 31, 66, 0.95)
    );
    box-shadow:
        0 0 0 1px rgba(190, 140, 255, 0.45),
        0 10px 18px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.index-text-content-languages .tech img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(0.15);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        filter 0.2s ease;
}

.index-text-content-languages .tech img.show {
    opacity: 0.9;
    transform: translateY(0);
}

.index-text-content-languages .tech:hover {
    transform: translateY(-2px) scale(1.03);
    background: radial-gradient(circle at 30% 0,
        rgba(211, 163, 255, 0.55),
        rgba(24, 31, 66, 1)
    );
    box-shadow:
        0 0 0 1px rgba(211, 163, 255, 0.65),
        0 14px 26px rgba(0, 0, 0, 0.85);
}

.index-text-content-languages .tech:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.index-text-content,
.index-img-content {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.index-text-content.show,
.index-img-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación específica para los iconos de lenguajes (mantengo tu lógica) */
.index-text-content-languages img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.index-text-content-languages img.show {
    opacity: 1;
    transform: translateY(0);
}

.js-logo {
    border-radius: 10px;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Dejo tu bloque comentado por si lo reactivas más adelante */
.index-text-content-education img {
    margin-top: 20px;
    height: 75px;
}

/*Página del formulario*/
.form_content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-dark-gray);
    
}
.form_column {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    margin: auto;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.msg_column {
    margin-left: 2%;
    color: var(--color-white);
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.msg_column, .form_column {
    animation: fadeIn 2s;
}
textarea {
    resize: none !important;
}

footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--color-black);
    color: rgb(255, 255, 255);
    height: 6%;
}
footer p {
    margin-left: 10px;
    margin: 0;

}
footer ul {
    margin-right: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
}

footer ul li {
    list-style: none;
    margin: 0 10px;
    position: relative;
    
}
footer ul li img {
    height: 40px;
    position: relative;
    z-index: 1;
}
footer ul li:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 0 10px 5px white;
}
body::before{
    content: '';
    background: rgba(0, 4, 9, 0.3);
    filter: blur(100px);
    width: 300px;
    height: 300px;
    position: absolute;
}

/* Menú hamburguesa para vista movil */
.menu-toggle {
    display: none; /* Ocultar por defecto en pantallas grandes */
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
}

.line {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: transform 0.3s ease;
}

/* Rotación de las líneas para abrir/cerrar el menú */
.menu-open .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-open .line:nth-child(2) {
    opacity: 0;
}

.menu-open .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* VISTA MOVIL */
/* VISTA MOVIL */
@media (max-width: 768px) {

    body {
        width: 100%;
        max-width: 412px;
        margin: 0 auto;
        background: none;
    }

    *, ::after, ::before {
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .index-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 1.5rem;
        position: relative;
        padding-left: 0;
        padding-right: 0;
        height: auto;
        min-height: 86vh;
    }

    .index-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: transparent;
        gap: 1.5rem;
    }

    .index-img-content {
        position: static;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .index-img-content img {
        max-width: 200px;
        width: 100%;
        height: auto;
    }

    .index-text-content {
        position: static;
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0 1rem 0.8rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .index-text-content h1 {
        font-size: clamp(2.1rem, 6vw, 2.6rem);
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }

    .index-text-content p {
        max-width: 100%;
        word-wrap: break-word;
        z-index: 1;
        font-size: 0.95rem;
        line-height: 1.55;
        text-align: center;
    }

    .role-title {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }

    .role-stack {
        font-size: 0.85rem;
        margin: 0.15rem 0 0.9rem;
    }

    #button-download {
        margin-top: 0.4rem;
        margin-bottom: 0.9rem;
        padding: 0.55rem 1.3rem;
        font-size: 0.9rem;
        align-self: center;
    }

    .index-text-content-presentation {
        max-width: 420px;
    }

    p#second-message {
        margin-bottom: 1.1rem;
    }

    .index-text-content-languages::before {
        content: none;
    }

    .index-text-content-languages {
        width: 100%;
        margin: 0.8rem 0 0.2rem;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
    }

    .index-text-content-languages .tech {
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .index-text-content-languages .tech img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 999;
    }

    #logo {
        margin-left: 80px;
    }

    .line {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px;
        transition: transform 0.3s ease;
    }

    .menu-open .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .line:nth-child(2) {
        opacity: 0;
    }

    .menu-open .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-container {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--color-black-transparent);
        padding: 20px;
        box-sizing: border-box;
        z-index: 1000;
    }

    .menu-container.active {
        display: block;
    }

    .menu-container nav ul {
        display: block;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .menu-container nav ul li {
        margin-bottom: 10px;
        display: block;
    }

    .menu-container nav ul li a {
        display: block;
        color: white;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .menu-container nav ul li a:hover {
        color: var(--color-white-blue);
    }

    .form_content {
        display: flex;
        flex-direction: column;
    }

    .form_column {
        margin-bottom: 100px;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .msg_column {
        margin-top: 50px;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    footer ul li img {
        height: 20px;
        margin-right: 10px;
    }

    footer p {
        font-size: 10px;
    }
}


