/* ══════════════════════════════════════════════════════════
   GynDir Pro — Frontend Styles v4.0
   Design: nicho-mexiapps (pixel-perfect match)
   Font: Inter
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════
   THEME OVERRIDES — Neutralize theme container padding so the
   plugin renders FULL-WIDTH (no white frame around it).
   This targets common WordPress theme wrappers.
   ══════════════════════════════════════════════════════════ */

/* When the .gd-wrap is present, force its ancestor containers
   to have 0 padding, 0 margin, and full width. */
body.gyndir-active,
body.gyndir-active #page,
body.gyndir-active #content,
body.gyndir-active #primary,
body.gyndir-active #main,
body.gyndir-active .site,
body.gyndir-active .site-content,
body.gyndir-active .site-main,
body.gyndir-active .content-area,
body.gyndir-active .entry-content,
body.gyndir-active .entry,
body.gyndir-active .hentry,
body.gyndir-active .page-content,
body.gyndir-active .container,
body.gyndir-active .content-container,
body.gyndir-active .wrapper,
body.gyndir-active .main-content,
body.gyndir-active #content-wrap,
body.gyndir-active .ast-container,
body.gyndir-active .elementor-widget-container,
body.gyndir-active .elementor-section-boxed > .elementor-container,
body.gyndir-active article,
body.gyndir-active main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove top/bottom padding from common theme wrappers too,
   so the hero/header sits at the very top of the page. */
body.gyndir-active .entry-content,
body.gyndir-active .entry,
body.gyndir-active .hentry,
body.gyndir-active .page-content,
body.gyndir-active article,
body.gyndir-active .site-main,
body.gyndir-active #main,
body.gyndir-active .content-area,
body.gyndir-active #primary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* The plugin root container itself: full bleed */
.gd-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Eliminate page title that themes often inject */
body.gyndir-active .entry-title,
body.gyndir-active .page-title,
body.gyndir-active h1.entry-title {
    display: none !important;
}

/* Remove default body margin */
body.gyndir-active {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Reset & tokens ─────────────────────────────────────── */
.gd-wrap *, .gd-wrap *::before, .gd-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove underlines from ALL text inside the plugin — override theme link styles */
.gd-wrap a,
.gd-wrap a:link,
.gd-wrap a:visited,
.gd-wrap a:hover,
.gd-wrap a:active,
.gd-wrap a:focus,
.gd-wrap h1, .gd-wrap h2, .gd-wrap h3, .gd-wrap h4, .gd-wrap h5, .gd-wrap h6,
.gd-wrap h1 a, .gd-wrap h2 a, .gd-wrap h3 a, .gd-wrap h4 a,
.gd-wrap span, .gd-wrap strong, .gd-wrap em, .gd-wrap p, .gd-wrap div,
.gd-wrap .gd-card-name,
.gd-wrap .gd-card-name a,
.gd-wrap .gd-list-name,
.gd-wrap .gd-list-name a,
.gd-wrap .gd-profile-name,
.gd-wrap .gd-section-header h2,
.gd-wrap .gd-trust-title,
.gd-wrap .gd-how-item h3,
.gd-wrap .gd-card-title,
.gd-wrap .gd-review-author,
.gd-wrap .gd-review-title,
.gd-wrap .gd-country-chip {
    text-decoration: none !important;
}
.gd-wrap a:hover { text-decoration: none !important; }
.gd-wrap u { text-decoration: none !important; }

.gd-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #0F172A;
    background: #fff;

    --purple:        #5e3bee;   /* primary brand — matches template */
    --purple-light:  #818cf8;
    --purple-dark:   #4a2bd6;
    --purple-btn:    #5e3bee;
    --tag-purple:    #9370DB;   /* GINECÓLOGOS tag + stars */
    --navy:          #0a0e2a;   /* deep navy hero base */
    --navy2:         #0d1340;
    --white:         #FFFFFF;
    --gray-50:       #f8fafc;
    --gray-100:      #f1f3f9;
    --gray-200:      #e2e8f0;
    --gray-400:      #94a3b8;
    --gray-500:      #64748b;
    --gray-600:      #64748b;
    --gray-700:      #334155;
    --gray-800:      #1e293b;
    --gray-900:      #0f172a;
    --text-dark:     #0f172a;
    --star:          #9370DB;   /* purple stars, not yellow */
    --badge-bg:      #eef2ff;
    --badge-color:   #5e3bee;
    --green:         #059669;
    --yellow:        #d97706;
    --red:           #dc2626;
    --heart:         #ef4444;

    --radius-card: 16px;
    --radius-btn:  12px;
    --radius-input:12px;
    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;
    --radius-xl:   28px;

    --shadow-xs:  0 1px 2px rgba(15,23,42,.05);
    --shadow-sm:  0 2px 8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow:     0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
    --shadow-md:  0 12px 32px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
    --shadow-lg:  0 24px 48px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);
    --shadow-purple: 0 8px 32px rgba(94,59,238,.25);
    --shadow-purple-lg: 0 16px 48px rgba(94,59,238,.35);

    --primary:        var(--purple);
    --primary-mid:    var(--purple);
    --primary-light:  var(--badge-bg);
    --primary-glow:   rgba(94,59,238,.15);
    --primary-dark:   var(--purple-dark);
    --accent:         var(--purple-light);
}

.gd-hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   DESKTOP TOPBAR (dark, sits above hero — matches template)
   ══════════════════════════════════════════════════════════ */
.gd-topbar {
    background: var(--navy);
    color: #fff;
    padding: 0;
    /* full-width bar; inner content uses container */
}
.gd-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
@media (max-width: 900px) {
    .gd-topbar-inner { padding: 14px 18px; }
}
.gd-topbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}
.gd-topbar-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.gd-topbar-brand-sub {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 4px;
}
.gd-topbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.gd-topbar-nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gd-topbar-nav a:hover { color: #fff; }
.gd-topbar-actions { display: flex; align-items: center; gap: 12px; }
.gd-topbar-add {
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 4px 14px -4px rgba(94,59,238,.5);
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
}
.gd-topbar-add:hover { background: var(--purple-dark); transform: translateY(-1px); }
.gd-topbar-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
.gd-topbar-avatar svg { width: 20px; height: 20px; }

/* Mobile-only header (light theme) */
.gd-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.gd-mobile-header .gd-topbar-brand-name { color: var(--text-dark); font-size: 20px; }
.gd-mobile-header .gd-topbar-brand-sub { color: var(--gray-500); }
.gd-mobile-header-actions { display: flex; align-items: center; gap: 10px; }
.gd-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray-50);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    position: relative;
    cursor: pointer;
}
.gd-icon-btn svg { width: 20px; height: 20px; }
.gd-icon-btn--profile { background: #eef2ff; color: var(--purple); }
.gd-bell-dot {
    position: absolute;
    top: 8px; right: 9px;
    width: 8px; height: 8px;
    background: var(--heart);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ══════════════════════════════════════════════════════════
   HERO (desktop gradient with diagonal light streaks)
   ══════════════════════════════════════════════════════════ */
.gd-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 50%, #4f46e5 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 32px 64px;
    text-align: center;
}
.gd-hero > * { max-width: 100%; }
.gd-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    top: -220px; left: -150px;
    border-radius: 50%;
    filter: blur(50px);
    background: radial-gradient(circle, rgba(129,140,248,.6) 0%, transparent 65%);
    pointer-events: none;
}
.gd-hero::after {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    bottom: -240px; right: -120px;
    border-radius: 50%;
    filter: blur(50px);
    background: radial-gradient(circle, rgba(96,165,250,.5) 0%, transparent 65%);
    pointer-events: none;
}
.gd-hero-streak {
    position: absolute;
    width: 160%;
    height: 280px;
    top: 15%;
    left: -30%;
    background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.1) 50%, transparent 75%);
    transform: rotate(-18deg);
    pointer-events: none;
}
.gd-hero-streak-2 {
    position: absolute;
    width: 160%;
    height: 180px;
    top: 50%;
    left: -30%;
    background: linear-gradient(120deg, transparent 30%, rgba(165,180,252,0.12) 50%, transparent 70%);
    transform: rotate(-18deg);
    pointer-events: none;
}

.gd-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

/* Badge */
.gd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 100px;
    padding: 8px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}
.gd-hero-badge svg { width: 14px; height: 14px; }

/* Title */
.gd-hero-title {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 auto 6px;
    letter-spacing: -.02em;
    max-width: 820px;
}
.gd-hero-title em {
    font-style: normal;
    color: rgba(255,255,255,.9);
}

/* Search box — matches template exactly */
.gd-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin: 28px auto 0;
    max-width: 880px;
    gap: 8px;
    box-shadow: 0 20px 50px -20px rgba(15,23,42,.45);
    color: var(--text-dark);
    text-align: left;
}
.gd-search-row { display: contents; }

.gd-search-icon {
    color: var(--gray-400);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.gd-search-icon svg { width: 18px; height: 18px; display: block; }

.gd-search-field {
    display: contents;
}
.gd-search-field input,
.gd-search-field select {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
    padding: 10px 14px;
}
.gd-search-field input::placeholder { color: #94a3b8; }

.gd-search-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.gd-search-field--country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
}
.gd-search-field--country svg { width: 18px; height: 18px; color: var(--gray-400); }
.gd-search-field--country select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    flex: none;
    padding: 0;
}
.gd-search-field--city { display: none; }

.gd-search-btn {
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background .15s ease;
    flex-shrink: 0;
}
.gd-search-btn svg { width: 16px; height: 16px; }
.gd-search-btn:hover { background: var(--purple-dark); }

/* Hero stats — separated cards like template */
.gd-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px auto 0;
    max-width: 880px;
}
.gd-hero-stat {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
}
.gd-hero-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-hero-stat-icon svg { width: 20px; height: 20px; color: #fff; }
.gd-hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}
.gd-hero-stat span {
    font-size: 12px;
    color: rgba(255,255,255,.85);
    line-height: 1.3;
    margin-top: 2px;
    display: block;
}
.gd-hero-stat-divider { display: none; }

/* Hero trust */
.gd-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    margin-top: 22px;
    letter-spacing: .02em;
}
.gd-hero-trust svg { width: 13px; height: 13px; }

/* ══════════════════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════════════════ */
.gd-section {
    padding: 48px 48px 56px;
}
.gd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.gd-section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.01em;
}
.gd-section-header h2::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tag-purple);
    display: inline-block;
}
.gd-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.gd-link-more svg { width: 16px; height: 16px; }
.gd-link-more:hover { gap: 10px; }

/* ── Doctor Cards Grid ───────────────────────────────────── */
.gd-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gd-doctor-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.gd-doctor-card:hover {
    box-shadow: 0 18px 40px -20px rgba(15,23,42,.18);
    transform: translateY(-3px);
}

.gd-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}
.gd-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gd-doctor-card:hover .gd-card-photo img { transform: scale(1.04); }

/* Fav button on cards */
.gd-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.gd-card-fav svg { width: 16px; height: 16px; color: var(--gray-400); }

.gd-card-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: var(--purple);
    font-family: 'Inter', sans-serif;
}

.gd-card-body {
    padding: 14px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gd-card-spec {
    display: inline-block;
    background: var(--tag-purple);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.gd-card-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: var(--text-dark);
}
.gd-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.gd-card-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.gd-card-footer { margin-top: auto; }
.gd-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}
.gd-card-avg { font-weight: 700; }
.gd-card-reviews { color: var(--gray-400); font-size: 12px; font-weight: 400; }
.gd-card-no-rating { font-size: 12px; color: var(--gray-400); }

/* Stars */
.gd-stars, .gd-stars-sm { display: inline-flex; gap: 2px; }
.gd-s { font-size: 13px; }
.gd-s--full  { color: var(--star); }
.gd-s--half  { color: var(--star); opacity: .5; }
.gd-s--empty { color: #e2e8f0; }

/* ══════════════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════════════ */
.gd-trust-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 32px 48px;
    border-top: 1px solid var(--gray-200);
}
.gd-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 32px;
    flex: 1;
    max-width: 220px;
}
.gd-trust-item + .gd-trust-item { border-left: 1px solid var(--gray-200); }
.gd-trust-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--badge-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gd-trust-icon svg { width: 22px; height: 22px; color: var(--purple); }
.gd-trust-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.gd-trust-desc  { font-size: 12px; color: var(--gray-600); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════
   CTA BANNER (mobile)
   ══════════════════════════════════════════════════════════ */
.gd-cta-banner {
    display: none;
    position: sticky;
    bottom: 76px;
    left: 0; right: 0;
    z-index: 150;
    margin: 16px 18px 8px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 16px 18px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(94,59,238,.35);
    overflow: hidden;
    position: relative;
}
.gd-cta-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.gd-cta-icon svg { width: 20px; height: 20px; color: #fff; }
.gd-cta-text { flex: 1; }
.gd-cta-text strong { color: #fff; font-size: 13px; display: block; }
.gd-cta-text span   { color: rgba(255,255,255,.75); font-size: 11px; }
.gd-cta-btn {
    background: #fff;
    color: var(--purple);
    border: none; border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px; font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.gd-cta-btn svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════════ */
.gd-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    height: 64px;
    z-index: 200;
    padding: 0 8px;
    justify-content: space-around;
    align-items: center;
}
.gd-bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; padding: 8px 0;
    cursor: pointer; text-decoration: none;
    color: var(--gray-400);
    font-size: 10px; font-weight: 500;
}
.gd-bottom-nav-item svg { width: 22px; height: 22px; }
.gd-bottom-nav-item.active { color: var(--purple); }

/* ══════════════════════════════════════════════════════════
   COUNTRIES
   ══════════════════════════════════════════════════════════ */
.gd-countries-section { background: var(--gray-50); }
.gd-countries-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: all .2s;
    box-shadow: var(--shadow-xs);
}
.gd-country-chip:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--primary-glow);
    transform: translateY(-2px);
    color: var(--purple);
}
.gd-country-flag { font-size: 22px; }
.gd-country-count {
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

/* ── How It Works ────────────────────────────────────────── */
.gd-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.gd-how-item {
    text-align: center;
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all .25s;
}
.gd-how-item:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.gd-how-icon {
    width: 56px; height: 56px;
    background: var(--badge-bg);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.gd-how-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: var(--text-dark); }
.gd-how-item p  { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   LISTADO
   ══════════════════════════════════════════════════════════ */
.gd-listado {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 80px;
    background: var(--gray-50);
    min-height: 60vh;
}
.gd-listado-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.gd-listado-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 18px;
    flex: 1;
    max-width: 400px;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
.gd-listado-search:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.gd-listado-search svg { width: 17px; height: 17px; color: var(--gray-400); flex-shrink: 0; }
.gd-listado-search input { border: none; outline: none; font-size: 14px; width: 100%; color: var(--text-dark); background: transparent; font-family: 'Inter', sans-serif; }
.gd-listado-count { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.gd-listado-count strong { color: var(--text-dark); font-weight: 700; }

.gd-listado-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.gd-sidebar-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 24px;
    box-shadow: var(--shadow-sm);
}
.gd-sidebar-title { font-size: 16px; font-weight: 800; margin: 0 0 24px; color: var(--text-dark); padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.gd-filter-group { margin-bottom: 22px; }
.gd-filter-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gray-400); margin-bottom: 8px; }
.gd-filter-select {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.gd-filter-select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--primary-glow); }
.gd-radio-group { display: flex; flex-direction: column; gap: 10px; }
.gd-radio { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; color: var(--gray-700); font-weight: 500; }
.gd-radio input { accent-color: var(--purple); }

.gd-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gd-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--badge-bg); color: var(--badge-color);
    border: 1px solid #c4b5fd;
    border-radius: 100px; font-size: 13px; font-weight: 600; padding: 5px 12px;
}
.gd-chip a { color: var(--badge-color); text-decoration: none; font-weight: 700; }

/* List items */
.gd-doctors-list { display: flex; flex-direction: column; gap: 14px; }
.gd-list-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 18px;
    align-items: center;
    transition: all .22s;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}
.gd-list-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--purple), var(--purple-light));
    opacity: 0;
    transition: opacity .22s;
}
.gd-list-item:hover { border-color: rgba(139,127,245,.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gd-list-item:hover::before { opacity: 1; }

.gd-list-photo { width: 88px; height: 88px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.gd-list-photo img { width: 100%; height: 100%; object-fit: cover; }
.gd-list-photo-placeholder { width: 88px; height: 88px; border-radius: var(--radius); background: var(--badge-bg); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: var(--purple); }
.gd-list-spec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--purple); margin-bottom: 3px; }
.gd-list-name { font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.gd-list-name a { color: var(--text-dark); text-decoration: none; }
.gd-list-name a:hover { color: var(--purple); }
.gd-list-address { font-size: 12.5px; color: var(--gray-400); display: flex; align-items: flex-start; gap: 4px; margin-bottom: 10px; line-height: 1.5; }
.gd-list-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-list-tag { background: var(--gray-50); color: var(--gray-500); border: 1px solid var(--gray-200); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.gd-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gd-list-rating { text-align: right; }
.gd-list-avg { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-size: 17px; font-weight: 800; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 4px; box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.gd-list-reviews { font-size: 11px; color: var(--gray-400); display: block; text-align: right; }
.gd-list-no-rating { font-size: 12px; color: var(--gray-400); }

/* Pagination */
.gd-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 40px;
    flex-wrap: wrap;
}
.gd-page-btn {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px; font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    transition: all .15s;
    box-shadow: var(--shadow-xs);
    display: inline-flex; align-items: center; gap: 6px;
}
.gd-page-btn:hover { border-color: var(--purple); background: var(--badge-bg); box-shadow: var(--shadow-sm); }
.gd-page-btn--disabled { color: var(--gray-400); opacity: .5; cursor: not-allowed; pointer-events: none; }
.gd-page-btn--nav { padding: 10px 14px; }
.gd-page-btn-text { display: inline; }

/* Numeric page buttons */
.gd-page-numbers { display: flex; align-items: center; gap: 6px; }
.gd-page-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all .15s;
    box-shadow: var(--shadow-xs);
}
.gd-page-num:hover { border-color: var(--purple); color: var(--purple); background: var(--badge-bg); }
.gd-page-num--current {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(94,59,238,.4);
}
.gd-page-num--current:hover {
    background: var(--purple-dark);
    color: #fff;
}
.gd-page-ellipsis {
    color: var(--gray-400);
    font-weight: 600;
    padding: 0 4px;
}
.gd-page-info { font-size: 13px; color: var(--gray-400); font-weight: 500; }

/* Mobile: hide the "Anterior"/"Siguiente" text labels to save space */
@media (max-width: 600px) {
    .gd-page-btn-text { display: none; }
    .gd-page-btn--nav { padding: 10px 12px; }
    .gd-page-num { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; }
    .gd-pagination { gap: 6px; margin-top: 28px; }
    .gd-page-numbers { gap: 4px; }
}

/* Empty state */
.gd-empty-state { text-align: center; padding: 100px 24px; }
.gd-empty-icon { width: 80px; height: 80px; background: var(--badge-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 24px; }
.gd-empty-state h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--text-dark); }
.gd-empty-state p { color: var(--gray-500); margin: 0 0 28px; font-size: 15px; }

.gd-sidebar-card .gd-btn--primary { width: 100%; justify-content: center; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   PERFIL
   ══════════════════════════════════════════════════════════ */
.gd-perfil {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 120px;
    background: var(--gray-50);
    min-height: 60vh;
}

.gd-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-400); margin-bottom: 24px; flex-wrap: wrap; }
.gd-breadcrumb a { color: var(--purple); text-decoration: none; font-weight: 500; }
.gd-breadcrumb a:hover { text-decoration: underline; }
.gd-breadcrumb span { color: var(--gray-300); }

/* ══════════════════════════════════════════════════════════
   PROFILE HEADER — premium redesign with better hierarchy
   ══════════════════════════════════════════════════════════ */
.gd-profile-header {
    background:
        linear-gradient(135deg, var(--navy) 0%, #1e3a8a 50%, #4f46e5 100%);
    border-radius: var(--radius-xl);
    padding: 48px 44px 44px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 60px -20px rgba(15,23,42,.45),
        0 8px 24px -8px rgba(94,59,238,.35);
}
.gd-profile-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 10%, rgba(139,127,245,.28) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(108,92,231,.18) 0%, transparent 55%);
    pointer-events: none;
}
.gd-profile-header::after {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 60%; height: 140%;
    background: linear-gradient(145deg, rgba(255,255,255,.04) 0%, rgba(129,140,248,.08) 40%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.gd-profile-photo-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.05));
    border-radius: 24px;
}
.gd-profile-photo {
    width: 144px; height: 144px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.95);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    display: block;
}
.gd-profile-photo-placeholder {
    width: 144px; height: 144px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139,127,245,.45), rgba(94,59,238,.3));
    border: 3px solid rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; font-weight: 800;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.gd-profile-info { position: relative; z-index: 2; min-width: 0; }

.gd-profile-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 18px;
}
.gd-tag {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.9);
    font-size: 11.5px; font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: .01em;
    backdrop-filter: blur(6px);
}
.gd-tag--spec {
    background: rgba(139,127,245,.3);
    border-color: rgba(196,181,253,.4);
    color: #ede9fe;
}

.gd-profile-name {
    font-size: clamp(26px, 3.2vw, 36px) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 14px !important;
    line-height: 1.18 !important;
    letter-spacing: -.025em !important;
    display: block !important;
}

.gd-profile-rating-row {
    display: flex; align-items: center;
    gap: 12px; margin-bottom: 24px;
    flex-wrap: wrap;
}
.gd-rating-num {
    font-size: 26px; font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.gd-rating-total { font-size: 13px; color: rgba(255,255,255,.6); }

.gd-no-reviews-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-size: 13px; font-weight: 500;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.15);
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.gd-profile-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding-top: 4px;
}

.gd-profile-body { display: grid; grid-template-columns: 1fr 328px; gap: 20px; align-items: start; }

.gd-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; box-shadow: var(--shadow-xs); }
.gd-card-title { font-size: 17px; font-weight: 800; margin: 0 0 22px; color: var(--text-dark); }
.gd-card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.gd-card-title-row .gd-card-title { margin: 0; }
.gd-reviews-sort select { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; outline: none; color: var(--gray-700); font-family: 'Inter', sans-serif; }
.gd-card--map { padding: 20px; overflow: hidden; }
.gd-card--map .gd-card-title { padding: 0; margin-bottom: 16px; }
.gd-card--map iframe { border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: block; }

.gd-rating-breakdown { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding: 4px 0 8px; }
.gd-rating-big { text-align: center; }
.gd-rating-big-num { font-size: 64px; font-weight: 800; color: var(--text-dark); line-height: 1; display: block; letter-spacing: -2px; }
.gd-rating-big-label { font-size: 12px; color: var(--gray-400); display: block; margin-top: 8px; font-weight: 500; }
.gd-rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.gd-rating-bar-row { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px; }
.gd-bar-label { font-size: 12px; font-weight: 600; color: var(--gray-400); text-align: right; }
.gd-bar-bg { background: var(--gray-100); border-radius: 100px; height: 7px; overflow: hidden; }
.gd-bar-fill { height: 100%; border-radius: 100px; transition: width .8s; }
.gd-bar-fill--5 { background: linear-gradient(90deg, #059669, #34d399); }
.gd-bar-fill--4 { background: linear-gradient(90deg, #65a30d, #a3e635); }
.gd-bar-fill--3 { background: linear-gradient(90deg, #d97706, #fbbf24); }
.gd-bar-fill--2 { background: linear-gradient(90deg, #ea580c, #fb923c); }
.gd-bar-fill--1 { background: linear-gradient(90deg, #dc2626, #f87171); }
.gd-bar-count { font-size: 12px; color: var(--gray-400); }

.gd-review-card { border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; transition: all .2s; background: var(--gray-50); }
.gd-review-card:hover { box-shadow: var(--shadow-sm); border-color: var(--gray-200); }
.gd-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gd-review-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0; }
.gd-review-meta { flex: 1; }
.gd-review-author { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.gd-review-date { font-size: 12px; color: var(--gray-400); }
.gd-review-stars { display: flex; gap: 2px; }
.gd-star--filled { color: var(--star); font-size: 14px; }
.gd-star { color: #e2e8f0; font-size: 14px; }
.gd-review-title { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; color: var(--text-dark); }
.gd-review-content { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.7; }
.gd-empty-reviews { text-align: center; padding: 48px 20px; }
.gd-empty-reviews span { font-size: 44px; display: block; margin-bottom: 14px; }
.gd-empty-reviews p { color: var(--gray-400); margin: 0; font-size: 14px; }

.gd-review-form-wrap { border: 2px solid var(--badge-bg); background: linear-gradient(to bottom right, #fff, #faf8ff); }
.gd-form-sub { font-size: 13.5px; color: var(--gray-500); margin: -14px 0 22px; line-height: 1.6; }
.gd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gd-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.gd-form-field label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.gd-req { color: var(--red); }
.gd-form-field input, .gd-form-field textarea { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 11px 14px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-dark); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; resize: vertical; background: #fff; }
.gd-form-field input:focus, .gd-form-field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--primary-glow); }
.gd-form-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.gd-form-error { background: #fff1f2; border: 1.5px solid #fecdd3; color: #be123c; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }

.gd-star-picker { display: flex; align-items: center; gap: 4px; margin: 4px 0; }
.gd-star-pick { background: none; border: none; font-size: 34px; color: #e2e8f0; cursor: pointer; padding: 0; line-height: 1; transition: color .1s, transform .12s; }
.gd-star-pick:hover, .gd-star-pick.active { color: var(--star); transform: scale(1.25); }
.gd-star-label { font-size: 13px; color: var(--gray-500); margin-left: 8px; font-weight: 500; }

.gd-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.gd-contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; padding: 12px; background: var(--gray-50); border-radius: var(--radius-sm); }
.gd-contact-icon { font-size: 18px; flex-shrink: 0; }
.gd-contact-list a { color: var(--purple); text-decoration: none; word-break: break-all; font-weight: 500; }
.gd-contact-list a:hover { text-decoration: underline; }
.gd-hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.gd-hours-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.gd-hours-row:last-child { border-bottom: none; }
.gd-hours-day { color: var(--gray-500); font-weight: 500; }
.gd-hours-time { font-weight: 600; color: var(--text-dark); }
.gd-closed { color: var(--red) !important; font-weight: 600 !important; }

/* Hours empty state */
.gd-hours-empty {
    text-align: center;
    padding: 24px 12px;
    color: var(--gray-500);
}
.gd-hours-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    opacity: .6;
}
.gd-hours-empty p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--gray-500);
}
.gd-hours-link {
    display: inline-block;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid var(--purple);
    border-radius: 8px;
    transition: all .15s ease;
}
.gd-hours-link:hover {
    background: var(--badge-bg);
    transform: translateY(-1px);
}

.gd-related-section { max-width: 1100px; margin: 0; padding: 48px 0 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.gd-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 24px; border-radius: var(--radius-btn);
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none; line-height: 1;
    transition: all .18s; white-space: nowrap;
}
.gd-btn:hover { transform: translateY(-2px); }
.gd-btn:active { transform: translateY(0); }
.gd-btn--primary { background: var(--purple); color: #fff; box-shadow: 0 4px 14px rgba(108,92,231,.35); }
.gd-btn--primary:hover { background: var(--purple-dark); box-shadow: 0 8px 24px rgba(108,92,231,.45); color: #fff; }
.gd-btn--outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.gd-btn--outline:hover { background: var(--badge-bg); box-shadow: 0 0 0 3px var(--primary-glow); }
/* Inside dark profile header, outline buttons should have white text + white border */
.gd-profile-actions .gd-btn--outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.6) !important;
}
.gd-profile-actions .gd-btn--outline:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: #fff !important;
}
.gd-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.gd-btn--ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #fff; }
/* Inside dark profile header, ensure all action buttons have white text */
.gd-profile-actions .gd-btn { color: #fff; }
.gd-profile-actions .gd-btn--primary { color: #fff; }
.gd-profile-actions .gd-btn:hover { color: #fff; }
.gd-btn--full { width: 100%; justify-content: center; }
.gd-btn--sm { font-size: 13px; padding: 8px 16px; }
.gd-btn--lg { font-size: 16px; padding: 14px 32px; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .gd-topbar { display: none; }
    .gd-mobile-header { display: flex; }

    /* HERO — proper 18px horizontal padding */
    .gd-hero { padding: 20px 18px 28px; }
    .gd-hero-title { font-size: 26px; max-width: 100%; margin: 14px auto 0; }

    /* SEARCH — vertical stack with proper spacing */
    .gd-search-box {
        flex-direction: column;
        border-radius: 14px;
        padding: 8px;
        gap: 8px;
    }
    .gd-search-icon { display: none; }
    .gd-search-field input {
        width: 100%;
        background: var(--gray-100);
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 14px;
    }
    .gd-search-divider { display: none; }
    .gd-search-field--country {
        width: 100%;
        background: var(--gray-100);
        border-radius: 10px;
        padding: 12px 14px;
        justify-content: space-between;
    }
    .gd-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        padding: 13px;
        font-size: 15px;
    }

    /* STATS — 3 columns compact */
    .gd-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 100%; }
    .gd-hero-stat { padding: 12px 8px; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
    .gd-hero-stat-icon { width: 28px; height: 28px; }
    .gd-hero-stat-icon svg { width: 18px; height: 18px; }
    .gd-hero-stat strong { font-size: 18px; }
    .gd-hero-stat span { font-size: 9px; }

    /* SECTIONS — proper 18px horizontal padding */
    .gd-section { padding: 28px 18px 28px; }
    .gd-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* CARD — proper internal padding */
    .gd-card-body { padding: 12px 12px 14px; }
    .gd-card-name { font-size: 13px; }
    .gd-card-location { font-size: 11px; }
    .gd-card-spec { font-size: 9px; padding: 4px 7px; }
    .gd-card-fav { width: 28px; height: 28px; top: 8px; right: 8px; }
    .gd-card-fav svg { width: 14px; height: 14px; }

    /* TRUST BAR — 2x2 grid */
    .gd-trust-bar { flex-wrap: wrap; padding: 24px 18px; gap: 16px; }
    .gd-trust-item { border-left: none !important; padding: 0; max-width: 48%; flex: 0 0 48%; }
    .gd-trust-icon { width: 40px; height: 40px; }
    .gd-trust-icon svg { width: 18px; height: 18px; }

    /* CTA banner — proper margins */
    .gd-cta-banner { display: flex; margin: 16px 18px 8px; }
    .gd-bottom-nav { display: flex; }

    /* COUNTRIES section — proper padding */
    .gd-countries-section { padding: 28px 18px; }
    .gd-country-chip { padding: 10px 14px; font-size: 13px; }

    /* HOW IT WORKS — proper padding */
    .gd-how-section { padding: 28px 18px; }
    .gd-how-item { padding: 24px 18px; }

    /* === LISTADO PAGE (mobile) === */
    .gd-listado {
        padding: 0 0 100px;
        max-width: 100%;
        background: var(--gray-50);
        min-height: 100vh;
    }
    /* Inner content of listado gets padding, but container is full-bleed */
    .gd-listado > *:not(.gd-mobile-header):not(.gd-bottom-nav) {
        padding-left: 18px;
        padding-right: 18px;
    }
    .gd-listado-topbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; padding-top: 20px; }
    .gd-listado-search { max-width: 100%; padding: 10px 14px; }
    .gd-listado-count { font-size: 13px; }

    /* Sidebar becomes collapsible top filter on mobile */
    .gd-listado-layout { grid-template-columns: 1fr; gap: 16px; }
    .gd-sidebar { order: 2; }
    .gd-sidebar-card { padding: 16px; position: static; top: auto; }
    .gd-sidebar-title { font-size: 15px; margin: 0 0 14px; padding-bottom: 12px; }
    .gd-filter-group { margin-bottom: 16px; }
    .gd-filter-group label { font-size: 10px; }
    .gd-filter-select { padding: 9px 12px; font-size: 13px; }
    .gd-radio { font-size: 13px; }

    /* List items — proper padding and structure */
    .gd-list-item {
        grid-template-columns: 72px 1fr;
        padding: 14px;
        gap: 12px;
    }
    .gd-list-photo { width: 72px; height: 72px; }
    .gd-list-photo-placeholder { width: 72px; height: 72px; font-size: 24px; }
    .gd-list-name { font-size: 15px; }
    .gd-list-address { font-size: 12px; }
    .gd-list-right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--gray-100);
        padding-top: 12px;
        margin-top: 4px;
        gap: 10px;
    }
    .gd-list-avg { width: 36px; height: 36px; font-size: 15px; }
    .gd-btn--sm { font-size: 12px; padding: 7px 12px; }

    /* Active filters chips */
    .gd-active-filters { padding: 0; margin-bottom: 14px; }
    .gd-chip { font-size: 12px; padding: 4px 10px; }

    /* Pagination */
    .gd-pagination { margin-top: 28px; gap: 8px; }
    .gd-page-btn { padding: 8px 16px; font-size: 13px; }
    .gd-page-info { font-size: 12px; }

    /* Empty state */
    .gd-empty-state { padding: 60px 20px; }

    /* === PERFIL PAGE (mobile) === */
    .gd-perfil {
        padding: 0 0 140px;
        max-width: 100%;
        background: var(--gray-50);
        min-height: 100vh;
    }
    /* Inner content of perfil gets padding, but container is full-bleed */
    .gd-perfil > *:not(.gd-mobile-header):not(.gd-bottom-nav) {
        padding-left: 18px;
        padding-right: 18px;
    }
    /* Add bottom padding to the last card so it doesn't touch the footer */
    .gd-perfil > .gd-profile-body,
    .gd-perfil > .gd-related-section,
    .gd-perfil .gd-profile-body > *:last-child,
    .gd-perfil .gd-card:last-child {
        margin-bottom: 24px;
    }
    .gd-perfil > .gd-breadcrumb { padding-top: 16px; }

    /* Breadcrumb — proper padding */
    .gd-breadcrumb { font-size: 12px; margin-bottom: 16px; gap: 4px; }

    /* Profile header — premium mobile layout */
    .gd-profile-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 36px 22px 32px;
        border-radius: 20px;
        gap: 22px;
        margin-bottom: 22px;
    }
    .gd-profile-photo-wrap { display: flex; justify-content: center; padding: 3px; border-radius: 20px; }
    .gd-profile-photo,
    .gd-profile-photo-placeholder { width: 120px; height: 120px; border-radius: 16px; }
    .gd-profile-info { width: 100%; text-align: center; }
    .gd-profile-tags { justify-content: center; gap: 6px; margin-bottom: 14px; }
    .gd-tag { font-size: 11px; padding: 5px 12px; }
    .gd-profile-name { font-size: 24px !important; margin: 8px 0 12px !important; text-align: center !important; line-height: 1.2 !important; }
    .gd-profile-rating-row { justify-content: center; gap: 8px; margin-bottom: 18px; }
    .gd-rating-num { font-size: 22px; }
    .gd-no-reviews-badge { margin-left: auto; margin-right: auto; }
    .gd-profile-actions { justify-content: center; gap: 8px; }
    .gd-profile-actions .gd-btn { font-size: 13px; padding: 9px 14px; }

    .gd-profile-body { grid-template-columns: 1fr; gap: 16px; }

    /* Profile cards */
    .gd-card { padding: 18px; margin-bottom: 14px; }
    .gd-card-title { font-size: 16px; margin: 0 0 16px; }
    .gd-card-title-row { margin-bottom: 14px; }
    .gd-reviews-sort select { font-size: 12px; padding: 5px 8px; }

    /* Rating breakdown */
    .gd-rating-breakdown { flex-direction: column; gap: 20px; padding: 0; }
    .gd-rating-big-num { font-size: 48px; }
    .gd-rating-bars { gap: 8px; }
    .gd-rating-bar-row { grid-template-columns: 24px 1fr 24px; gap: 8px; }

    /* Review card */
    .gd-review-card { padding: 14px; }
    .gd-review-header { gap: 10px; margin-bottom: 10px; }
    .gd-review-avatar { width: 36px; height: 36px; font-size: 14px; }
    .gd-review-author { font-size: 13px; }
    .gd-review-date { font-size: 11px; }
    .gd-review-title { font-size: 14px; }
    .gd-review-content { font-size: 13px; line-height: 1.6; }

    /* Review form */
    .gd-review-form-wrap { padding: 18px; }
    .gd-form-sub { font-size: 13px; margin: -10px 0 16px; }
    .gd-form-field { margin-bottom: 14px; }
    .gd-form-field label { font-size: 12px; }
    .gd-form-field input,
    .gd-form-field textarea { padding: 10px 12px; font-size: 14px; }
    .gd-star-pick { font-size: 30px; }

    /* Contact list */
    .gd-contact-list li { padding: 10px; font-size: 13px; gap: 10px; }
    .gd-contact-icon { font-size: 16px; }

    /* Hours */
    .gd-hours-row { padding: 8px 0; font-size: 13px; }

    /* Map card */
    .gd-card--map { padding: 14px; }
    .gd-card--map iframe { height: 180px; }

    /* Related section */
    .gd-related-section { padding: 28px 0 0; }
    .gd-related-section .gd-section-header { margin-bottom: 18px; }
    .gd-related-section h2 { font-size: 18px; }

    /* No more bottom padding needed — bottom-nav was removed in v1.0.12 */
    .gd-wrap { padding-bottom: 0; }
}

@media (max-width: 500px) {
    .gd-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .gd-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .gd-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .gd-form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .gd-wrap *, .gd-wrap *::before, .gd-wrap *::after { transition-duration: .01ms !important; }
}
