/**
 * Tarjeta de Perfil Widget Styles
 */

/* Wrapper principal */
.elevate-tarjeta-perfil-wrapper {
    position: relative;
    width: 100%;
}

/* ===========================
   TARJETA (el fondo de color)
   =========================== */

.elevate-tarjeta-perfil-card {
    position: relative;
    background-color: #E65100;
    border-radius: 20px;
    text-align: center;
}

/* ===========================
   IMAGEN
   =========================== */

.elevate-tarjeta-perfil-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.elevate-tarjeta-perfil-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Overlay degradado */
.elevate-tarjeta-perfil-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    pointer-events: none;
}

/* ===========================
   DISEÑO 1 - Imagen Sobresalida
   =========================== */

/* La imagen está FUERA de la tarjeta, así puede sobresalir */
.elevate-tarjeta-perfil-wrapper.style-1 .elevate-tarjeta-perfil-image {
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.elevate-tarjeta-perfil-wrapper.style-1 .elevate-tarjeta-perfil-image img {
    border-radius: 0;
}

/* La tarjeta va detrás de la imagen */
.elevate-tarjeta-perfil-wrapper.style-1 .elevate-tarjeta-perfil-card {
    position: relative;
    z-index: 1;
}

/* ===========================
   DISEÑO 2 - Imagen Contenida
   =========================== */

.elevate-tarjeta-perfil-wrapper.style-2 .elevate-tarjeta-perfil-card {
    overflow: hidden;
}

.elevate-tarjeta-perfil-wrapper.style-2 .elevate-tarjeta-perfil-image {
    border-radius: 0;
}

.elevate-tarjeta-perfil-wrapper.style-2 .elevate-tarjeta-perfil-image img {
    border-radius: 0;
}

/* ===========================
   CONTENIDO
   =========================== */

.elevate-tarjeta-perfil-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Título descriptivo (Diseño 2) */
.elevate-tarjeta-perfil-title {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 15px;
}

/* Nombres */
.elevate-tarjeta-perfil-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.elevate-tarjeta-perfil-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    display: inline-block;
}

.elevate-tarjeta-perfil-name:last-child {
    margin-bottom: 0;
}

/* Nombre con borde */
.elevate-tarjeta-perfil-name.has-border {
    border: 2px solid #ffffff;
    border-radius: 20px;
    padding: 8px 20px;
}

/* Información de Contacto */
.elevate-tarjeta-perfil-contact {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 10px;
    white-space: pre-line;
}

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

@media (max-width: 768px) {
    .elevate-tarjeta-perfil-image {
        height: 220px;
    }

    .elevate-tarjeta-perfil-content {
        padding: 15px;
    }

    .elevate-tarjeta-perfil-name {
        font-size: 14px;
    }

    .elevate-tarjeta-perfil-name.has-border {
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .elevate-tarjeta-perfil-wrapper.style-1 .elevate-tarjeta-perfil-image {
        width: 95%;
    }

    .elevate-tarjeta-perfil-image {
        height: 180px;
    }

    .elevate-tarjeta-perfil-name {
        font-size: 13px;
    }
}
