/* Socios Section */
.section-gray {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--blue-green) 100%);
    min-height: 100vh;
    padding: 120px 0 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

.section-subtitle {
    color: var(--soft-aqua);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Gotham', sans-serif;
    font-weight: 500;
}

.section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de Socios - Diseño Horizontal */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.partner-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 20px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
    height: 386px;
    max-height: 386px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--soft-aqua);
    transition: left 0.6s;
}

.partner-card:hover::before {
    left: 0;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--soft-aqua);
    background: rgba(0, 40, 86, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Cambiar colores del texto en hover - TODO BLANCO */
.partner-card:hover h3 {
    color: white !important;  /* Nombre en blanco */
}

.partner-card:hover .partner-title {
    color: white !important;  /* Título en blanco */
}


.partner-photo {
    width: 200px;
    height: 200px;
    background: transparent;
    margin: 10px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--soft-aqua);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.partner-card:hover .partner-photo {
    border-color: var(--royal-blue);
}

.partner-card:hover .partner-photo img {
    transform: scale(1.1);
}

.partner-card h3 {
    color: var(--royal-blue);
    font-size: 1.2rem;
    margin: 10px 0 5px 0;
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-title {
    color: var(--soft-aqua);
    font-size: 0.95rem;
    margin: 5px 0 10px 0;
    padding: 0;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.partner-bio {
    display: none;
}

.ver-mas-btn {
    background: var(--soft-aqua);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ver-mas-btn:hover {
    background: var(--royal-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 40, 86, 0.3);
}

.partner-card:hover .ver-mas-btn {
    background: white;
    color: var(--royal-blue);
}

.partner-card:hover .ver-mas-btn:hover {
    background: var(--soft-aqua);
    color: var(--royal-blue);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 40px;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    color: var(--dim-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--royal-blue);
}

.modal-text {
    flex: 1;
}

.modal-text h2 {
    color: var(--royal-blue);
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Gotham', sans-serif;
}

.modal-text .position {
    color: var(--soft-aqua);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-text .bio {
    color: var(--dim-gray);
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.modal-image {
    width: auto;
    height: auto;
    border-radius: 10px;
    overflow: visible;
    border: none;
}

.modal-image img {
    width: auto;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

/* Responsive Design - Desktop pequeño */
@media screen and (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Responsive Design - Tablets */
@media screen and (max-width: 768px) {
    /* Sección general */
    .page-section {
        padding: 80px 20px !important;
    }

    .section-header {
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .section-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Grid de socios */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .partner-card {
        padding: 25px;
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 15px;
        text-align: center;
        min-height: auto;
    }

    .partner-photo {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }

    .partner-info {
        text-align: center;
    }

    .partner-name {
        font-size: 1.1rem;
    }

    .partner-position {
        font-size: 0.85rem;
    }

    .partner-bio {
        display: none; /* Ocultar bio en tablets para ahorrar espacio */
    }

    /* Modal */
    .modal-content {
        flex-direction: column !important;
        width: 90%;
        max-width: 500px;
        padding: 30px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 20px;
    }

    .modal-image img {
        max-height: 300px;
    }

    .modal-text h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .modal-text .position {
        font-size: 1rem;
        text-align: center;
    }

    .modal-text .bio {
        font-size: 0.95rem;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 480px) {
    /* Sección general */
    .page-section {
        padding: 60px 15px !important;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 5px;
    }

    /* Grid de socios */
    .partners-grid {
        gap: 20px;
        padding: 0;
    }

    .partner-card {
        padding: 15px;
        display: flex;
        flex-direction: column !important;
        text-align: center;
        align-items: center;
        min-height: auto;
    }

    .partner-photo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .partner-info {
        text-align: center;
    }

    .partner-name {
        font-size: 1rem;
        margin-top: 10px;
    }

    .partner-position {
        font-size: 0.8rem;
    }

    .view-profile {
        font-size: 0.8rem;
        padding: 8px 16px;
        margin-top: 10px;
    }

    /* Modal en móvil */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
        flex-direction: column !important;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }

    .modal-image {
        width: 150px;
        height: 150px;
    }

    .modal-image img {
        max-height: 200px;
    }

    .modal-text h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .modal-text .position {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .modal-text .bio {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Hover más sutil en móvil */
    .partner-card:hover {
        transform: translateY(-2px);
    }
}