/* ============================================================
   CSS del directorio — extraído del <style> del doc4
   + estilos nuevos del panel de perfil al final
   ============================================================ */

:root {
    --primary: #1B3463;
    --secondary: #4A90B0;
    --text-dark: #666;
    --white: #fff;
    --bg: #f4f7fb;
    --border: #e1e8ef;
    --gold: #c9a84c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 2rem;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.main-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header.scrolled .nav-menu a,
.main-header.scrolled .social-link,
.main-header.scrolled .language-selector {
    color: var(--primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-header {
    height: 55px;
    transition: opacity 0.3s;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link:hover .logo-header {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    margin-left: 2rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

.language-selector {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s linear;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px,-5px);
}

.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4d8a 60%, var(--secondary) 100%);
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.banner-inner {
    position: relative;
    z-index: 2;
}

.banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.banner-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.page-banner h1 {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.page-banner p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.directory-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    flex: 1;
}

.directory-controls {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 16px rgba(27,52,99,0.08);
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
    transition: border-color 0.25s;
    font-family: Arial, sans-serif;
}

.search-box input:focus {
    border-color: var(--secondary);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.65rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    cursor: pointer;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.25s;
    white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.filter-select {
    padding: 0.65rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: Arial, sans-serif;
    cursor: pointer;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.25s;
}

.filter-select:focus {
    border-color: var(--secondary);
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.results-count strong {
    color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.25s;
}

.view-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.75rem;
}

.section-divider h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.partners-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 1rem;
}

.partner-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(27,52,99,0.1);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.25s;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(27,52,99,0.16);
    border-color: rgba(74,144,176,0.2);
}

.partner-card.active {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(27,52,99,0.22);
    border-color: var(--secondary);
}

.partner-card.active::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--secondary);
    animation: dpulse 0.9s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes dpulse {
    from { box-shadow: 0 0 0 3px rgba(74,144,176,0.2); }
    to   { box-shadow: 0 0 0 6px rgba(74,144,176,0); }
}

.partner-photo {
    width: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary) 0%, #2d6a8a 100%);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.partner-card:hover .partner-photo img,
.partner-card.active .partner-photo img {
    transform: scale(1.06);
}

.partner-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
}

.partner-photo-placeholder .initials {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    font-family: Georgia, serif;
}

.partner-photo-placeholder .upload-hint {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.partner-badgeee {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #0055ff;
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}



.partner-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-position {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.partner-name {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: Georgia, serif;
}

.partner-specialty {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1rem;
}

.area-tag {
    background: #edf3fa;
    color: var(--primary);
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.partner-sede {
    font-size: 0.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.partner-sede i {
    color: var(--secondary);
}

.partner-contacts {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.contact-email {
    background: #edf3fa;
    color: var(--primary);
}

.contact-email:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-linkedin {
    background: #e8f3fc;
    color: #0077b5;
}

.contact-linkedin:hover {
    background: #0077b5;
    color: var(--white);
}

.contact-wa {
    background: #e8f9ee;
    color: #1a7a44;
}

.contact-wa:hover {
    background: #25D366;
    color: var(--white);
}

/* btn-ver-perfil eliminado */

.associates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.associate-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(27,52,99,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.associate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(27,52,99,0.14);
}

.associate-photo {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
}

.associate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.associate-card:hover .associate-photo img {
    transform: scale(1.05);
}

.assoc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.assoc-placeholder .initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    font-family: Georgia, serif;
}

.assoc-placeholder .img-hint {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.assoc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27,52,99,0.7));
    padding: 1rem 0.75rem 0.5rem;
    text-align: left;
}

.assoc-area {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.9);
    background: rgba(74,144,176,0.7);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

.associate-body {
    padding: 1.25rem 1rem 1.1rem;
}

.assoc-position {
    font-size: 0.68rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.assoc-name {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
    font-family: Georgia, serif;
}

.assoc-sede {
    font-size: 0.73rem;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.assoc-sede i {
    color: var(--secondary);
    margin-right: 3px;
}

.assoc-contacts {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.assoc-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s;
    border: 1.5px solid var(--border);
}

.assoc-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    border: 1.5px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-arrow {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.25s;
}

.page-arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.main-footer {
    background: #000;
    color: var(--white);
    padding: 2rem 0;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-text h3 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.footer-text a,
.footer-text p {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 80px;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ── NUEVO: Panel de perfil ── */
.profile-panel {
    display: none;
    margin-top: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27,52,99,0.22);
    animation: dpanelOpen 0.45s cubic-bezier(0.34,1.2,0.64,1);
}

.profile-panel.open {
    display: block;
}

@keyframes dpanelOpen {
    from { opacity: 0; transform: translateY(-20px) scaleY(0.96); }
    to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

.pp-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: var(--primary);
}

.pp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: blur(1px) brightness(0.65);
    transform: scale(1.04);
}

.pp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 100% at 50% 50%, transparent 30%, rgba(27,52,99,0.7) 100%),
        linear-gradient(to bottom, transparent 30%, rgba(27,52,99,0.95) 100%);
}

.pp-avatar-wrap {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.pp-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.pp-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    font-family: Georgia, serif;
}

.pp-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}

.pp-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.pp-hero-name {
    position: absolute;
    bottom: 210px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    padding: 0 2rem;
}

.pp-hero-sub {
    position: absolute;
    bottom: 185px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

.pp-body {
    background: #fff;
    padding: 5rem 3rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.pp-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.pp-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    grid-column: 1 / -1;
}

.pp-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pp-tag {
    background: #edf3fa;
    color: var(--primary);
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pp-contact-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.5rem;
}

.pp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    font-family: Arial, sans-serif;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.pp-contact-btn.email  { background: #edf3fa; color: var(--primary); }
.pp-contact-btn.email:hover  { background: var(--primary); color: #fff; }
.pp-contact-btn.linkedin { background: #e8f3fc; color: #0077b5; }
.pp-contact-btn.linkedin:hover { background: #0077b5; color: #fff; }
.pp-contact-btn.wa { background: #e8f9ee; color: #1a7a44; }
.pp-contact-btn.wa:hover { background: #25D366; color: #fff; }

.pp-sede-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-dark);
}

.pp-sede-info i {
    color: var(--secondary);
}

@media(max-width:900px) {
    .pp-body { grid-template-columns: 1fr; gap: 1.5rem; }
    .pp-description { grid-column: 1; }
}

@media(max-width:768px) {
    .hamburger { display: flex; }
    .social-links { display: none; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 65%;
        height: 100vh;
        background: rgba(27,52,99,0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { color: var(--white); }
    .page-banner h1 { font-size: 2rem; }
    .partners-row { grid-template-columns: 1fr; }
    .partner-card { flex-direction: column; }
    .partner-photo { width: 100%; height: 200px; }
    .directory-controls { flex-direction: column; }
    .search-box { min-width: auto; width: 100%; }
    .pp-hero { height: 260px; }
    .pp-hero-name { font-size: 1.4rem; bottom: 70px; }
    .pp-body { padding: 3.5rem 1.5rem 2rem; }
}

@media(max-width:480px) {
    .directory-wrapper { padding: 2rem 1rem 4rem; }
    .associates-grid { grid-template-columns: repeat(2,1fr); }
}