/* ==========================================================================
   Torres Arboleda · Página Institucional (La Firma / Nosotros)
   DESIGN EXCELLENCE 3.0: Legibilidad Superior · Fotografía Real · Accesibilidad Universal
   Escala: 17-18px párrafos, 16-17px secundario, 16-18px botones y navegación
   ========================================================================== */

.nosotros-page {
    --nos-ink: #0d2c20;
    --nos-text: #1F2937;
    --nos-muted: #4B5563;
    --nos-gold: #8f6729;
    --nos-gold-light: #b68737;
    --nos-gold-bg: rgba(182, 135, 55, 0.1);
    --nos-line: #dcd9cd;
    --nos-paper: #FAF9F5;
    --nos-white: #FFFFFF;
    --nos-duration: 220ms;
    --nos-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
    background: var(--nos-paper);
    color: var(--nos-text);
}

.nosotros-container {
    max-width: 1328px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}

/* ==========================================================================
   1. HERO INSTITUCIONAL
   ========================================================================== */
.nosotros-hero {
    position: relative;
    padding: 5rem 1.75rem 4rem;
    background: radial-gradient(circle at 85% 15%, rgba(182, 135, 55, 0.08) 0%, transparent 55%),
                radial-gradient(circle at 10% 85%, rgba(2, 53, 36, 0.06) 0%, transparent 50%),
                var(--nos-paper);
    border-bottom: 1px solid var(--nos-line);
}

.nosotros-hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: var(--ta-green);
    margin: 1.25rem 0 1.5rem;
    text-wrap: balance;
}

.nosotros-hero-title span {
    color: var(--nos-gold-light);
    font-style: italic;
}

.nosotros-hero-lead {
    font-size: 1.15rem; /* ~18.4px */
    line-height: 1.7;
    color: var(--nos-muted);
    max-width: 780px;
    margin: 0 auto 2rem;
}

.nosotros-hero-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.75rem;
}

/* ==========================================================================
   2. TRAYECTORIA Y FILOSOFÍA (COMPOSICIÓN ASIMÉTRICA)
   ========================================================================== */
.nosotros-story-section {
    padding: 5.5rem 1.75rem;
}

.nosotros-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
}

.nosotros-story-copy p {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.7;
    color: var(--nos-muted);
    margin-bottom: 1.5rem;
}

.nosotros-photo-card {
    margin-top: 2rem;
}

.nosotros-photo-frame {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(2, 53, 36, 0.1);
    border: 1px solid rgba(2, 53, 36, 0.08);
    background: #ddd9cb;
}

.nosotros-photo-frame picture {
    display: block;
    overflow: hidden;
    border-radius: 7px;
}

.nosotros-photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s var(--nos-ease);
}

.nosotros-photo-frame:hover img {
    transform: scale(1.025);
}

.nosotros-photo-note {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(2, 53, 36, 0.96);
    backdrop-filter: blur(12px);
    border-top: 3px solid var(--ta-gold);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(2, 53, 36, 0.28);
    z-index: 2;
}

.nosotros-photo-note > .icon {
    width: 28px;
    height: 28px;
    color: #dfc28d;
    flex-shrink: 0;
}

.nosotros-photo-note strong {
    display: block;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
}

.nosotros-photo-note small {
    display: block;
    font-size: 14.5px;
    color: #d6e2d9;
    margin-top: 2px;
}

.nosotros-photo-card figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 4px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--nos-muted);
}

.nosotros-photo-card figcaption small {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

/* Tarjeta de Filosofía */
.nosotros-philosophy-card {
    background: #ffffff;
    border: 1px solid rgba(2, 53, 36, 0.1);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 14px 34px rgba(2, 53, 36, 0.05);
    border-top: 4px solid var(--ta-green);
    position: sticky;
    top: 96px;
}

.nosotros-philosophy-card h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ta-green);
    margin: 0 0 1.75rem;
}

.nosotros-pillar {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--nos-line);
}

.nosotros-pillar:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.nosotros-pillar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nos-gold);
    margin: 0 0 0.65rem;
}

.nosotros-pillar-title .icon {
    width: 22px;
    height: 22px;
    color: var(--nos-gold);
}

.nosotros-pillar p {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.68;
    color: var(--nos-muted);
    margin: 0;
}

/* ==========================================================================
   3. EQUIPO DIRECTIVO Y SOCIOS FUNDADORES
   ========================================================================== */
.nosotros-leadership-section {
    background: #ffffff;
    border-top: 1px solid var(--nos-line);
    border-bottom: 1px solid var(--nos-line);
    padding: 6rem 1.75rem;
}

.nosotros-section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem;
}

.nosotros-section-header .section-title {
    font-size: clamp(34px, 3.8vw, 48px);
    margin-top: 0.5rem;
}

.nosotros-section-header p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--nos-muted);
    margin-top: 0.75rem;
}

/* Carrusel ejecutivo de 2 tarjetas visibles */
.nosotros-carousel-shell {
    position: relative;
}

.nosotros-carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nosotros-carousel-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nosotros-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(2, 53, 36, 0.2);
    cursor: pointer;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.25s ease;
}

.nosotros-carousel-dot.is-active {
    width: 32px;
    background: var(--nos-gold);
}

.nosotros-carousel-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nosotros-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(2, 53, 36, 0.18);
    background: #ffffff;
    color: #023524;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 53, 36, 0.06);
    transition: all 0.22s ease;
}

.nosotros-carousel-btn:hover:not(:disabled) {
    background: #023524;
    color: #e6c57b;
    border-color: #023524;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 53, 36, 0.18);
}

.nosotros-carousel-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.nosotros-carousel-viewport {
    overflow: hidden;
    padding: 14px 8px 28px;
    margin: -14px -8px -28px;
}

.nosotros-partners-track {
    display: flex;
    gap: 32px;
    align-items: stretch;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.nosotros-partner-card {
    flex: 0 0 calc((100% - 32px) / 2);
    max-width: calc((100% - 32px) / 2);
    box-sizing: border-box;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(2, 53, 36, 0.12);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px -6px rgba(2, 53, 36, 0.06),
                0 4px 12px -2px rgba(2, 53, 36, 0.03);
    transition: transform var(--nos-duration) var(--nos-ease),
                box-shadow var(--nos-duration) var(--nos-ease),
                border-color var(--nos-duration) var(--nos-ease);
}

.nosotros-partner-card::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #023524 0%, #b68737 50%, #023524 100%);
}

.nosotros-partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px -10px rgba(2, 53, 36, 0.13),
                0 8px 20px -4px rgba(182, 135, 55, 0.12);
    border-color: rgba(182, 135, 55, 0.55);
}

/* Cabecera arquitectónica del socio */
.nosotros-partner-top {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding: 2.25rem 2.25rem 1.65rem;
    background: radial-gradient(circle at 95% 10%, rgba(182, 135, 55, 0.12) 0%, transparent 60%),
                linear-gradient(180deg, #faf9f5 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(2, 53, 36, 0.08);
}

.nosotros-partner-portrait-wrap {
    position: relative;
    flex-shrink: 0;
}

.nosotros-partner-avatar,
.nosotros-partner-badge {
    width: 98px;
    height: 98px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px -4px rgba(2, 53, 36, 0.2);
    border: 3px solid #ffffff;
    outline: 1.5px solid rgba(182, 135, 55, 0.45);
    flex-shrink: 0;
    background: #f1f5f9;
}

.nosotros-partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: transform 0.35s ease;
}

.nosotros-partner-card:hover .nosotros-partner-avatar img {
    transform: scale(1.05);
}

.nosotros-partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
}

.badge-finance {
    background: linear-gradient(135deg, #023524 0%, #0a4d36 100%);
    color: #ffffff;
}

.badge-tech {
    background: linear-gradient(135deg, #b68737 0%, #8f6729 100%);
    color: #ffffff;
}

.nosotros-partner-verified {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #023524;
    color: #e6c57b;
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(2, 53, 36, 0.25);
}

.nosotros-partner-verified .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

.nosotros-partner-identity {
    min-width: 0;
    flex: 1;
}

.nosotros-partner-cargo-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8f6729;
    background: rgba(182, 135, 55, 0.13);
    border: 1px solid rgba(182, 135, 55, 0.28);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.nosotros-partner-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #023524;
    margin: 0 0 0.35rem;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.nosotros-partner-specialty {
    font-size: 0.95rem;
    font-weight: 650;
    color: #334155;
    margin: 0;
    line-height: 1.38;
}

/* Banda de acreditaciones y tarjeta profesional */
.nosotros-partner-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 2.25rem;
    background: #f8faf9;
    border-bottom: 1px solid rgba(2, 53, 36, 0.07);
}

.nosotros-credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d2c20;
}

.nosotros-credential-badge .icon {
    width: 16px;
    height: 16px;
    color: var(--nos-gold);
    flex-shrink: 0;
}

.nosotros-credential-badge strong {
    color: var(--nos-gold);
    font-weight: 700;
}

/* Cuerpo biográfico */
.nosotros-partner-body {
    padding: 1.65rem 2.25rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nosotros-partner-bio {
    font-size: 1.03125rem; /* 16.5px */
    line-height: 1.68;
    color: #374151;
    margin: 0;
}

/* Bloque estructurado de Especialidades / Skills */
.nosotros-partner-skills-box {
    padding: 1.15rem 2.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(250, 249, 245, 0.5) 0%, rgba(250, 249, 245, 0.95) 100%);
    border-top: 1px dashed rgba(2, 53, 36, 0.1);
}

.nosotros-skills-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.nosotros-partner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nosotros-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid rgba(2, 53, 36, 0.13);
    border-radius: 999px;
    color: #0d2c20;
    box-shadow: 0 1px 2px rgba(2, 53, 36, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nosotros-partner-card:hover .nosotros-skill-tag {
    border-color: rgba(182, 135, 55, 0.38);
}

.nosotros-skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nos-gold-light);
    flex-shrink: 0;
}

/* Pie de acción ejecutiva */
.nosotros-partner-footer {
    padding: 1.25rem 2.25rem 1.75rem;
    background: #faf9f5;
    border-top: 1px solid rgba(2, 53, 36, 0.08);
    margin-top: auto;
}

.nosotros-partner-action {
    width: 100%;
    height: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 650;
    color: #023524;
    background: #ffffff;
    border: 1.5px solid rgba(2, 53, 36, 0.18);
    border-radius: 12px;
    padding: 0 1.35rem;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(2, 53, 36, 0.04);
    transition: all 0.22s ease;
}

.nosotros-partner-action-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nosotros-partner-action:hover {
    background: #023524;
    color: #ffffff;
    border-color: #023524;
    box-shadow: 0 8px 20px rgba(2, 53, 36, 0.2);
    transform: translateY(-1px);
}

.nosotros-partner-action .icon {
    width: 18px;
    height: 18px;
    color: var(--nos-gold);
    flex-shrink: 0;
    transition: transform var(--nos-duration) var(--nos-ease), color 0.2s ease;
}

.nosotros-partner-action:hover .icon {
    color: #e6c57b;
    transform: translateX(4px);
}

/* ==========================================================================
   4. PRINCIPIOS Y VALORES FUNDAMENTALES
   ========================================================================== */
.nosotros-principles-section {
    padding: 6rem 1.75rem;
}

.nosotros-principles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.nosotros-principle-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 53, 36, 0.08);
    box-shadow: 0 4px 14px rgba(2, 53, 36, 0.03);
    transition: transform var(--nos-duration) var(--nos-ease),
                box-shadow var(--nos-duration) var(--nos-ease),
                border-color var(--nos-duration) var(--nos-ease);
}

.nosotros-principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(2, 53, 36, 0.07);
    border-color: rgba(182, 135, 55, 0.35);
}

.nosotros-principle-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--nos-gold-bg);
    color: var(--nos-gold);
    margin-bottom: 1.25rem;
}

.nosotros-principle-icon .icon {
    width: 28px;
    height: 28px;
}

.nosotros-principle-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ta-green);
    margin: 0 0 0.75rem;
}

.nosotros-principle-card p {
    font-size: 1rem; /* 16px */
    line-height: 1.65;
    color: var(--nos-muted);
    margin: 0;
}

/* ==========================================================================
   5. BANDA DE IMPACTO & CIFRAS
   ========================================================================== */
.nosotros-metrics-band {
    background: var(--ta-green);
    color: #ffffff;
    padding: 4.5rem 1.75rem;
}

.nosotros-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    text-align: center;
}

.nosotros-metric-item strong {
    display: block;
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    color: #dfc28d;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.nosotros-metric-item span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #E2E8F0;
    line-height: 1.45;
}

/* ==========================================================================
   6. BANDA DE CONTACTO DIRECTO
   ========================================================================== */
.nosotros-cta-band {
    background: #f0efe6;
    border-top: 1px solid var(--nos-line);
    border-bottom: 1px solid var(--nos-line);
    padding: 5rem 1.75rem;
}

.nosotros-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.nosotros-cta-content h2 {
    font-size: clamp(32px, 3.6vw, 46px);
    margin: 0 0 1rem;
    color: var(--ta-green);
}

.nosotros-cta-content p {
    font-size: 1.1rem;
    line-height: 1.68;
    color: var(--nos-muted);
    max-width: 600px;
    margin: 0;
}

.nosotros-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (ANTI-DESBORDAMIENTO)
   ========================================================================== */
@media (max-width: 1100px) {
    .nosotros-principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .nosotros-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }
}

@media (max-width: 900px) {
    .nosotros-story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .nosotros-philosophy-card {
        position: static;
        padding: 2.25rem;
    }
    .nosotros-partners-track {
        gap: 20px;
    }
    .nosotros-partner-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    .nosotros-partner-top,
    .nosotros-partner-body,
    .nosotros-partner-skills-box,
    .nosotros-partner-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .nosotros-partner-credentials {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .nosotros-cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

@media (max-width: 700px) {
    .nosotros-hero {
        padding: 3.5rem 1.25rem 3rem;
    }
    .nosotros-story-section,
    .nosotros-leadership-section,
    .nosotros-principles-section,
    .nosotros-cta-band {
        padding: 4rem 1.25rem;
    }
    .nosotros-principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .nosotros-metrics-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .nosotros-photo-note {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
    }
    .nosotros-photo-note strong {
        font-size: 15px;
    }
    .nosotros-photo-note small {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   4. MODAL DE CONSULTA DIRECTA CON SOCIOS POR WHATSAPP
   ========================================================================== */
body.consulta-modal-open {
    overflow: hidden;
}

.consulta-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.consulta-modal-overlay[hidden] {
    display: none;
}

.consulta-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 34, 23, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: consultaFadeIn 0.22s ease-out;
}

.consulta-modal-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    animation: consultaScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.consulta-modal-card {
    background: #ffffff;
    border: 1px solid rgba(182, 135, 55, 0.35);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px -10px rgba(2, 53, 36, 0.4);
    position: relative;
}

.consulta-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 53, 36, 0.05);
    border: 1px solid rgba(2, 53, 36, 0.1);
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.consulta-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.consulta-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}

.consulta-partner-badge-slot {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(2, 53, 36, 0.16);
}

.consulta-partner-badge-slot.badge-finance {
    background: var(--ta-green);
}

.consulta-partner-badge-slot.badge-tech {
    background: var(--nos-gold-light);
}

.consulta-partner-badge-slot.consulta-avatar-slot {
    overflow: hidden;
    border: 2px solid #ffffff;
    background: #f1f5f9;
}

.consulta-partner-badge-slot.consulta-avatar-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.consulta-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ta-green);
    margin: 0;
    line-height: 1.3;
}

.consulta-partner-role-line {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--nos-gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0.25rem 0 0;
}

.consulta-modal-trust-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 53, 36, 0.05);
    border: 1px solid rgba(2, 53, 36, 0.12);
    border-radius: 10px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--ta-green);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.consulta-modal-trust-banner svg {
    flex-shrink: 0;
    color: var(--nos-gold);
}

.consulta-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.consulta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.consulta-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.consulta-form-group label {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
}

.consulta-form-group label .required {
    color: #dc2626;
}

.consulta-form-group label .optional {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

.consulta-input {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    padding: 0.75rem 0.95rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.consulta-input:focus {
    outline: none;
    border-color: var(--nos-gold);
    box-shadow: 0 0 0 3px rgba(182, 135, 55, 0.2);
}

.consulta-select {
    cursor: pointer;
}

textarea.consulta-input {
    resize: vertical;
    min-height: 85px;
    line-height: 1.5;
}

.consulta-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #023524;
    color: #ffffff;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 600;
    padding: 0.95rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(2, 53, 36, 0.2);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.consulta-btn-submit:hover {
    background: #084934;
    box-shadow: 0 12px 28px rgba(2, 53, 36, 0.28);
    transform: translateY(-2px);
}

.consulta-btn-submit svg {
    color: #25d366;
}

.consulta-legal-note {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
    text-align: center;
}

@keyframes consultaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes consultaScaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 600px) {
    .consulta-modal-card {
        padding: 1.75rem 1.25rem;
    }
    .consulta-form-row {
        grid-template-columns: 1fr;
    }
}

