/* ============================================
   Agency Brand CSS — Casa Púrpura
   Complete redesign with 3 unique templates
   Uses CSS custom properties (--agency-*)
   injected by AgencyBrandingService.
   ============================================ */

/* ── Defaults (fallback to Casa Púrpura purple) ── */
:root {
    --agency-primary: #36139D;
    --agency-primary-rgb: 54, 19, 157;
    --agency-primary-text: #FFFFFF;
    --agency-primary-hover: #2d1080;
    --agency-primary-light: rgba(54, 19, 157, 0.1);
    --agency-secondary: #671AB0;
    --agency-secondary-rgb: 103, 26, 176;
    --agency-secondary-text: #FFFFFF;
    --agency-secondary-hover: #551590;
    --agency-accent: #671AB0;
    --agency-accent-rgb: 103, 26, 176;
    --agency-accent-text: #FFFFFF;
    --agency-section-padding: 80px;
    --agency-section-padding-mobile: 50px;
}

/* ── Preview Banner ── */
.agency-preview-banner {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.85rem;
    border-bottom: 1px solid #fcd34d;
    position: relative;
    z-index: 100;
}

/* ── Designer Mode ── */
body.designer-mode .main-header { display: none !important; }
body.designer-mode .agency-preview-banner { display: none !important; }
body.designer-mode .bottom-bar-action { display: none !important; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.agency-btn-primary {
    display: inline-block;
    background-color: var(--agency-primary);
    color: var(--agency-primary-text);
    border: 2px solid var(--agency-primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}
.agency-btn-primary:hover {
    background-color: var(--agency-primary-hover);
    border-color: var(--agency-primary-hover);
    color: var(--agency-primary-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--agency-primary-rgb), 0.35);
    text-decoration: none;
}

.agency-btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}
.agency-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.agency-btn-white {
    display: inline-block;
    background: #fff;
    color: var(--agency-primary);
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}
.agency-btn-white:hover {
    background: rgba(255,255,255,0.9);
    color: var(--agency-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.agency-btn-secondary {
    display: inline-block;
    background-color: var(--agency-secondary);
    color: var(--agency-secondary-text);
    border: 2px solid var(--agency-secondary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}
.agency-btn-secondary:hover {
    background-color: var(--agency-secondary-hover);
    border-color: var(--agency-secondary-hover);
    color: var(--agency-secondary-text);
    text-decoration: none;
}

.agency-btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.agency-btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.agency-badge {
    background-color: var(--agency-primary-light);
    color: var(--agency-primary);
    font-weight: 600;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.75rem;
}
.agency-badge-sm {
    background-color: var(--agency-primary-light);
    color: var(--agency-primary);
    font-weight: 600;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.7rem;
}

/* ═══════════════════════════════════════════
   HEADINGS & DIVIDERS
   ═══════════════════════════════════════════ */
.agency-heading-accent { color: var(--agency-primary); }
.agency-divider {
    background-color: var(--agency-primary);
    height: 3px;
    width: 50px;
    border-radius: 2px;
}
.agency-section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    line-height: 1.2;
}
.agency-section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   ICON CIRCLE
   ═══════════════════════════════════════════ */
.agency-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--agency-primary-light);
    color: var(--agency-primary);
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* ═══════════════════════════════════════════
   SOCIAL ICONS
   ═══════════════════════════════════════════ */
.agency-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--agency-primary-rgb), 0.2);
    color: var(--agency-primary);
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.95rem;
}
.agency-social-icon:hover {
    background: var(--agency-primary);
    border-color: var(--agency-primary);
    color: var(--agency-primary-text);
    text-decoration: none;
    transform: translateY(-2px);
}
.agency-social-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(var(--agency-primary-rgb), 0.15);
    color: rgba(var(--agency-primary-rgb), 0.6);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.agency-social-icon-sm:hover {
    background: var(--agency-primary);
    border-color: var(--agency-primary);
    color: var(--agency-primary-text);
}

/* White variant (dark backgrounds) */
.agency-social-icon-white {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.95rem;
}
.agency-social-icon-white:hover {
    background: #fff;
    border-color: #fff;
    color: var(--agency-primary);
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   BREADCRUMB (Classic template)
   ═══════════════════════════════════════════ */
.agency-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    font-size: 0.85rem;
}
.agency-breadcrumb a { color: var(--agency-primary); text-decoration: none; }
.agency-breadcrumb a:hover { text-decoration: underline; }
.agency-breadcrumb .separator { color: #9ca3af; margin: 0 8px; }
.agency-breadcrumb .current { color: #6b7280; }

/* ═══════════════════════════════════════════
   HERO — SHARED BASE
   ═══════════════════════════════════════════ */
.agency-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--agency-primary);
}
.agency-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.agency-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.agency-hero-overlay {
    position: absolute;
    inset: 0;
}
.agency-hero-content {
    position: relative;
    z-index: 2;
}
.agency-hero-logo {
    max-height: 80px;
    max-width: 280px;
    object-fit: contain;
}

/* ── Classic Hero: compact, centered, minimal ── */
.agency-hero-classic {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}
.agency-hero-classic .agency-hero-overlay {
    background: linear-gradient(135deg, var(--agency-primary) 0%, var(--agency-secondary) 100%);
    opacity: 0.92;
}
.agency-hero-classic .agency-hero-content { text-align: center; }
.agency-hero-classic,
.agency-hero-classic h1,
.agency-hero-classic p { color: var(--agency-primary-text); }

/* ── Modern Hero: tall, left-aligned, CTA buttons ── */
.agency-hero-modern {
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.agency-hero-modern .agency-hero-overlay {
    background:
        linear-gradient(112deg, rgba(12, 18, 33, 0.9) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.45) 72%, rgba(17, 24, 39, 0.26) 100%),
        radial-gradient(circle at 18% 22%, rgba(var(--agency-primary-rgb), 0.26) 0%, rgba(var(--agency-primary-rgb), 0.08) 34%, transparent 58%);
}
.agency-hero-modern .agency-hero-content { text-align: left; max-width: 600px; }
.agency-hero-modern,
.agency-hero-modern h1,
.agency-hero-modern p { color: #fff; }
.agency-hero-modern h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Scroll indicator */
.agency-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: agency-bounce 2s infinite;
}
.agency-scroll-indicator i { color: rgba(255,255,255,0.7); font-size: 1.5rem; }
@keyframes agency-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Elegant Hero: fullscreen, dark overlay, contact info ── */
.agency-hero-elegant {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}
.agency-hero-elegant .agency-hero-overlay {
    background: linear-gradient(180deg, rgba(26,26,46,0.82) 0%, rgba(26,26,46,0.95) 100%);
}
.agency-hero-elegant .agency-hero-content { text-align: center; }
.agency-hero-elegant,
.agency-hero-elegant h1,
.agency-hero-elegant p { color: #fff; }
.agency-hero-elegant h1 { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.03em; }
.agency-hero-elegant .agency-hero-logo { max-height: 90px; }

.agency-hero-contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}
.agency-hero-contact-info a { color: rgba(255,255,255,0.8); text-decoration: none; }
.agency-hero-contact-info a:hover { color: #fff; }
.agency-hero-contact-info .separator { color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════
   HEADER VARIANTS
   ═══════════════════════════════════════════ */
.agency-header {
    position: relative;
    z-index: 1030;
    transition: all 0.3s ease;
}

.agency-header-logo {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.agency-header-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

/* White header (Classic) */
.agency-header-white {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.agency-header-white .agency-btn-outline {
    color: #555;
    border-color: #ddd;
}
.agency-header-white .agency-btn-outline:hover {
    color: var(--agency-primary);
    border-color: var(--agency-primary);
    background: var(--agency-primary-light);
}

/* Transparent header (Modern — overlays hero) */
.agency-header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    border-bottom: none;
}
.agency-header-transparent .header-btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.agency-header-transparent .header-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
/* Scrolled sticky state */
.agency-header-transparent.is-scrolled {
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    animation: agency-slideDown 0.3s ease;
}
@keyframes agency-slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.agency-header-transparent.is-scrolled .header-logo-light { display: none !important; }
.agency-header-transparent.is-scrolled .header-logo-dark { display: inline-block !important; }
.agency-header-transparent.is-scrolled .header-btn-outline {
    color: #555;
    border-color: #ddd;
}
.agency-header-transparent.is-scrolled .header-btn-outline:hover {
    color: var(--agency-primary);
    border-color: var(--agency-primary);
}

/* Dark header (Elegant) */
.agency-header-dark {
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.agency-header-dark nav a:hover { color: #fff !important; }

/* ═══════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════ */
.agency-stat-icon {
    font-size: 1.5rem;
    color: var(--agency-primary);
    margin-bottom: 8px;
}
.agency-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--agency-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.agency-stat-label {
    font-size: 0.88rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}

/* Light stats (Classic) */
.agency-stats-light {
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* Brand stats with parallax bg (Modern) */
.agency-stats-brand {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.agency-stats-brand .agency-stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--agency-primary-rgb), 0.9);
}
.agency-stats-brand .agency-stat-number { color: #fff; font-size: 2.75rem; }
.agency-stats-brand .agency-stat-label { color: rgba(255,255,255,0.75); }
.agency-stats-brand .agency-stat-icon { color: rgba(255,255,255,0.8); }

/* Dark floating stats (Elegant) */
.agency-stats-dark { background: #1a1a2e; position: relative; z-index: 3; }
.agency-stats-floating { margin-top: -40px; position: relative; z-index: 3; }
.agency-stats-floating .agency-stats-inner {
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 32px;
}
.agency-stats-dark .agency-stat-number { color: var(--agency-primary); filter: brightness(1.3); font-size: 2.75rem; }
.agency-stats-dark .agency-stat-label { color: #9ca3af; }
.agency-stats-dark .agency-stat-icon { color: var(--agency-primary); opacity: 0.7; }

/* ═══════════════════════════════════════════
   CTA BAR (Modern)
   ═══════════════════════════════════════════ */
.agency-cta-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.agency-cta-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(var(--agency-primary-rgb), 0.18) 0%, transparent 42%);
    pointer-events: none;
}
.agency-cta-bar h3,
.agency-cta-bar p {
    position: relative;
    z-index: 1;
}
.agency-cta-bar h3 { color: #f9fafb; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.agency-cta-bar p { color: rgba(249, 250, 251, 0.82); }

/* ═══════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════ */
.agency-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border-top: 3px solid var(--agency-primary);
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.agency-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.agency-service-card .service-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--agency-primary-light);
    color: var(--agency-primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.25rem;
}
.agency-service-card h4 { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.agency-service-card p { font-size: 0.9rem; color: #6b7280; margin-bottom: 0; }

/* ═══════════════════════════════════════════
   AGENT CARDS
   ═══════════════════════════════════════════ */
/* Circular (Classic) */
.agency-agent-card {
    background: white;
    border-radius: 12px;
    padding: 28px 16px;
    transition: all 0.25s ease;
    border: 1px solid #f3f4f6;
    text-align: center;
}
.agency-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: rgba(var(--agency-primary-rgb), 0.2);
}
.agency-agent-photo-wrap {
    width: 100px; height: 100px; margin: 0 auto 16px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--agency-primary-light);
    transition: border-color 0.2s ease;
}
.agency-agent-card:hover .agency-agent-photo-wrap { border-color: var(--agency-primary); }
.agency-agent-photo { width: 100%; height: 100%; object-fit: cover; }
.agency-agent-socials {
    opacity: 0; transition: opacity 0.2s ease;
    display: flex; justify-content: center; gap: 6px;
}
.agency-agent-card:hover .agency-agent-socials { opacity: 1; }

/* Profile cards (Modern/Elegant team) */
.agency-agent-card-profile {
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 16px;
    padding: 24px 20px 20px;
    transition: all 0.22s ease;
    min-height: 312px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.agency-agent-card-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    border-color: rgba(var(--agency-primary-rgb), 0.45);
}
.agency-agent-card-profile--elegant {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}
.agency-agent-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 4px solid rgba(var(--agency-primary-rgb), 0.15);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.agency-agent-profile-name {
    font-size: 1.7rem;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px;
}
.agency-agent-profile-role {
    font-size: 1.02rem;
    color: var(--agency-primary);
    font-weight: 600;
    margin: 0 0 12px;
}
.agency-agent-profile-bio {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 14px;
    max-width: 94%;
    min-height: 52px;
}
.agency-agent-profile-socials {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.agency-agent-profile-socials .agency-social-icon-sm {
    background: var(--agency-primary-light);
    border: 1px solid rgba(var(--agency-primary-rgb), 0.22);
    color: var(--agency-primary);
}
.agency-agent-profile-socials .agency-social-icon-sm:hover {
    background: var(--agency-primary);
    color: var(--agency-primary-text);
    border-color: var(--agency-primary);
}

/* Rectangular (Modern) */
.agency-agent-card-rect {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #f3f4f6;
}
.agency-agent-card-rect:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.agency-agent-card-rect .agent-photo-rect { width: 100%; height: 240px; object-fit: cover; }
.agency-agent-card-rect .agent-info-rect { padding: 20px; }
.agency-agent-card-rect h3 { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.agency-agent-card-rect .agent-title { font-size: 0.85rem; color: #6b7280; margin-bottom: 12px; }
.agency-agent-card-rect .agent-socials-rect { display: flex; gap: 8px; }

/* Square hover (Elegant) */
.agency-agent-card-square {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.agency-agent-card-square .agent-photo-square {
    width: 100%; height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.agency-agent-card-square:hover .agent-photo-square { transform: scale(1.05); }
.agency-agent-card-square .agent-overlay-square {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,26,46,0.9) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    transition: all 0.3s ease;
}
.agency-agent-card-square:hover .agent-overlay-square {
    background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(26,26,46,0.95) 100%);
}
.agency-agent-card-square .agent-name-square { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.agency-agent-card-square .agent-title-square { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.agency-agent-card-square .agent-socials-square {
    display: flex; gap: 8px;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease;
}
.agency-agent-card-square:hover .agent-socials-square { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════ */
.agency-contact-dark {
    background: linear-gradient(180deg, #0f1320 0%, #151b2a 100%);
}
.agency-contact-dark .contact-info-text { color: rgba(255,255,255,0.7); }
.agency-contact-dark h2 { color: #fff; }

/* Form branded */
.agency-form .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}
.agency-form .form-control:focus {
    border-color: var(--agency-primary);
    box-shadow: 0 0 0 3px rgba(var(--agency-primary-rgb), 0.12);
    background: #fff;
    outline: none;
}

/* Contact cards */
.agency-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.agency-contact-card-elevated {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════
   PROPERTIES / SECTIONS
   ═══════════════════════════════════════════ */
.agency-section { position: relative; }
.agency-section-padded {
    padding-top: var(--agency-section-padding);
    padding-bottom: var(--agency-section-padding);
}

/* ═══════════════════════════════════════════
   FOOTER STYLES
   ═══════════════════════════════════════════ */
.agency-footer-simple {
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    padding: 40px 0;
}

.agency-unified-footer {
    margin-top: 0;
}

.agency-footer-top {
    background: #141833;
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 0 34px;
}

.agency-footer-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.agency-footer-description {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 470px;
}

.agency-footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.agency-footer-list li {
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.agency-footer-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.agency-footer-list a:hover {
    color: #fff;
}

.agency-footer-bottom {
    background: #0f132a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
    padding: 14px 0;
}

.agency-powered-by a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.agency-powered-by a:hover {
    color: #fff;
}

.agency-footer-dark {
    background: #1a1a2e;
    padding: 60px 0 30px;
    color: #9ca3af;
}
.agency-footer-dark h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.agency-footer-dark a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.agency-footer-dark a:hover { color: #fff; }
.agency-footer-dark .footer-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 24px;
}
.agency-footer-dark .footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ═══════════════════════════════════════════
   FORM INPUTS BRANDED
   ═══════════════════════════════════════════ */
.agency-form-input:focus {
    border-color: var(--agency-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--agency-primary-rgb), 0.12) !important;
    outline: none;
}

/* ═══════════════════════════════════════════
   STICKY MOBILE FOOTER
   ═══════════════════════════════════════════ */
.agency-footer-sticky {
    background: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #eee;
}
.agency-footer-sticky .agency-btn-primary {
    display: block;
    border-radius: 6px;
}
.agency-footer-sticky .agency-btn-secondary {
    display: block;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
    :root { --agency-section-padding: 50px; }

    .agency-hero-classic { min-height: 240px; padding: 60px 0 40px; }
    .agency-hero-modern { min-height: 380px; padding: 80px 0 60px; }
    .agency-hero-modern h1 { font-size: 2rem !important; }
    .agency-hero-elegant { min-height: 400px; padding: 80px 0 60px; }
    .agency-hero-elegant h1 { font-size: 2rem !important; }
    .agency-hero-classic h1 { font-size: 1.5rem !important; }

    .agency-stat-number { font-size: 1.75rem; }
    .agency-stats-brand .agency-stat-number,
    .agency-stats-dark .agency-stat-number { font-size: 2rem; }

    .agency-agent-card { padding: 20px 12px; }
    .agency-agent-photo-wrap { width: 80px; height: 80px; }
    .agency-agent-socials { opacity: 1; }
    .agency-agent-card-profile {
        min-height: 285px;
        padding: 20px 16px 18px;
    }
    .agency-agent-avatar {
        width: 84px;
        height: 84px;
    }
    .agency-agent-profile-name {
        font-size: 1.4rem;
    }
    .agency-agent-profile-role {
        font-size: 0.95rem;
    }
    .agency-agent-profile-bio {
        font-size: 0.88rem;
        min-height: 44px;
    }
    .agency-agent-card-rect .agent-photo-rect { height: 180px; }
    .agency-agent-card-square .agent-photo-square { height: 220px; }
    .agency-agent-card-square .agent-socials-square { opacity: 1; transform: none; }

    .agency-section-heading { font-size: 1.4rem; }
    .agency-contact-card,
    .agency-contact-card-elevated { padding: 24px; }
    .agency-scroll-indicator { display: none; }
    .agency-hero-contact-info { font-size: 0.85rem; gap: 12px; }
    .agency-stats-floating { margin-top: -20px; }
    .agency-stats-floating .agency-stats-inner { padding: 20px; }

    .agency-header-transparent {
        position: relative;
        background: #fff !important;
    }
    .agency-header-transparent .header-logo-light { display: none !important; }
    .agency-header-transparent .header-logo-dark { display: inline-block !important; }
    .agency-header-transparent .header-btn-outline {
        color: #555;
        border-color: #ddd;
    }

    .agency-btn-primary,
    .agency-btn-outline,
    .agency-btn-white { padding: 10px 20px; font-size: 0.88rem; }

    main#content { padding-bottom: 70px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .agency-hero-modern { min-height: 450px; }
    .agency-hero-modern h1 { font-size: 2.5rem; }
    .agency-hero-elegant { min-height: 500px; }
    .agency-agent-card-square .agent-photo-square { height: 250px; }
}

/* ═══════════════════════════════════════════
   SLIDER OVERRIDES (Slick)
   ═══════════════════════════════════════════ */
.agency-properties-slider .slick-dots,
.agency-agents-carousel .slick-dots { margin-top: 24px; }
.agency-properties-slider .slick-dots li button:before,
.agency-agents-carousel .slick-dots li button:before { color: var(--agency-primary); }
.agency-properties-slider .slick-prev,
.agency-properties-slider .slick-next {
    background: var(--agency-primary) !important;
    color: var(--agency-primary-text) !important;
    border-radius: 50%;
    width: 40px; height: 40px; z-index: 1;
    top: calc(50% - 20px);
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.agency-properties-slider .slick-prev:hover,
.agency-properties-slider .slick-next:hover { background: var(--agency-primary-hover) !important; }
.agency-properties-slider .slick-prev { left: -16px; }
.agency-properties-slider .slick-next { right: -16px; }
.agency-properties-slider .slick-track { display: flex !important; }
.agency-properties-slider .slick-slide { height: inherit !important; }
.agency-properties-slider .slick-slide > div { height: 100%; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes agency-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.agency-animate-up { animation: agency-fadeInUp 0.6s ease forwards; }

/* Agency property cards (isolated from global Casa Purpura card styles) */
.agency-property-card {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.agency-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
.agency-property-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #eef1f6;
}
.agency-property-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.45s ease;
}
.agency-property-card:hover .agency-property-image {
    transform: scale(1.05);
}
.agency-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--agency-primary);
    color: var(--agency-primary-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 6px 12px;
}
.agency-property-badge-reserved {
    background: #6b7280;
    color: #fff;
}
.agency-property-body {
    padding: 14px 14px 16px;
}
.agency-property-price {
    margin: 0 0 4px;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}
.agency-property-price-note {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
}
.agency-property-title {
    margin: 0 0 4px;
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
}
.agency-property-address {
    margin: 0 0 8px;
    font-size: 0.81rem;
    line-height: 1.35;
    color: #6b7280;
}
.agency-property-specs {
    margin: 0;
    font-size: 0.8rem;
    color: #4b5563;
}

@media (max-width: 767.98px) {
    .agency-property-image-wrap { height: 200px; }
    .agency-properties-slider .slick-prev { left: -8px; }
    .agency-properties-slider .slick-next { right: -8px; }
}

.agency-results-form .agency-form-input {
    min-height: 50px;
    border-radius: 10px;
}

.agency-results-filter-btn {
    min-height: 50px;
    border-radius: 10px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agency-results-pagination .pagination {
    margin-bottom: 0;
}
