﻿/* EGIDRA — Estilos Página Socios y Alianzas */

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    position: relative;
    min-height: 50vh;
    background:
        linear-gradient(to right, rgba(13,13,13,.92) 0%, rgba(13,13,13,.7) 50%, rgba(13,13,13,.5) 100%),
        url('../../../img/template/bg-socios.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,193,7,.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255,193,7,.06) 0%, transparent 40%);
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1   { line-height: 1.2; animation: fadeInUp 1s ease-out; }
.page-header .badge { animation: fadeInUp 1s ease-out 0.2s both; }
.page-header .lead  { animation: fadeInUp 1s ease-out 0.4s both; }

.header-scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.header-scroll-indicator a { text-decoration: none; }

/* ── Intro ───────────────────────────────────────────────── */
.partners-intro-section {
    background: #fff;
    padding: 5rem 0;
}

.partners-intro-section img {
    transition: var(--transition);
}
.partners-intro-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,.15) !important;
}

/* ── Socio Cards ─────────────────────────────────────────── */
.socios-grid-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.socio-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}
.socio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
    border-color: rgba(255,193,7,.3);
}

.socio-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.socio-logo-badge {
    width: 58px; height: 58px;
    border-radius: 12px;
    background: rgba(255,193,7,.1);
    border: 2px solid rgba(255,193,7,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800;
    color: #8a6000; letter-spacing: .5px;
    flex-shrink: 0;
    transition: var(--transition);
}
.socio-card:hover .socio-logo-badge {
    background: rgba(255,193,7,.18);
    border-color: rgba(255,193,7,.45);
}

.socio-categoria {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 3px;
}

.socio-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.socio-icon-wrap {
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--light-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: .95rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.socio-card:hover .socio-icon-wrap {
    background: rgba(255,193,7,.1);
    color: #8a6000;
}

.socio-desc {
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.socio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.socio-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,193,7,.1);
    color: #8a6000;
    font-size: .68rem;
    font-weight: 700;
    border: 1px solid rgba(255,193,7,.2);
}

.socio-foot {
    border-top: 1px solid rgba(0,0,0,.06);
    padding-top: .85rem;
}

.socio-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
.socio-link:hover {
    color: #e0a800;
}

/* ── Benefits ────────────────────────────────────────────── */
.benefits-section {
    background: #fff;
    padding: 5rem 0;
}

.benefit-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    transition: var(--transition);
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.09);
    border-color: rgba(255,193,7,.25);
}

.benefit-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,193,7,.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.benefit-card:hover .benefit-icon {
    background: rgba(255,193,7,.18);
    transform: scale(1.1);
}

/* ── Certifications ──────────────────────────────────────── */
.certs-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.certs-section img {
    transition: var(--transition);
}
.certs-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,.15) !important;
}

.cert-pill {
    transition: var(--transition);
}
.cert-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1) !important;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    background: #fff;
    padding: 5rem 0;
}
.cta-section .card {
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-10px); }
    60%  { transform: translateX(-50%) translateY(-5px); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .page-header {
        min-height: 40vh;
        background:
            linear-gradient(to right, rgba(13,13,13,.95) 0%, rgba(13,13,13,.85) 100%),
            url('../../img/template/bg-socios.jpg');
        background-size: cover;
        background-position: center;
    }
    .page-header h1 { font-size: 2.5rem !important; }
}

@media (max-width: 767px) {
    .page-header { min-height: 35vh; }
    .page-header h1 { font-size: 1.75rem !important; }

    .partners-intro-section,
    .socios-grid-section,
    .benefits-section,
    .certs-section,
    .cta-section {
        padding: 3rem 0;
    }

    .socio-card-head { flex-wrap: wrap; }
}
