
body{
    background-color: #0f111a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0px;
    display: flex;
    justify-content: center;
    padding: 0px;
    font-family: 'Poppins', sans-serif;
}

.portafolio-container{
    width: 100%;
    max-width: 800px;
    background-color: #151824;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- BANNER PRINCIPAL --- */
.header-banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Deja el texto arriba y empuja la interacción abajo */
    align-items: center;
    position: relative;
    height: 360px; /* Le damos un poco más de aire para que quepa todo */
    border-radius: 5px;
    margin-top: 0px; /* Quitamos el margen negativo raro */
    padding: 30px 20px 0 20px;
    box-sizing: border-box;
}


.header-banner::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("banner.webp");
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
    z-index: 0;
}

.header-banner:hover::before{
    transform: scale(1.025);
}

/* Todo el contenido del banner queda encima de la imagen */
.header-banner > *{
    position: relative;
    z-index: 1;
}


.header-profile-pic {
    margin-top: -60px;
    border-radius: 50%;
    border: 3px solid #7c3aed; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.header-button {
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-personal h1{
margin: 0;
font-size: 1.6rem;
text-shadow: 0px 2px 4px rgb(0,0,0,0.4);
}

.foto-perfil {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #151824;
    object-fit: cover;
    flex-shrink: 0; /* Evita que se deforme */
    box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
}

.contenido-principal{
    padding: 20px;
}

.tarjeta-servicio{
    background-color: #2b2b2b;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,.08);

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;

    transition: transform .3s ease, box-shadow .3s ease;

    min-height: 260px;
    height: auto;

    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.tarjeta-servicio::before{
    content:"";
    position:absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
    
    transform: skewX(-25deg);

    background: linear-gradient(
        120deg,
        transparent,
        rgba(168,85,247,.18),
        rgba(59,130,246,.18),
        rgba(236,72,153,.18),
        transparent
    );


}

.tarjeta-servicio:hover::before{
    animation: brillo .8s ease;
    left: 170%;
}

.tarjeta-servicio:hover{
    transform: translateY(-10px);

    box-shadow:
        0 0 20px rgba(139,92,246,.25),
        0 0 40px rgba(59,130,246,.12);
}

.tarjeta-servicio h3{
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.tarjeta-servicio p{
    color: #b8b8b8;
    line-height: 1.7;
    font-size: .95rem;
    margin-bottom: 22px;
}

.defecto-oculto{
    display: none;
}

@keyframes fadeIn {
    from{ opacity: 0; transform: translateY(10px);}
    to{opacity: 1; transform: translateY(0)}
}

.btn-contacto{

    transition:
    transform .30s,
    background .30s,
    box-shadow .30s;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    width:180px;
    height:48px;

    text-decoration:none;

    color:white;

    border-radius:18px;

    background:rgba(21,24,36,.75);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);


    font-weight:600;

}

.btn-contacto:hover{
   transform: translateY(-4px);
   background: linear-gradient(
    135deg,
        #8b5cf6,
        #3b82f6,
        #ec4899
   );
   
   color: white;
   box-shadow: 0 0 20px rgba(139, 92, 246, .35);
}

.foto-bio{
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: #22263f;
}

.txt-bio{
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1d5db;
}

.btn-pestana{
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.seccion-bloque{
    animation: fadeIn 0.4s ease;
}

.foto-bio{
    width: 180px;

    height: 230px;

    object-fit: cover;

    display: block;

    margin: 0 auto 25px;

    border-radius: 18px;

    border: 2px solid rgba(255, 255, 255, 0.8);

   
}

.defecto-oculto{
    display: none;
}

.info-personal {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contactos-banner{

    display:flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top:60px;
    flex-wrap: wrap;

}

/* ========================= */
/* BARRA DE NAVEGACIÓN */
/* ========================= */

.pestana-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px auto 30px auto; 
}

.btn-pestana{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 22px;

    background: #22263f;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 14px;

    color: #bcbcbc;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all .35s ease;

}

.btn-pestana i{
    font-size:18px;
    transition:.35s;
}

.btn-pestana:hover{

    transform: translateY(-4px);

    color:white;

    border-color:#8b5cf6;

    box-shadow:
        0 0 20px rgba(139,92,246,.30);

}

.btn-pestana:hover i{

    transform:rotate(-10deg) scale(1.15);

}

.btn-pestana.active{

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #3b82f6
    );

    color:white;

    box-shadow:
        0 0 25px rgba(139,92,246,.45);

    border:none;

}

.info-personal h1 {
    font-size: 42px; /* Un tamaño más responsivo de base */
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 3px 10px rgba(0,0,0,.35);
}

.info-personal p{
    font-size: 15px;
    color: white;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.contenedor-tarjetas{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.icono-servicio{
    font-size: 55px;
    color: #8b5cf6;
    margin-bottom: -20px;
    transition: all .35s ease;

    
}

.tarjeta-servicio:hover .icono-servicio{
    transform: scale(1.12);
    color: #ec4899;
}

.ver-mas{
    font-size: .9rem;
    font-weight: 600;
    color: #8b5cf6;
    transition: all .35s ease;
}

.tarjeta-servicio:hover .ver-mas{
    color: #ec4899;
    transform: translateX(8px);
}

@keyframes brillo{
    from{
        left: -120%;
    }

    to{
        left: 160%;
    }
}

#sec-sobremi h2{
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.tarjeta-bio{

    background:#232323;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding: 35px;

    margin-top:35px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.30);
    max-width: 760px;
    margin: 35px auto;

}

.cargo-bio::after{

    content:"";

    display:block;

    width:90px;

    height:4px;

    margin:22px auto;

    border-radius:30px;

    background:linear-gradient(
        90deg,
        #8b5cf6,
        #3b82f6,
        #ec4899
    );

}

.habilidades-bio{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin:30px 0;

}

.habilidades-bio span{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:30px;

    background:#2b2b2b;

    border:1px solid rgba(255,255,255,.08);

    color:white;

    font-size:.9rem;

    font-weight:600;

    transition:.35s;

}

.habilidades-bio span i{

    color:#8b5cf6;

}

.habilidades-bio span:hover{

    transform:translateY(-4px);

    border-color:#8b5cf6;

    box-shadow:
    0 0 20px rgba(139,92,246,.25);

}

.footer{
    margin-top: 70px;
    padding: 25px 20px;
    text-align: center;
    opacity: .55;
}

.linea-footer{
    width: 70%;
    height: 1px;
    margin: 0 auto 18px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
}

.footer p{
    margin: 0;
    font-size: .9rem;
    color: #bdbdbd;
}

.footer span{
    display:block;
    margin-top:8px;
    font-size:.78rem;
    color:#7d7d7d;
}

/* ===========================
   RESPONSIVE CELULAR
=========================== */

@media (max-width: 768px) {
    .header-banner {
        height: auto; /* Que crezca según el texto en móvil */
        padding-bottom: 70px; /* Espacio para que no se encima la foto */
    }

    .info-personal h1 {
        font-size: 32px; /* Más chico en celular */
    }

    /* En móvil rompemos la fila para que no se amontone horizontalmente */
    .profile-interaction-container {
        position: absolute;
        bottom: -90px; /* Lo bajamos más porque los botones se apilarán abajo */
        flex-direction: column; /* Apilados: Foto arriba, botones abajo */
        gap: 10px;
    }

    /* La foto se queda arriba de los botones en la pila */
    .foto-perfil {
        width: 95px;
        height: 95px;
        order: 1; /* Obliga a la foto a ir primero */
    }

    /* Los botones se acomodan abajo ordenados */
    .profile-interaction-container .btn-contacto {
        order: 2; /* Van después de la foto */
        width: 200px;
        height: 42px;
    }

    /* Empujamos el menú de navegación principal hacia abajo para que libre los botones */
    .pestana-nav {
        margin-top: 110px;
    }
}

.profile-interaction-container {
    position: absolute;
    bottom: -24px; /* Hace que flote exactamente a la mitad del borde del banner */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row; /* Fila en PC: Botón | Foto | Botón */
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 3;
    width: 100%;
    max-width: 600px;
}