/* ==========================================================================
   AGROFINANZAS - HOJA DE ESTILOS PRINCIPAL (DISEÑO PREMIUM TERRA-MODERN)
   ========================================================================== */

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

/* Reset y Variables Globales */
:root {
    /* Tema Claro (Por Defecto) */
    --bg-primary: hsl(145, 15%, 96%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-card: hsla(0, 0%, 100%, 0.75);
    --text-primary: hsl(210, 15%, 15%);
    --text-secondary: hsl(210, 10%, 40%);
    
    --color-primary: hsl(155, 45%, 12%);
    --color-primary-rgb: 11, 33, 23;
    --color-accent: hsl(35, 52%, 55%);
    --color-accent-rgb: 207, 158, 83;
    --color-highlight: hsl(150, 70%, 32%);
    --color-highlight-rgb: 26, 138, 76;
    
    --border-color: rgba(11, 33, 23, 0.08);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --shadow-sm: 0 4px 12px rgba(11, 33, 23, 0.03);
    --shadow-md: 0 12px 32px rgba(11, 33, 23, 0.06);
    --shadow-lg: 0 24px 64px rgba(11, 33, 23, 0.1);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1280px;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 16px;
}

[data-theme="dark"] {
    /* Tema Oscuro */
    --bg-primary: hsl(210, 20%, 9%);
    --bg-secondary: hsl(210, 20%, 12%);
    --bg-card: rgba(26, 32, 40, 0.65);
    --text-primary: hsl(210, 20%, 95%);
    --text-secondary: hsl(210, 10%, 75%);
    
    --color-primary: hsl(155, 35%, 45%);
    --color-primary-rgb: 74, 155, 117;
    --color-accent: hsl(35, 60%, 65%);
    --color-accent-rgb: 228, 178, 101;
    --color-highlight: hsl(150, 65%, 48%);
    --color-highlight-rgb: 42, 184, 112;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    
    --glass-bg: rgba(20, 26, 33, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ==========================================================================
   ACCESIBILIDAD Y ENFOQUE
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 20px;
    background: var(--color-highlight);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
}

/* ==========================================================================
   TIPOGRAFÍA Y ENCABEZADOS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Enlaces */
a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   COMPONENTES Y CLASES DE UTILIDAD
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-highlight);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 138, 76, 0.25);
}

.btn-primary:hover {
    background-color: hsl(150, 70%, 25%);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 138, 76, 0.35);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(11, 33, 23, 0.15);
}

.btn-secondary:hover {
    background-color: hsl(155, 45%, 8%);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

.btn-outline:hover {
    background-color: var(--color-highlight);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(207, 158, 83, 0.25);
}

.btn-accent:hover {
    background-color: hsl(35, 52%, 45%);
    color: white;
}

/* Tarjetas (Glassmorphism) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--color-accent-rgb), 0.3);
}

/* Grillas */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .section-padding { padding: 60px 0; }
}

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    transition: background var(--transition-normal), border var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-highlight);
    fill: currentColor;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-highlight);
    background-color: rgba(var(--color-highlight-rgb), 0.06);
}

/* Controladores de menú y tema */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--border-color);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

@media (max-width: 992px) {
    .menu-toggle-btn {
        display: flex;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-list.open {
        display: flex;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }
}

/* ==========================================================================
   SECCIÓN HERO (INICIO)
   ========================================================================== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(var(--color-accent-rgb), 0.12);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--color-highlight);
    background: linear-gradient(135deg, var(--color-highlight), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(var(--color-highlight-rgb), 0.15) 0%, transparent 70%);
    z-index: -1;
    top: -5%;
}

.hero-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(var(--shadow-lg));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 992px) {
    .hero { padding-top: 100px; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge { justify-content: center; margin-left: auto; margin-right: auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero h1 { font-size: 2.75rem; }
}

/* ==========================================================================
   SECCIÓN CARACTERÍSTICAS / VALOR
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-subtitle-small {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(var(--color-highlight-rgb), 0.08);
    border-radius: var(--border-radius-md);
    color: var(--color-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--color-highlight-rgb), 0.12);
}

.feature-icon-box svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================================================
   SIMULADOR DE FINANCIACIÓN (SECCIÓN MINI Y COMPLETA)
   ========================================================================== */
.simulator-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sim-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 992px) {
    .sim-container {
        grid-template-columns: 1fr;
    }
}

.sim-inputs {
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .sim-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.sim-outputs {
    padding: 40px;
    background-color: rgba(var(--color-primary-rgb), 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="dark"] .sim-outputs {
    background-color: rgba(0, 0, 0, 0.2);
}

.sim-group {
    margin-bottom: 32px;
}

.sim-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sim-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.sim-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-highlight);
    font-size: 1.15rem;
}

/* Rango Slider Personalizado */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    transition: background 0.15s ease;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-highlight);
    border: 3px solid var(--bg-secondary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--color-accent);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-highlight);
    border: 3px solid var(--bg-secondary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* Selectores de Tipo de Préstamo */
.loan-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 576px) {
    .loan-type-selector {
        grid-template-columns: 1fr;
    }
}

.type-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    transition: all var(--transition-fast);
}

.type-btn:hover {
    border-color: rgba(var(--color-highlight-rgb), 0.5);
}

.type-btn.active {
    background-color: rgba(var(--color-highlight-rgb), 0.08);
    border-color: var(--color-highlight);
    color: var(--color-highlight);
    box-shadow: 0 4px 12px rgba(26, 138, 76, 0.05);
}

/* Resultados del Simulador */
.result-card-small {
    margin-bottom: 24px;
}

.result-card-small .res-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.result-card-small .res-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
}

.detail-row:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* Tabla de Amortización */
.amortization-section {
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.amort-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    min-width: 600px;
}

.amort-table th, .amort-table td {
    padding: 14px 20px;
}

.amort-table th {
    background-color: rgba(var(--color-primary-rgb), 0.05);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

[data-theme="dark"] .amort-table th {
    background-color: rgba(0, 0, 0, 0.3);
}

.amort-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.amort-table tr:hover td {
    background-color: rgba(var(--color-highlight-rgb), 0.02);
    color: var(--text-primary);
}

/* ==========================================================================
   ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(var(--color-highlight-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--color-highlight);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
}

.faq-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Clases de Estado FAQ abiertas */
.faq-item.open {
    border-color: var(--color-highlight);
}

.faq-item.open .faq-trigger {
    color: var(--color-highlight);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--color-highlight);
}

.faq-item.open .faq-content {
    max-height: 500px;
    padding: 0 24px 8px;
}

/* ==========================================================================
   FORMULARIOS Y CONTACTO
   ========================================================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-highlight);
    box-shadow: 0 0 0 4px rgba(26, 138, 76, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mensajes de Validación */
.invalid-feedback {
    display: none;
    color: hsl(0, 75%, 45%);
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 500;
}

.form-input.is-invalid, .form-textarea.is-invalid {
    border-color: hsl(0, 75%, 45%);
}

.form-input.is-invalid ~ .invalid-feedback,
.form-textarea.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Banner de éxito en contacto */
.form-status {
    display: none;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background-color: rgba(26, 138, 76, 0.1);
    color: var(--color-highlight);
    border: 1px solid rgba(26, 138, 76, 0.2);
}

/* Mapa Vectorial / SVG */
.map-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.svg-map {
    width: 100%;
    height: auto;
    max-height: 350px;
    margin-top: auto;
}

.map-point {
    fill: var(--color-accent);
    cursor: pointer;
    transition: r var(--transition-fast), fill var(--transition-fast);
}

.map-point:hover {
    fill: var(--color-highlight);
    r: 12px;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
    background-color: var(--color-primary);
    color: hsl(155, 10%, 80%);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    color: hsl(155, 10%, 75%);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: hsl(155, 10%, 75%);
    font-size: 0.9rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   ANIMACIONES AUTOMÁTICAS (DE INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ELEMENTOS DE SUCURSAL VIRTUAL Y FINANZAS
   ========================================================================== */
.requirement-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.req-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
}
