/* style.css */
:root {
    --ws-color: #25D366;
    --mail-color: #007bff;
    --web-color: #ff0000;
    --addr-text: #f1c40f; /* Amarillo */
    --bg-card: #ffffff;
}

/* Estilo General */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Contenedor PWA */
.pwa-container {
    width: 360px;
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    padding-bottom: 20px;
}

.header-img {
    width: 100%;
    height: 180px;
    background: transparent; /* El fondo morado que ya tienes */
    position: relative;
    display: flex;       /* Esto ayuda a posicionar cosas dentro */
    justify-content: center;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background: #eee;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover; /* Esto recortará tu foto 400x711 para que encaje perfecto en el círculo */
    z-index: 10;
}

.info {
    margin-top: 50px; /* Espacio para que no choque con la foto centrada */
    padding: 0 20px;
    text-align: center; /* Asegura que el nombre y cargo estén centrados */
}

/* --- BOTONES --- */
.btn-list {
    padding: 20px;
}

.btn {
    position: relative;
    height: 55px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

/* Capa de Blur y Color */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15px;
}

.btn i {
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.4s ease;
}

.text-wrapper {
    position: relative;
    flex: 1;
    height: 20px;
}

.label, .data {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.data { opacity: 0; transform: translateY(20px); color: white; }

/* HOVER STATES */
.btn:hover::before { opacity: 1; backdrop-filter: blur(10px); }

.btn-ws .label { color: var(--ws-color); }
.btn-ws:hover::before { background: var(--ws-color); }

.btn-mail .label { color: var(--mail-color); }
.btn-mail:hover::before { background: var(--mail-color); }

.btn-web .label { color: var(--web-color); }
.btn-web:hover::before { background: var(--web-color); }

.btn-addr .label { color: var(--addr-text); }
.btn-addr:hover::before { background: var(--web-color); } /* Fondo rojo */

/* Animación de salida/entrada de texto */
.btn:hover .label { opacity: 0; transform: translateY(-20px); filter: blur(2px); }
.btn:hover .data { opacity: 1; transform: translateY(0); }
.btn:hover i { color: white !important; }

/* --- REDES SOCIALES --- */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    font-size: 24px;
    filter: grayscale(100%);
    color: #555;
    transition: all 0.4s ease;
    text-decoration: none;
}

.fa-instagram:hover { filter: grayscale(0); color: #E1306C; }
.fa-facebook:hover { filter: grayscale(0); color: #4267B2; }
.fa-twitter:hover { filter: grayscale(0); color: #1DA1F2; }
.fa-linkedin:hover { filter: grayscale(0); color: #0077B5; }

/* FEEDBACK TÁCTIL (Hundido) */
.btn:active, .social-icon:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}