/* ====== Sección de socios ====== */
.unete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 66.66%; /* Ocupar dos tercios del ancho de la página */
    margin: 0 auto;
}

.unete-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    position: relative;
}

.unete-item {
    display: flex;
    flex-direction: column;
    background-color: #e3f1ec;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    min-height: 550px;
    position: relative;
    text-align: center;
}

/* ====== LÍNEAS BLANCAS ====== */

/* ✅ Mantener la línea conectada con la foto */
.unete-row:first-child .unete-item:first-child::before {
    content: '';
    position: absolute;
    width: calc(50vw - 33.33%);
    height: 3px;
    background-color: #fff;
    top: 25%; /* Solo en la primera mitad */
    left: 50%;
    transform: translateY(-50%);
}

/* ✅ Mantener la línea en el segundo item */
.unete-row:first-child .unete-item:last-child::before {
    content: '';
    position: absolute;
    width: calc(60% - 20px);
    height: 3px;
    background-color: #fff;
    bottom: 25%;
    right: 50%;
    transform: translateY(50%);
}

/* ✅ Segunda fila - Línea en el primer cuarto */
.unete-row:last-child .unete-item:first-child::before {
    content: '';
    position: absolute;
    width: calc(50vw - 33.33%);
    height: 3px;
    background-color: #fff;
    top: 25%;
    left: 50%;
    transform: translateY(-50%);
}

.unete-row:last-child .unete-item:last-child::before {
    content: '';
    position: absolute;
    width: calc(60% - 20px);
    height: 3px;
    background-color: #fff;
    bottom: 25%;
    right: 50%;
    transform: translateY(50%);
}

/* ✅ 🚨 ELIMINAR línea no deseada del texto directamente */
.unete-row .unete-item:first-child::after {
    display: none !important; /* 🔥 🔥 ELIMINACIÓN DIRECTA 🔥 🔥 */
}

.unete-row:last-child .unete-item:first-child::after {
    display: none !important; /* 🔥 🔥 ELIMINACIÓN DIRECTA 🔥 🔥 */
}

/* ====== CENTRADO DE FOTOS ====== */
.unete-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
}

/* ✅ Primera tarjeta → Foto centrada en el primer cuarto desde arriba */
.unete-row .unete-item:first-child img {
    top: 25%; 
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ✅ Segunda tarjeta → Foto centrada en el primer cuarto desde abajo */
.unete-row .unete-item:last-child img {
    bottom: 25%; 
    right: 50%;
    transform: translate(50%, 50%);
}

/* ====== AJUSTE DE TEXTO ====== */

/* ✅ Título y texto pegado abajo en el primer item */
.unete-row .unete-item:first-child {
    justify-content: flex-end;
}

/* ✅ Título y texto pegado arriba en el segundo item */
.unete-row .unete-item:last-child {
    justify-content: flex-start;
}

/* ====== TÍTULOS Y DESCRIPCIÓN ====== */
.unete-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.unete-description {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.unete-author {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Sección Parallax */
.parallax-section {
    position: relative;
    width: 100%;
    height: 400px; /* Altura ajustable */
    background-image: url('../img/unete/banner.jpg'); /* Ruta de la imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Esto crea el efecto parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Contenido sobre el parallax */
.parallax-content {
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para mejorar la legibilidad */
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
}

.parallax-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.parallax-text {
    font-size: 18px;
    line-height: 1.6;
}

/* ====== DISEÑO RESPONSIVO ====== */
@media (max-width: 768px) {
    .unete-container {
        width: 90%;
    }

    .unete-row {
        flex-direction: column;
        gap: 20px;
    }

    .unete-item {
        width: 100%;
    }

    /* ✅ Ajustar longitud de la línea en pantallas pequeñas */
    .unete-row .unete-item:first-child::before,
    .unete-row .unete-item:last-child::before {
        width: calc(50vw - 5%);
        height: 2px;
    }
}

