/* ========== CONTENEDOR SWIPER ========== */
.swiper {
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

/* Contenedor interno que agrupa slides (añade esta clase si usas swiper.js o tu propio wrapper) */
.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    height: auto !important;
}

.swiper-slide{
    display: flex !important;
}

/* ========== SLIDE ========== */
.um-user-slide {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: fit-content !important;
}

/* ========== CONTENIDO ========== */
.um-user-content {
    background-color: #F5F5F6;
    border-radius: 30px;
	margin-left:auto;
	margin-right:auto;
    display: flex;
    align-items: center;
    flex: 1;
    margin-bottom: 40px;
    padding: 20px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

/* ========== AVATAR ========== */
.um-user-avatar {
    width: 200px;
    height: 200px;
    border-radius: 5%;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 10vh;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    /*border: 2px solid #258ffe;*/
}

.um-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== INFORMACIÓN DE USUARIO ========== */
.um-user-info {
    flex: 1;
    max-width: 500px;
}

.um-user-name {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom:0;
    color: #111;
}

.um-user-job {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.um-user-desc {
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 5px;
  padding: 0.5rem;
  margin-top: 1rem;
  background-color: #f9f9f9;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.um-user-desc .summary {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.um-user-desc .summary:hover {
  color: #0073aa;
}

.um-user-desc .content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0;
  transform: translateY(-10px);
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    transform 0.5s ease,
    padding 0.5s ease;
  will-change: max-height, opacity, transform, padding;
}

.um-user-desc.open .content {
  max-height: 500px;
  opacity: 1;
  padding: 0.5rem 0;
  transform: translateY(0);
}

                            
.um-user-job .icon,
.um-user-desc .icon {
    margin-right: 4px;
}

.um-user-follow {
    background-color: #258ffe;
    color:white;
    width:fit-content;
    padding:6px;
    border-radius: 15px;
    margin: initial;
}

.um-user-stars{
    background-color: #2e2e2e;
    color:white;
    width:fit-content;
    padding:6px;
    border-radius: 15px;
    margin: initial;   
    border-top: 5px;
}

/* ========== BOTÓN ========== */
.um-user-button {
    display: inline-block;
    background-color: #258ffe;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.um-user-button:hover {
    background-color: #1b63af;
}

/* ========== BOTONES SWIPER ========== */

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    
    /* Para centrar contenido exactamente */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    overflow: hidden;
    line-height: 1;
    padding: 0; /* Elimina padding que pueda deformar */
    
    /* Añadimos box-sizing para que el tamaño no se afecte por borde o padding */
    box-sizing: border-box;
}

.swiper-button-prev {
    left: 10px;  /* agrega algo de margen desde el borde, opcional */
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    color: #000;
    line-height: 1;
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .swiper {
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .um-user-follow {
        margin:auto;
    }

    .um-user-slide {
        padding: 24px;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centrado vertical */
        text-align: center;
        gap: 20px;
    }

    .um-user-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        margin-bottom: 0;
        padding: 20px;
        width: 100%;
    }

    .um-user-avatar {
        margin: 0 auto 20px auto; /* Imagen centrada arriba */
        width: 120px;
        height: 120px;
    }

    .um-user-info {
        padding: 0;
        max-width: 100%;
    }

      .swiper-button-next,
      .swiper-button-prev {
        display: none !important;
      }

    .um-user-button {
        position: relative; /* Ajuste para evitar que se salga del contenedor */
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
    }
}