@import
url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
* { box-sizing: border-box; }

body{
    font-family: 'Poppins',Arial,sans-serif;
    margin: 0;
    padding: 40px 20px;
    min-height:  100vh;
    background: linear-gradient(135deg, #ee6840 30%,  #ffbb00 100%);
}
h1{
    background: white;
    color: #2c3e50;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 30px 20px 10px;
    margin: 0 auto;
    max-width: 600px;
}
.start_page{
    background: white;
    color: #2c3e50;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto;
    padding: 0px 0px;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-radius: 20px 20px 0 0;
}
h2{
    background: white;
    text-align: center;
    margin: 0 auto;
    max-width:  600px;
    padding:  0 30px;
    color: #6a11cb;
    font-weight: 600;
}
.subtitulo{
    color: #2575fc;
    font-weight: 600;
    letter-spacing:  0.5px;
}
p{
    background: white;
    color: #444;
    line-height: 1.7;
    padding: 15 40px;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}
/*#foto-container{
    background:  white;
    text-align: center;
    padding: 25px;
    margin:  0 auto;
    max-width:  600px;
}
.foto-perfil{
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(white,white) padding-box,
                          linear-gradient(135deg, #6a11cb,#2575fc) border-box;
    box-shadow: 0 8px 20px rgba(106,17,203,0.35);
    transition: transform 0.3s ease;
}
.foto-perfil:hover{
    transform: scale(1.08) rotate(-2deg);
}*/

#foto-container {
    background: white;
    text-align: center;
    padding: 25px;
    margin: 0 auto;
    max-width: 600px;
    position: relative;
}

.foto-perfil {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(white,white) padding-box,
                          linear-gradient(135deg, #6a11cb, #2575fc) border-box;
    box-shadow: 0 8px 20px rgba(106,17,203,0.35);
    transition: transform 0.3s ease;
}

.main {
    position: relative;
    z-index: 2;
    transition: opacity 0.7s ease;
}

.alias {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    z-index: 1;
    opacity: 0;
    
}

/* On hover of main, alias slides right + tilts */
.main:hover{
    opacity: 0;

}
.main:hover ~ .alias {
    opacity: 1;
}
.main:hover ~ #change_image_text .texto-normal{
    display: none;
}
.texto-hover{
    display: none;
}
.main:hover ~ #change_image_text .texto-hover{
    display: inline;
}


ul{
    list-style-type: none;
    background: white;
    margin: 0 auto;
    max-width:  600px;
    padding: 10px 40px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
/*.external_link{
    background: linear-gradient(135deg, #6a11cb,#2575fc);
    color: white;
    padding: 10px 18px;
    border-radius:  30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.external_link:hover{
    background: linear-gradient(135deg, #ee6840,#ffbb00);
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 117, 252, 0.45);
}*/

.external_link {
    position: relative;
    z-index: 1;
    display: inline-block; /* Asegura el correcto funcionamiento de transform */
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
    overflow: hidden; /* Mantiene el gradiente dentro de los bordes redondeados */
    
    /* Agregamos 'color' y '0.3s ease' para una transición uniforme */
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Capa superior oculta con el gradiente de hover */
.external_link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ee6840, #ffbb00);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease; /* Transición del gradiente */
}

.external_link:hover  {
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 117, 252, 0.45);
}

.external_link i {
    position: relative;
    font-size: 1.1rem;
    left: -5px;
    transition: transform 0.3s ease;
}

.external_link:hover i{
    transform: scale(1.5) rotate(-10deg) translateX(-2px);
}

/* Al pasar el mouse, revelamos progresivamente el nuevo gradiente */
.external_link:hover::before {
    opacity: 1;
}

li {
    position: relative;
    z-index: 1;
    display: inline-block; /* Asegura el correcto funcionamiento de transform */
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
    overflow: hidden; /* Mantiene el gradiente dentro de los bordes redondeados */
    
    /* Agregamos 'color' y '0.3s ease' para una transición uniforme */
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Capa superior oculta con el gradiente de hover */
li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ee6840, #ffbb00);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease; /* Transición del gradiente */
}

li:hover  {
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 117, 252, 0.45);
}

li i {
    position: relative;
    font-size: 1.1rem;
    left: -5px;
    transition: transform 0.3s ease;
}

/* Mueve únicamente el icono de CSS 1px a la izquierda */
.fa-css3 {
    position: relative;
    left: 5px;
}

/* Al pasar el mouse, revelamos progresivamente el nuevo gradiente */
li:hover::before {
    opacity: 1;
}

.end_page {
    display: flex;             /* Cambiado de block a flex */
    justify-content: center;   /* Centra los botones horizontalmente */
    flex-wrap: wrap;           /* Permite que bajen si no caben en pantalla */
    gap: 10px;                 /* <--- ESPACIADO ENTRE BOTONES */
    
    background: rgb(228, 232, 236);
    color: #2575fc;
    padding: 25px 40px 30px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 20px 20px;
}