/* =========================================================
   SEGUNDO AIRE
   Plataforma Web Corporativa
   STYLES.CSS — ARCHIVO COMPLETO

   REGLA DEL PROYECTO:
   REEMPLAZAR. NO AGREGAR.

   IRIS:
   Este CSS no modifica la lógica de chat/chat.js.
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --sa-navy: #01173e;
    --sa-navy-2: #062653;
    --sa-navy-3: #0b356b;
    --sa-green: #14a633;
    --sa-green-dark: #0d7e27;
    --sa-green-light: #eaf7ed;
    --sa-white: #ffffff;
    --sa-bg: #f5f7fa;
    --sa-bg-soft: #eef2f6;
    --sa-text: #172033;
    --sa-text-soft: #667085;
    --sa-border: #dfe5ec;
    --sa-shadow-sm: 0 4px 14px rgba(1, 23, 62, .07);
    --sa-shadow-md: 0 12px 30px rgba(1, 23, 62, .10);
    --sa-shadow-lg: 0 24px 60px rgba(1, 23, 62, .14);
    --sa-radius-sm: 8px;
    --sa-radius-md: 14px;
    --sa-radius-lg: 22px;
    --sa-container: 1240px;
    --sa-transition: 180ms ease;
}

/* =========================================================
   BASE
   ========================================================= */
html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--sa-bg);
    color: var(--sa-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   CONTENEDOR
   ========================================================= */
.site-header .container,
.app-shell .container,
.site-footer .container {
    width: min(calc(100% - 48px), var(--sa-container));
    margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(1,23,62,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   BRAND
   ========================================================= */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--sa-navy);
    text-decoration: none;
}

.site-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand-name {
    color: var(--sa-navy);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-brand-tagline {
    margin-top: 4px;
    color: var(--sa-text-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* =========================================================
   DESKTOP NAV
   ========================================================= */
.site-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.site-nav-item {
    position: relative;
}

.site-nav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition: color var(--sa-transition), background var(--sa-transition);
}

.site-nav-link:hover {
    color: var(--sa-navy);
    background: var(--sa-bg);
}

.site-nav-link.is-active {
    color: var(--sa-green);
}

.site-nav-chevron {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--sa-transition);
}

.site-nav-item.is-open .site-nav-chevron {
    transform: rotate(225deg) translate(-1px,-1px);
}

/* =========================================================
   DROPDOWNS
   ========================================================= */
.site-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 260px;
    padding: 8px;
    transform: translateX(-50%) translateY(-5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: 14px;
    box-shadow: var(--sa-shadow-lg);
    transition: opacity var(--sa-transition), transform var(--sa-transition),
        visibility var(--sa-transition);
}

.site-nav-item:hover .site-dropdown,
.site-nav-item.is-open .site-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.site-dropdown-link {
    width: 100%;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--sa-text);
    text-decoration: none;
    transition: background var(--sa-transition), color var(--sa-transition);
}

.site-dropdown-link:hover {
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
}

.site-dropdown-title {
    font-size: 13px;
    font-weight: 750;
}

.site-dropdown-description {
    margin-top: 2px;
    color: var(--sa-text-soft);
    font-size: 11px;
    line-height: 1.3;
}

/* =========================================================
   HEADER ACTIONS
   ========================================================= */
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header-login,
.site-header-register {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: background var(--sa-transition), border-color var(--sa-transition),
        color var(--sa-transition), transform var(--sa-transition);
}

.site-header-login {
    color: var(--sa-navy);
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
}

.site-header-login:hover {
    background: var(--sa-bg);
    border-color: #bdc8d6;
}

.site-header-register {
    color: var(--sa-white);
    background: var(--sa-green);
    border: 1px solid var(--sa-green);
}

.site-header-register:hover {
    background: var(--sa-green-dark);
    border-color: var(--sa-green-dark);
    transform: translateY(-1px);
}

/* =========================================================
   IRIS — NAVEGACIÓN
   ========================================================= */
.iris-nav-link {
    position: relative;
    color: var(--sa-navy) !important;
    font-weight: 800;
}

.iris-nav-link:hover {
    color: var(--sa-green) !important;
}

.iris-nav-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sa-green);
    box-shadow: 0 0 0 3px rgba(20,166,51,.12);
    animation: irisPulse 2s ease-in-out infinite;
}

@keyframes irisPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(20,166,51,.12); }
    50% { box-shadow: 0 0 0 6px rgba(20,166,51,.04); }
}

/* =========================================================
   MOBILE TOGGLE
   ========================================================= */
.site-mobile-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sa-border);
    border-radius: 9px;
    background: var(--sa-white);
}

.site-mobile-toggle span,
.site-mobile-toggle::before,
.site-mobile-toggle::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--sa-navy);
    transition: transform var(--sa-transition), opacity var(--sa-transition);
}

.site-mobile-toggle span { transform: translateY(0); }
.site-mobile-toggle::before { transform: translateY(-6px); }
.site-mobile-toggle::after { transform: translateY(6px); }
.site-mobile-toggle.is-open span { opacity: 0; }
.site-mobile-toggle.is-open::before { transform: rotate(45deg); }
.site-mobile-toggle.is-open::after { transform: rotate(-45deg); }

/* =========================================================
   MOBILE NAV
   ========================================================= */
.site-mobile-nav {
    display: none;
    padding: 12px 0 18px;
    border-top: 1px solid var(--sa-border);
}

.site-mobile-nav.is-open {
    display: block;
}

.site-mobile-nav-group {
    border-bottom: 1px solid var(--sa-border);
}

.site-mobile-nav-group:last-child {
    border-bottom: 0;
}

.site-mobile-nav-link {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--sa-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.site-mobile-nav-link:hover {
    color: var(--sa-green);
}

.site-mobile-subnav {
    display: none;
    padding: 0 0 10px 14px;
}

.site-mobile-nav-group.is-open .site-mobile-subnav {
    display: block;
}

.site-mobile-subnav a {
    display: block;
    padding: 8px 0;
    color: var(--sa-text-soft);
    text-decoration: none;
    font-size: 13px;
}

.site-mobile-subnav a:hover {
    color: var(--sa-green);
}

.site-mobile-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
}

.site-mobile-actions a {
    flex: 1;
}

.iris-mobile-button {
    color: var(--sa-navy) !important;
    align-items: center;
}

.iris-mobile-button > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* =========================================================
   APP SHELL / VISTAS
   IMPORTANTE:
   No se fuerza una altura artificial. Cada vista crece
   según su contenido y el footer queda naturalmente debajo.
   ========================================================= */
.app-shell {
    background:
        radial-gradient(circle at 85% 10%, rgba(20,166,51,.04), transparent 25%),
        var(--sa-bg);
}

.app-view {
    display: none;
    animation: saViewIn 220ms ease both;
}

.app-view.is-active {
    display: block;
}

@keyframes saViewIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HOME
   ========================================================= */
.view-home {
    padding: clamp(20px, 3vw, 30px) 0 clamp(32px, 4vw, 42px);
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr);
    gap: 20px;
}

.home-hero {
    position: relative;
    min-height: clamp(390px, 48vh, 440px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: var(--sa-radius-lg);
    background:
        linear-gradient(90deg, rgba(1,23,62,.94) 0%, rgba(1,23,62,.78) 44%, rgba(1,23,62,.24) 100%),
        url("../assets/images/hero-home.jpg") center / cover no-repeat;
    box-shadow: var(--sa-shadow-md);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(670px,100%);
    padding: clamp(30px,4vw,48px);
}

.home-eyebrow {
    margin-bottom: 14px;
    color: #9ee4ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-title {
    margin: 0;
    color: var(--sa-white);
    font-size: clamp(34px,4vw,58px);
    line-height: 1.04;
    letter-spacing: -.045em;
    font-weight: 800;
}

.home-description {
    max-width: 570px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.65;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.sa-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    transition: transform var(--sa-transition), background var(--sa-transition),
        border-color var(--sa-transition), color var(--sa-transition),
        box-shadow var(--sa-transition);
}

.sa-btn:hover {
    transform: translateY(-1px);
}

.sa-btn-primary {
    color: var(--sa-white);
    background: var(--sa-green);
    border-color: var(--sa-green);
    box-shadow: 0 7px 18px rgba(20,166,51,.20);
}

.sa-btn-primary:hover {
    background: var(--sa-green-dark);
    border-color: var(--sa-green-dark);
}

.sa-btn-secondary {
    color: var(--sa-navy);
    background: var(--sa-white);
    border-color: rgba(1,23,62,.12);
}

.sa-btn-secondary:hover {
    border-color: rgba(1,23,62,.25);
}

.sa-btn-ghost {
    color: var(--sa-white);
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.25);
}

.sa-btn-ghost:hover {
    background: rgba(255,255,255,.16);
}

/* =========================================================
   HOME SIDE
   ========================================================= */
.home-side {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.sa-panel {
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-md);
    box-shadow: var(--sa-shadow-sm);
}

.sa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--sa-border);
}

.sa-panel-title {
    margin: 0;
    color: var(--sa-navy);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.sa-panel-label {
    color: var(--sa-text-soft);
    font-size: 11px;
    font-weight: 600;
}

.home-highlight {
    padding: 20px;
}

.home-highlight-label {
    color: var(--sa-text-soft);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.home-highlight-title {
    margin: 7px 0 0;
    color: var(--sa-navy);
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 800;
}

.home-highlight-text {
    margin: 10px 0 0;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   QUICK CARDS
   ========================================================= */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-top: 20px;
}

.quick-card {
    position: relative;
    min-height: 155px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: var(--sa-radius-md);
    color: var(--sa-white);
    background:
        linear-gradient(180deg, rgba(1,23,62,.05) 0%, rgba(1,23,62,.90) 100%),
        var(--card-image) center / cover no-repeat;
    text-decoration: none;
    box-shadow: var(--sa-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sa-shadow-md);
}

.quick-card-title {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 800;
}

.quick-card-description {
    position: relative;
    z-index: 2;
    margin-top: 5px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

/* =========================================================
   SECCIONES INTERNAS
   ========================================================= */
.app-view-section {
    padding: clamp(22px,3vw,30px) 0 clamp(36px,5vw,52px);
}

.section-header {
    position: relative;
    min-height: clamp(175px,24vh,205px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: clamp(24px,3vw,32px);
    border-radius: var(--sa-radius-lg);
    background:
        linear-gradient(90deg, rgba(1,23,62,.94), rgba(1,23,62,.62), rgba(1,23,62,.22)),
        var(--section-image) center / cover no-repeat;
    box-shadow: var(--sa-shadow-md);
}

.section-header-content {
    max-width: 720px;
}

.section-kicker {
    margin-bottom: 8px;
    color: #9ee4ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--sa-white);
    font-size: clamp(28px,3vw,42px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 800;
}

.section-description {
    max-width: 640px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   CONTENT GRID
   ========================================================= */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 18px;
}

.content-col-4 { grid-column: span 4; }
.content-col-5 { grid-column: span 5; }
.content-col-6 { grid-column: span 6; }
.content-col-7 { grid-column: span 7; }
.content-col-8 { grid-column: span 8; }
.content-col-12 { grid-column: span 12; }

/* =========================================================
   CARDS
   ========================================================= */
.sa-card {
    height: 100%;
    padding: 22px;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-md);
    box-shadow: var(--sa-shadow-sm);
}

.sa-card-title {
    margin: 0;
    color: var(--sa-navy);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sa-card-text {
    margin: 10px 0 0;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.sa-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 18px;
    border-radius: 11px;
}

.sa-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   LISTAS
   ========================================================= */
.sa-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.sa-list li {
    position: relative;
    padding-left: 20px;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.sa-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sa-green);
}

/* =========================================================
   INFO LIST
   ========================================================= */
.info-list {
    display: grid;
    gap: 0;
}

.info-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 160px minmax(0,1fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--sa-border);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-label {
    color: var(--sa-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.info-value {
    color: var(--sa-text);
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   STATS
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.stat-card {
    padding: 20px;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-md);
    box-shadow: var(--sa-shadow-sm);
}

.stat-label {
    color: var(--sa-text-soft);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-value {
    margin-top: 7px;
    color: var(--sa-navy);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.stat-note {
    margin-top: 5px;
    color: var(--sa-text-soft);
    font-size: 11px;
}

/* =========================================================
   BADGES
   ========================================================= */
.sa-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.sa-badge-green {
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
}

.sa-badge-navy {
    background: #e9eef6;
    color: var(--sa-navy);
}

.sa-badge-neutral {
    background: #f1f3f5;
    color: #667085;
}

/* =========================================================
   VISUAL CARDS
   ========================================================= */
.visual-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: var(--sa-radius-md);
    background:
        linear-gradient(180deg, rgba(1,23,62,.02), rgba(1,23,62,.88)),
        var(--visual-image) center / cover no-repeat;
    box-shadow: var(--sa-shadow-sm);
}

.visual-card-content {
    width: 100%;
    padding: 22px;
}

.visual-card-title {
    margin: 0;
    color: var(--sa-white);
    font-size: 19px;
    font-weight: 800;
}

.visual-card-text {
    margin: 7px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   TABLAS
   ========================================================= */
.sa-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-md);
    background: var(--sa-white);
    box-shadow: var(--sa-shadow-sm);
}

.sa-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.sa-table th,
.sa-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sa-border);
    text-align: left;
    vertical-align: middle;
}

.sa-table th {
    color: var(--sa-text-soft);
    background: #fafbfc;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sa-table td {
    color: var(--sa-text);
    font-size: 12px;
    font-weight: 600;
}

.sa-table tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   CTA
   ========================================================= */
.sa-cta {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--sa-radius-md);
    background: linear-gradient(110deg,var(--sa-navy),var(--sa-navy-2));
    box-shadow: var(--sa-shadow-md);
}

.sa-cta::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    top: -130px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
}

.sa-cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.sa-cta-title {
    margin: 0;
    color: var(--sa-white);
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
}

.sa-cta-text {
    margin: 9px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.6;
}

.sa-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 19px;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,.75fr);
    gap: 18px;
}

.contact-card {
    padding: 26px;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-md);
    box-shadow: var(--sa-shadow-sm);
}

.contact-card-title {
    margin: 0;
    color: var(--sa-navy);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.contact-card-text {
    margin: 9px 0 0;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.contact-items {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--sa-border);
    border-radius: 10px;
    background: #fbfcfd;
}

.contact-item-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    font-size: 12px;
    font-weight: 800;
}

.contact-item-label {
    color: var(--sa-text-soft);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.contact-item-value {
    margin-top: 2px;
    color: var(--sa-navy);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */
.sa-form {
    display: grid;
    gap: 14px;
}

.sa-form-row {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.sa-form-group {
    display: grid;
    gap: 6px;
}

.sa-form-label {
    color: var(--sa-text);
    font-size: 11px;
    font-weight: 800;
}

.sa-form-input,
.sa-form-textarea,
.sa-form-select {
    width: 100%;
    border: 1px solid var(--sa-border);
    border-radius: 9px;
    background: var(--sa-white);
    color: var(--sa-text);
    outline: none;
    font-size: 13px;
    transition: border-color var(--sa-transition), box-shadow var(--sa-transition);
}

.sa-form-input,
.sa-form-select {
    height: 44px;
    padding: 0 12px;
}

.sa-form-textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.sa-form-input:focus,
.sa-form-textarea:focus,
.sa-form-select:focus {
    border-color: var(--sa-green);
    box-shadow: 0 0 0 3px rgba(20,166,51,.10);
}

/* =========================================================
   COMING SOON
   ========================================================= */
.coming-soon-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-lg);
    box-shadow: var(--sa-shadow-sm);
}

.coming-soon-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    font-size: 20px;
    font-weight: 800;
}

.coming-soon-title {
    margin: 0;
    color: var(--sa-navy);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.coming-soon-text {
    max-width: 520px;
    margin: 9px 0 0;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   MODAL
   ========================================================= */
.sa-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(1,23,62,.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sa-modal.is-open {
    display: flex;
}

.sa-modal-dialog {
    width: min(460px,100%);
    max-height: min(90vh,700px);
    overflow: auto;
    padding: 28px;
    background: var(--sa-white);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-lg);
    box-shadow: var(--sa-shadow-lg);
    animation: saModalIn 180ms ease both;
}

@keyframes saModalIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sa-modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sa-text-soft);
    font-size: 20px;
}

.sa-modal-close:hover {
    background: var(--sa-bg);
    color: var(--sa-navy);
}

.sa-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 16px;
    border-radius: 13px;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    font-size: 12px;
    font-weight: 800;
}

.sa-modal-title {
    margin: 0;
    color: var(--sa-navy);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.sa-modal-text {
    margin: 8px 0 0;
    color: var(--sa-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.sa-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

/* =========================================================
   FOOTER — RESPONSIVO Y COMPACTO
   ========================================================= */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 30px 0 18px;
    background:
        linear-gradient(rgba(1,23,62,.94),rgba(1,23,62,.98)),
        url("../assets/images/footer-bg.jpg") center / cover no-repeat;
    color: var(--sa-white);
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0,1.45fr) repeat(3,minmax(0,1fr));
    align-items: start;
    gap: clamp(18px,2.6vw,32px);
    padding-bottom: 18px;
}

.site-footer-main > * {
    min-width: 0;
}

.site-footer-brand {
    max-width: 390px;
    min-width: 0;
}

.site-footer-brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-footer-brand-text {
    margin-top: 8px;
    color: rgba(255,255,255,.60);
    font-size: 11px;
    line-height: 1.6;
}

.site-footer-column-title {
    margin: 0 0 9px;
    color: var(--sa-white);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-footer-links {
    display: grid;
    gap: 6px;
}

.site-footer-links a {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    text-decoration: none;
    transition: color var(--sa-transition);
}

.site-footer-links a:hover {
    color: #9ee4ad;
}

/* =========================================================
   FIRMA SYNVORA
   ========================================================= */
.synvora-signature {
    margin-top: 0;
    padding-top: 16px;
}

.synvora-signature-line {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.10);
}

.synvora-signature-content {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 9px;
    padding-top: 11px;
    text-align: center;
}

.synvora-signature-label {
    color: rgba(255,255,255,.38);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .04em;
}

.synvora-signature-brand {
    color: rgba(255,255,255,.90);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.synvora-signature-mark {
    color: rgba(255,255,255,.28);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .08em;
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */
.site-footer-bottom {
    min-height: 34px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-footer-copy {
    color: rgba(255,255,255,.46);
    font-size: 9px;
    line-height: 1.4;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
}

.site-footer-legal a {
    color: rgba(255,255,255,.46);
    font-size: 9px;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: rgba(255,255,255,.80);
}

/* =========================================================
   UTILIDADES
   ========================================================= */
.sa-mt-0 { margin-top: 0 !important; }
.sa-mt-1 { margin-top: 8px !important; }
.sa-mt-2 { margin-top: 14px !important; }
.sa-mt-3 { margin-top: 20px !important; }
.sa-mt-4 { margin-top: 28px !important; }
.sa-mb-0 { margin-bottom: 0 !important; }
.sa-text-green { color: var(--sa-green); }
.sa-text-navy { color: var(--sa-navy); }
.sa-text-muted { color: var(--sa-text-soft); }
.sa-center { text-align: center; }

/* =========================================================
   LAPTOP / TABLET
   ========================================================= */
@media (max-width: 1180px) {
    .site-header-inner {
        gap: 12px;
    }

    .site-nav-link {
        padding-inline: 8px;
        font-size: 12px;
    }

    .site-header-login,
    .site-header-register {
        padding-inline: 11px;
        font-size: 11px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-side {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .site-footer-main {
        grid-template-columns: 1.4fr repeat(3,1fr);
        gap: 18px;
    }
}

/* =========================================================
   LAPTOP COMPACTA
   ========================================================= */
@media (max-width: 1000px) and (min-width: 821px) {
    .site-header .container,
    .app-shell .container,
    .site-footer .container {
        width: calc(100% - 34px);
    }

    .site-header-inner {
        gap: 10px;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav-link {
        padding-inline: 7px;
        font-size: 11px;
    }

    .site-header-login,
    .site-header-register {
        padding-inline: 9px;
        font-size: 10px;
    }

    .home-grid {
        grid-template-columns: minmax(0,1.45fr) minmax(270px,.8fr);
        gap: 14px;
    }

    .home-hero {
        min-height: 390px;
    }

    .home-hero-content {
        padding: 34px;
    }

    .home-title {
        font-size: clamp(34px,4vw,48px);
    }

    .site-footer-main {
        gap: 16px;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */
@media (max-width: 820px) {
    .site-header .container,
    .app-shell .container,
    .site-footer .container {
        width: min(calc(100% - 30px),var(--sa-container));
    }

    .site-header-inner {
        min-height: 68px;
    }

    .site-brand img {
        width: 40px;
        height: 40px;
    }

    .site-brand-name {
        font-size: 16px;
    }

    .site-brand-tagline {
        display: none;
    }

    .site-nav,
    .site-header-actions {
        display: none;
    }

    .site-mobile-toggle {
        display: flex;
    }

    .view-home {
        padding-top: 18px;
    }

    .home-hero {
        min-height: clamp(400px,62vh,500px);
        border-radius: 16px;
    }

    .home-hero-content {
        padding: 28px 24px;
    }

    .home-title {
        font-size: clamp(34px,8vw,42px);
    }

    .home-description {
        font-size: 14px;
    }

    .home-side {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .section-header {
        min-height: 200px;
        padding: 25px 22px;
        border-radius: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-col-4,
    .content-col-5,
    .content-col-6,
    .content-col-7,
    .content-col-8,
    .content-col-12 {
        grid-column: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .sa-form-row {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 13px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .site-footer {
        padding: 26px 0 16px;
    }

    .site-footer-main {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px 18px;
        padding-bottom: 18px;
    }

    .site-footer-links {
        gap: 7px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
        max-width: 520px;
    }

    .site-footer-bottom {
        align-items: flex-start;
    }
}

/* =========================================================
   TELEFONO
   ========================================================= */
@media (max-width: 560px) {
    .site-header .container,
    .app-shell .container,
    .site-footer .container {
        width: calc(100% - 22px);
    }

    .site-header-inner {
        min-height: 62px;
    }

    .site-brand {
        gap: 8px;
    }

    .site-brand img {
        width: 38px;
        height: 38px;
    }

    .site-brand-name {
        font-size: 15px;
    }

    .home-hero {
        min-height: 440px;
    }

    .home-hero-content {
        padding: 24px 20px;
    }

    .home-title {
        font-size: clamp(32px,10vw,38px);
    }

    .home-description {
        font-size: 13px;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-actions .sa-btn {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        min-height: 190px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-description {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sa-card,
    .contact-card {
        padding: 19px;
    }

    .sa-cta {
        padding: 22px;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .site-footer-brand {
        grid-column: auto;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer-legal {
        justify-content: flex-start;
        gap: 9px 12px;
    }

    .synvora-signature-content {
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================================
   TELEFONO MUY PEQUEÑO / ALTURA REDUCIDA
   ========================================================= */
@media (max-width: 380px), (max-height: 650px) and (min-width: 821px) {
    .site-header-inner {
        min-height: 64px;
    }

    .view-home {
        padding-top: 16px;
    }

    .home-hero {
        min-height: 360px;
    }

    .home-hero-content {
        padding: 25px;
    }

    .home-description {
        margin-top: 12px;
        line-height: 1.5;
    }

    .home-actions {
        margin-top: 18px;
    }

    .quick-card {
        min-height: 135px;
    }

    .site-footer {
        padding-top: 22px;
        padding-bottom: 14px;
    }

    .site-footer-main {
        padding-bottom: 14px;
    }

    .synvora-signature {
        padding-top: 12px;
    }

    .synvora-signature-content {
        padding-top: 8px;
    }

    .site-footer-bottom {
        padding-top: 9px;
    }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   FIN

   NO agregar código debajo.
   Si hay una mejora:
   REEMPLAZAMOS TODO EL ARCHIVO.

   IRIS:
   chat/chat.js permanece intacto.
   ========================================================= */
