/* VCard Styles - Archivo CSS separado */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #191c23;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: rgb(32, 32, 32);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: auto;
    background-color: #000000;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        0 20px 40px rgba(0,0,0,0.2),
        0 30px 60px rgba(0,0,0,0.1);
}

.container::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    right: 8px;
    height: 8px;
    background: #3a3a3a;
    border-radius: 8px 8px 0 0;
    z-index: -1;
}

.container::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 16px;
    right: 16px;
    height: 8px;
    background: #4a4a4a;
    border-radius: 8px 8px 0 0;
    z-index: -2;
}

.container .shadow-layer-3 {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 24px;
    right: 24px;
    height: 8px;
    background: #5a5a5a;
    border-radius: 8px 8px 0 0;
    z-index: -3;
}

/* Banner Section */
.banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.profile-picture {
    width: 130px;
    height: 130px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 1px solid #000000;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-bottom: 15px;
}

.name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.title {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgb(189, 74, 132);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0px;
}

/* Biography Section */
.biography {
    padding: 0 25px;
    margin-bottom: 25px;
}

.biography p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 0.8rem;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 25px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 40px;
}

.btn-primary {
    background-color: #681736;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: rgb(83, 18, 43);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
}

.btn i {
    font-size: 0.6rem;
    display: inline-block;
    width: 12px;
    height: 12px;
    text-align: center;
    line-height: 12px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,1) 100%);
    border-radius: 20px 20px 0 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #FFFFFF;
}

.contact-item:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 1.6rem;
    color: #FFFFFF;
}

.contact-item span {
    font-size: 0.6rem;
    color: #FFFFFF;
    font-weight: 500;
    text-align: center;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal.show {
    display: flex;
}

.share-modal-content {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 25px;
    max-width: 350px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.share-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #FFFFFF;
}

.share-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.share-icon.facebook {
    background-color: #1877f2;
}

.share-icon.linkedin {
    background-color: #0077b5;
}

.share-icon.twitter {
    background-color: #1da1f2;
}

.share-icon.whatsapp {
    background-color: #25d366;
}

.share-icon.sms {
    background-color: #00bcd4;
}

.share-icon.email {
    background-color: #ea4335;
}

.share-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design - Mejorado para múltiples dispositivos */
@media (max-width: 768px) {
    /* Cambio: Quitar fondo y hacer pantalla completa negra en móvil */
    body {
        background-image: none !important;
        background-color: #000000 !important;
        background-attachment: initial !important;
        display: block;
        padding: 10px 0 0 0;
        min-height: 100vh;
    }
    
    /* Cambio: Contenedor pegado hacia arriba */
    .container {
        max-width: 90%;
        width: 90%;
        min-height: auto;
        margin: 0 auto;
        border-radius: 15px;
        background-color: #000000;
        padding: 20px 0;
    }
    
    /* Cambio: Quitar sombras en móvil para efecto pantalla completa */
    .container::after,
    .container::before,
    .container .shadow-layer-3 {
        display: none;
    }
    
    /* Cambio: Texto más pequeño en móvil para que se vean los botones */
    .name {
        font-size: 1.3rem;
    }
    
    /* Cambio: Subtítulo más pequeño */
    .title {
        font-size: 1.1rem;
    }
    
    /* Cambio: Padding reducido para mejor espaciado */
    .biography {
        padding: 0 20px;
        margin-bottom: 25px;
    }
    
    /* Cambio: Texto de biografía más pequeño para que se vean los botones */
    .biography p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Cambio: Botones más pequeños y distribuidos solo en móviles */
    .action-buttons {
        flex-direction: row !important;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin: 25px 0 25px 0;
    }
    
    /* Cambio: Botones más pequeños para móviles */
    .btn {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        justify-content: center;
        font-size: 0.6rem;
        padding: 8px 12px;
        white-space: nowrap;
        gap: 4px;
        min-height: 36px;
    }
    
    .btn i {
        font-size: 0.5rem;
        width: 10px;
        height: 10px;
        line-height: 10px;
    }
    
    /* Cambio: Iconos de contacto más compactos para una sola fila en móviles */
    .contact-icons {
        padding: 15px 20px;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 20px;
    }
    
    /* Cambio: Iconos más pequeños y compactos para móviles */
    .contact-item {
        padding: 6px;
        min-width: 50px;
        flex: 1;
        max-width: 65px;
    }
    
    .contact-item i {
        font-size: 1.4rem;
    }
    
    .contact-item span {
        font-size: 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    /* Cambio: Contenedor pegado hacia arriba en móvil pequeño */
    body {
        background-image: none !important;
        background-color: #000000 !important;
        background-attachment: initial !important;
        margin: 0;
        padding: 5px 10px 0 10px;
        display: block;
        min-height: 100vh;
    }
    
    /* Cambio: Contenedor pegado hacia arriba */
    .container {
        max-width: 95%;
        width: 95%;
        min-height: auto;
        margin: 0 auto;
        border-radius: 10px;
        background-color: #000000;
        padding: 15px 0;
    }
    
    /* Cambio: Quitar sombras en móvil pequeño */
    .container::after,
    .container::before,
    .container .shadow-layer-3 {
        display: none;
    }
    
    .banner {
        height: 120px;
    }
    
    .profile-picture {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    
    /* Cambio: Nombre más pequeño para que se vean los botones */
    .name {
        font-size: 1.1rem;
    }
    
    /* Cambio: Profesión más pequeña */
    .title {
        font-size: 0.8rem;
    }
    
    /* Cambio: Más espacio entre biografía y botones en móviles pequeños */
    .biography {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    /* Cambio: Texto biografía más pequeño */
    .biography p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Cambio: Botones más pequeños en móviles pequeños */
    .action-buttons {
        flex-direction: row !important;
        gap: 8px;
        margin: 20px 0 20px 0;
        flex-wrap: wrap;
    }
    
    /* Cambio: Botones más pequeños para móviles pequeños */
    .btn {
        flex: 1;
        min-width: 110px;
        font-size: 0.55rem;
        padding: 7px 10px;
        white-space: nowrap;
        gap: 3px;
        min-height: 32px;
    }
    
    .btn i {
        font-size: 0.45rem;
        width: 8px;
        height: 8px;
        line-height: 8px;
    }
    
    /* Cambio: Iconos de contacto aún más compactos para móviles pequeños */
    .contact-icons {
        padding: 12px 15px;
        gap: 5px;
        flex-wrap: nowrap;
        margin: 0 15px;
    }
    
    .contact-item {
        padding: 4px;
        min-width: 45px;
        max-width: 60px;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-item span {
        font-size: 0.55rem;
    }
}

/* Dispositivos muy pequeños (320px y menos) */
@media (max-width: 320px) {
    body {
        padding: 5px;
        display: block;
    }
    
    .container {
        max-width: 98%;
        width: 98%;
        margin: 0 auto;
        border-radius: 8px;
        padding: 12px 0;
    }
    
    .banner {
        height: 100px;
    }
    
    .profile-picture {
        width: 70px;
        height: 70px;
        margin-top: -35px;
    }
    
    .name {
        font-size: 1.0rem;
        margin: 8px 0 5px 0;
    }
    
    .title {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .biography {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .biography p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .action-buttons {
        gap: 6px;
        margin: 15px 6px 15px 6px;
        flex-wrap: wrap;
    }
    
    .btn {
        min-width: 100px;
        font-size: 0.5rem;
        padding: 6px 8px;
        white-space: nowrap;
        gap: 2px;
        min-height: 28px;
    }
    
    .btn i {
        font-size: 0.4rem;
        width: 6px;
        height: 6px;
        line-height: 6px;
    }
    
    /* Cambio: Iconos ultra compactos para dispositivos muy pequeños */
    .contact-icons {
        padding: 10px 10px;
        gap: 3px;
        flex-wrap: nowrap;
        margin: 0 10px;
    }
    
    .contact-item {
        padding: 3px;
        min-width: 40px;
        max-width: 55px;
    }
    
    .contact-item i {
        font-size: 1.1rem;
    }
    
    .contact-item span {
        font-size: 0.5rem;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px;
    }
    
    .container {
        max-width: 600px;
        padding: 10px 0;
    }
    
    .banner {
        height: 80px;
    }
    
    .profile-picture {
        width: 60px;
        height: 60px;
        margin-top: -30px;
    }
    
    .name {
        font-size: 1.2rem;
        margin: 8px 0 5px 0;
    }
    
    .biography {
        padding: 0 20px;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        margin: 15px 0;
    }
}
