/* ================================================================
   Fiorito Factoring — Sitio Institucional
   Rediseño 2026 | Inter + paleta navy/burgundy/gold
================================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #6B0C27;
  --primary-dark:   #4E0A1D;
  --primary-hover:  #820F30;
  --navy:           #0D1B3E;
  --navy-mid:       #162445;
  --navy-light:     #1E3260;
  --gold:           #C8960C;
  --gold-light:     #E5AB14;
  --white:          #FFFFFF;
  --off-white:      #F8F9FA;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-400:       #9CA3AF;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --text:           #1F2937;
  --text-muted:     #6B7280;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.07);
  --shadow-md:      0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.13);
  --r:              8px;
  --r-lg:           14px;
  --t:              .3s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; margin: 0; font-size: 15px; line-height: 1.65; }
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--navy); }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-hover); text-decoration: none; }
img { max-width: 100%; height: auto; }
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: var(--navy); position: relative; display: inline-block; margin-bottom: 12px; }
.section-title h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 10px auto 0; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary-ff {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary); border-radius: var(--r);
  padding: 11px 26px; font-size: .9rem; font-weight: 600;
  transition: all var(--t); cursor: pointer;
}
.btn-primary-ff:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-ff {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.6); border-radius: var(--r);
  padding: 11px 26px; font-size: .9rem; font-weight: 600;
  transition: all var(--t); cursor: pointer;
}
.btn-outline-ff:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy); border-radius: var(--r);
  padding: 11px 26px; font-size: .9rem; font-weight: 600;
  transition: all var(--t); cursor: pointer;
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--white);
  border: 2px solid var(--gold); border-radius: var(--r);
  padding: 11px 26px; font-size: .9rem; font-weight: 600;
  transition: all var(--t); cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }

/* ── Header ────────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
#header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.12); }
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding: 0 24px; max-width: 1200px; margin: 0 auto;
}
.header-logo { flex-shrink: 0; }
.header-logo img { height: 52px; width: auto; display: block; }
.header-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.header-nav > ul > li { position: relative; }
.header-nav > ul > li > a {
  display: block; padding: 8px 14px; font-size: .9rem; font-weight: 500;
  color: var(--text); border-radius: 6px; transition: all var(--t); white-space: nowrap;
}
.header-nav > ul > li > a:hover,
.header-nav > ul > li.active > a { color: var(--primary); background: rgba(107,12,39,.06); }
.header-nav > ul > li > a.has-dropdown::after {
  content: '▾'; font-size: .65rem; margin-left: 4px; opacity: .7;
}
/* Dropdown */
.dropdown-menu-ff {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s ease; z-index: 100; list-style: none; margin: 0;
}
.header-nav > ul > li:hover .dropdown-menu-ff {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu-ff li a {
  display: block; padding: 9px 14px; font-size: .875rem; font-weight: 500;
  color: var(--text); border-radius: 6px; transition: all var(--t);
}
.dropdown-menu-ff li a:hover { color: var(--primary); background: rgba(107,12,39,.06); }
/* Header CTAs */
.header-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-ctas .btn-outline-navy {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gray-200); color: var(--text);
  border-radius: var(--r); padding: 8px 18px; font-size: .875rem; font-weight: 600;
  transition: all var(--t);
}
.header-ctas .btn-outline-navy:hover { border-color: var(--navy); color: var(--navy); }
.header-ctas .btn-cta-primary {
  display: inline-flex; align-items: center;
  background: var(--primary); color: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: var(--r); padding: 8px 18px; font-size: .875rem; font-weight: 600;
  transition: all var(--t);
}
.header-ctas .btn-cta-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
/* Mobile toggle */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; margin-left: auto;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }
/* Mobile Nav */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; left: -280px; bottom: 0; width: 280px;
  background: var(--navy); z-index: 1001; overflow-y: auto;
  transition: left .3s ease; padding: 24px 0;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-header img { height: 44px; filter: brightness(0) invert(1); }
.mobile-nav-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 24px; cursor: pointer; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 0; }
.mobile-nav ul li a { display: block; padding: 12px 20px; color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; transition: color var(--t); border-left: 3px solid transparent; }
.mobile-nav ul li a:hover { color: var(--white); border-left-color: var(--gold); background: rgba(255,255,255,.05); }
.mobile-nav .mobile-sub { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.1); margin-left: 20px; display: none; }
.mobile-nav .mobile-sub.open { display: block; }
.mobile-nav .mobile-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav .mobile-dropdown-toggle::after { content: '▾'; font-size: .65rem; transition: transform var(--t); }
.mobile-nav .mobile-dropdown-toggle.open::after { transform: rotate(180deg); }
.mobile-nav-ctas { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; }
.mobile-nav-ctas a { text-align: center; padding: 11px; border-radius: var(--r); font-weight: 600; font-size: .9rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, var(--primary-dark) 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: .25;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.hero-content { position: relative; z-index: 1; color: var(--white); }
.hero-eyebrow { display: inline-block; background: rgba(200,150,12,.2); color: var(--gold-light); border: 1px solid rgba(200,150,12,.4); border-radius: 20px; padding: 5px 14px; font-size: .8rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; line-height: 1.7; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Stats bar */
.stats-bar {
  background: var(--white); border-radius: var(--r-lg); padding: 28px 32px;
  margin-top: 60px; box-shadow: var(--shadow-lg); position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 3px solid var(--gold);
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; background: var(--gray-200); align-self: stretch; }

/* ── Inner page hero (subpages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--primary-dark) 100%);
  padding: 120px 0 64px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-bg-b.jpg') center/cover no-repeat;
  opacity: .08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin-bottom: 12px; }
.page-hero .breadcrumb-item { font-size: .85rem; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb-item.active { color: var(--gold-light); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); margin: 0; }
.page-hero .hero-icon { width: 56px; height: 56px; background: rgba(200,150,12,.2); border: 1px solid rgba(200,150,12,.4); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px; }

/* ── Services section ──────────────────────────────────────── */
.services-section { background: var(--off-white); }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 32px; height: 100%;
  transition: all var(--t); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .card-icon {
  width: 52px; height: 52px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px; flex-shrink: 0;
}
.icon-burgundy { background: rgba(107,12,39,.1); color: var(--primary); }
.icon-navy     { background: rgba(13,27,62,.1);  color: var(--navy); }
.icon-gold     { background: rgba(200,150,12,.1); color: var(--gold); }
.service-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; flex: 1; margin-bottom: 20px; }
.service-card .card-link { font-size: .875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.service-card .card-link:hover { color: var(--primary-dark); gap: 8px; }

/* ── Trust section ─────────────────────────────────────────── */
.trust-section { background: var(--navy); }
.trust-section .section-title h2 { color: var(--white); }
.trust-section .section-title h2::after { background: var(--gold); }
.trust-section .section-title p { color: rgba(255,255,255,.65); }
.trust-card { text-align: center; padding: 32px 20px; }
.trust-icon { width: 64px; height: 64px; background: rgba(200,150,12,.15); border: 1px solid rgba(200,150,12,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 16px; }
.trust-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.trust-card p { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ── Numbers/Counters section ──────────────────────────────── */
.counters-section { background: var(--gray-50); }
.counter-item { text-align: center; padding: 16px; }
.counter-num { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.counter-label { font-size: .875rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url('../img/hero-bg.jpg') center/cover; opacity: .06; }
.cta-banner .cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 28px; }

/* ── Content pages (service/investment pages) ─────────────── */
.content-section { padding: 72px 0; }
.content-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; border-left: 4px solid var(--gold); padding-left: 20px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi-icon { width: 22px; height: 22px; background: rgba(107,12,39,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.feature-list .fi-icon::before { content: '✓'; font-size: .65rem; font-weight: 700; color: var(--primary); }
.feature-list li span { font-size: .95rem; color: var(--text); line-height: 1.6; }
.feature-list li strong { color: var(--navy); }
.benefit-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; transition: box-shadow var(--t); }
.benefit-card:hover { box-shadow: var(--shadow-md); }
.benefit-card h5 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.benefit-card p { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }
/* Tabs */
.ff-tabs .nav-pills .nav-link { color: var(--text-muted); border-radius: var(--r); font-size: .9rem; font-weight: 500; padding: 10px 18px; margin-right: 6px; transition: all var(--t); }
.ff-tabs .nav-pills .nav-link.active { background: var(--primary); color: var(--white); }
.ff-tabs .tab-pane { padding: 28px 0; }
.ff-tabs .tab-pane h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; }
.ff-tabs .tab-pane p { color: var(--text-muted); line-height: 1.75; }

/* ── Inline info boxes (empresa management cards) ─────────── */
.team-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; text-align: center; padding: 36px 24px; transition: all var(--t); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 3px solid var(--gold); display: block; }
.team-card .team-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .team-role { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 14px; }
.team-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Contact section ───────────────────────────────────────── */
.contact-section { background: var(--gray-50); }
.contact-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; text-decoration: none; transition: all var(--t); }
.contact-info-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(4px); color: inherit; }
.contact-info-card .ci-icon { width: 44px; height: 44px; background: rgba(107,12,39,.1); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.contact-info-card h5 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-card p { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.5; }
/* Form */
.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 36px; }
.contact-form .form-control { border: 1.5px solid var(--gray-200); border-radius: var(--r); padding: 10px 14px; font-size: .9rem; font-family: 'Inter', sans-serif; transition: border-color var(--t); background: var(--off-white); }
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,12,39,.1); outline: none; background: var(--white); }
.contact-form .form-control::placeholder { color: var(--gray-400); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-submit { background: var(--primary); color: var(--white); border: none; border-radius: var(--r); padding: 12px 32px; font-size: .95rem; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; transition: all var(--t); width: 100%; }
.contact-form .btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-msg { display: none; padding: 12px 16px; border-radius: var(--r); margin-top: 14px; font-size: .9rem; font-weight: 500; }
.form-msg.success { background: #D1FAE5; color: #065F46; display: block; }
.form-msg.error { background: #FEE2E2; color: #991B1B; display: block; }

/* ── Tables (comisiones) ───────────────────────────────────── */
.fee-table-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
.fee-table-title { background: var(--navy); color: var(--white); padding: 16px 24px; font-size: 1rem; font-weight: 700; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table thead tr { background: var(--gray-50); }
.fee-table thead th { padding: 12px 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--gray-200); }
.fee-table tbody td { padding: 11px 20px; font-size: .875rem; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:hover td { background: var(--gray-50); }
.fee-table tbody td:last-child { font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 40px; }
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .875rem; transition: all var(--t); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 6px; transition: color var(--t); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a::before { content: '›'; color: var(--gold); }
.footer-col .footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-col .footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-col .footer-contact-item span { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.55; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 0; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.45); transition: color var(--t); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ── WhatsApp float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 52px; height: 52px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: all var(--t);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

/* ── Modal "Abrir cuenta" ──────────────────────────────────── */
.modal-content { border: none; border-radius: var(--r-lg); overflow: hidden; }
.modal-header { background: var(--navy); color: var(--white); border: none; padding: 20px 24px; }
.modal-header .modal-title { color: var(--white); font-weight: 700; }
.modal-header .close { color: rgba(255,255,255,.7); opacity: 1; font-size: 1.5rem; }
.modal-header .close:hover { color: var(--white); }
.modal-body { padding: 28px 24px; }
.modal-body p { color: var(--text-muted); margin-bottom: 20px; }
.modal-footer { border-top: 1px solid var(--gray-200); padding: 16px 24px; justify-content: center; gap: 12px; }
.modal-footer .btn-primary-ff, .modal-footer .btn-navy { flex: 1; justify-content: center; }

/* ── Back to top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; right: 18px; bottom: 82px; z-index: 899;
  width: 40px; height: 40px; background: var(--primary); color: var(--white);
  border-radius: 8px; display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md); transition: all var(--t);
}
.back-to-top:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* ── Gracias page ──────────────────────────────────────────── */
.gracias-hero { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); padding: 160px 0 100px; text-align: center; }
.gracias-check { width: 80px; height: 80px; background: rgba(37,211,102,.15); border: 2px solid rgba(37,211,102,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 2rem; }
.gracias-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; }
.gracias-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 28px; }

/* ── Legal pages ───────────────────────────────────────────── */
.legal-content { padding: 60px 0; max-width: 860px; margin: 0 auto; }
.legal-content h3 { font-size: 1.1rem; color: var(--navy); margin: 28px 0 10px; font-weight: 700; }
.legal-content p, .legal-content li { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }
.legal-content ul { padding-left: 20px; }

/* ── Investor profile form ─────────────────────────────────── */
.profile-question { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.profile-question h6 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.profile-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; transition: all var(--t); }
.profile-option:hover { border-color: var(--primary); background: rgba(107,12,39,.03); }
.profile-option input { accent-color: var(--primary); }
.profile-option label { font-size: .9rem; color: var(--text); cursor: pointer; margin: 0; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary-ff { color: var(--primary) !important; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy); }
.bg-primary-ff { background: var(--primary); }
.section-alt { background: var(--gray-50); }
.divider-gold { border: none; border-top: 3px solid var(--gold); width: 48px; margin: 16px 0; }
.badge-ff { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-gold { background: rgba(200,150,12,.12); color: var(--gold); }
.badge-primary { background: rgba(107,12,39,.1); color: var(--primary); }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--gray-200); border-radius: 20px; padding: 5px 14px; font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none; transition: all var(--t); }
.tag-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  section { padding: 60px 0; }
  .header-nav, .header-ctas { display: none; }
  .mobile-toggle { display: flex; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
}
@media (max-width: 767px) {
  section { padding: 48px 0; }
  .hero h1 { font-size: 2rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
  .counter-num { font-size: 2.2rem; }
  .footer-top { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fee-table td, .fee-table th { padding: 9px 12px; font-size: .8rem; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* ── Header entry animation ────────────────────────────────── */
@keyframes slideDownHeader { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#header { animation: slideDownHeader .45s cubic-bezier(.4,0,.2,1) forwards; }

/* ── Header transparente sobre hero ────────────────────────── */
#header.header-transparent { background: transparent; box-shadow: none; }
#header.header-transparent .header-nav > ul > li > a { color: rgba(255,255,255,.88); }
#header.header-transparent .header-nav > ul > li > a:hover { color: var(--white); background: rgba(255,255,255,.1); }
#header.header-transparent .mobile-toggle span { background: var(--white); }
#header.header-transparent .header-logo img { filter: brightness(0) invert(1); }

/* ── Nav hover underline animado ────────────────────────────── */
.header-nav > ul > li > a { position: relative; }
.header-nav > ul > li > a::after {
  content: ''; position: absolute; bottom: 3px; left: 14px; right: 14px;
  height: 2px; background: var(--primary); border-radius: 1px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.header-nav > ul > li > a:hover::after { transform: scaleX(1); }
#header.header-transparent .header-nav > ul > li > a::after { background: var(--gold-light); }

/* ── Reading progress bar ───────────────────────────────────── */
#reading-progress {
  position: fixed; top: 72px; left: 0; right: 0; height: 3px;
  background: var(--gold); z-index: 1001; width: 0%;
  transition: width .08s linear; pointer-events: none;
}

/* ── Hero decorative circles ────────────────────────────────── */
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-deco-1 { width: 420px; height: 420px; top: -120px; right: -5%; background: rgba(200,150,12,.05); border: 1px solid rgba(200,150,12,.08); }
.hero-deco-2 { width: 200px; height: 200px; bottom: 10%; left: 3%; background: rgba(30,107,240,.05); border: 1px solid rgba(30,107,240,.08); }
.hero-deco-3 { width: 100px; height: 100px; top: 25%; left: 45%; background: rgba(200,150,12,.04); border: 1px solid rgba(200,150,12,.06); }

/* ── Wave section divider ───────────────────────────────────── */
.section-wave { position: relative; margin-top: -2px; line-height: 0; overflow: hidden; }
.section-wave svg { display: block; width: 100%; }

/* ── Footer top gradient ────────────────────────────────────── */
footer { box-shadow: 0 -40px 60px -20px rgba(13,27,62,.18); }

/* ── Back-to-top mejorado ───────────────────────────────────── */
.back-to-top {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white); border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(13,27,62,.35);
  font-size: 1.3rem;
}
.back-to-top:hover { background: var(--primary); color: var(--white); border-color: transparent; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(13,27,62,.4); }
.back-to-top i { font-size: 1.3rem; }

/* ── Fee table mejorada (comisiones) ────────────────────────── */
.fee-table tbody tr:nth-child(even) td { background: rgba(13,27,62,.025); }
.fee-table tbody td:last-child { font-weight: 700; color: var(--primary); }
.fee-table thead th:first-child { border-radius: 0; }
.fee-table-wrap { box-shadow: var(--shadow-md); }
.fee-table thead { position: sticky; top: 0; z-index: 2; }

/* ── Card stagger animation ─────────────────────────────────── */
@keyframes cardSlideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
.card-stagger { opacity: 0; }
.card-stagger.animated { animation: cardSlideUp .55s cubic-bezier(.4,0,.2,1) both; }

/* ── Sticky CTA ─────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 28px; left: 24px; z-index: 798;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 40px;
  padding: 11px 22px; font-size: .875rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(13,27,62,.4);
  opacity: 0; transform: translateX(-120%);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none; cursor: pointer; text-decoration: none;
}
.sticky-cta.visible { opacity: 1; transform: translateX(0); pointer-events: all; }
.sticky-cta:hover { background: var(--navy-mid); color: var(--white); transform: translateX(0) translateY(-2px); }
.sticky-cta i { font-size: 1rem; }

/* ── Stats bar hover ────────────────────────────────────────── */
.stat-item { text-align: center; border-radius: var(--r); padding: 8px 4px; transition: all var(--t); cursor: default; }
.stat-item:hover { background: rgba(200,150,12,.08); }
.stat-item:hover .stat-num { color: var(--gold); }
.stat-item:hover .stat-label { color: var(--text); }

/* ── How it works (Cómo funciona) ───────────────────────────── */
.how-section { background: var(--navy); padding: 72px 0; }
.how-step { text-align: center; position: relative; padding: 0 16px; }
.how-step-num { width: 56px; height: 56px; border-radius: 50%; background: rgba(200,150,12,.2); border: 2px solid var(--gold); color: var(--gold-light); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.how-step h5 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: rgba(255,255,255,.65); font-size: .875rem; line-height: 1.7; }
.how-arrow { display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.4rem; padding-top: 20px; }
@media (max-width: 767px) { .how-arrow { transform: rotate(90deg); margin: 8px 0; } }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--gray-50); }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 18px 22px; font-size: .95rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background var(--t); }
.faq-question:hover { background: var(--gray-50); }
.faq-question .faq-icon { font-size: 1.1rem; color: var(--primary); transition: transform .25s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { font-size: .9rem; color: var(--text-muted); line-height: 1.75; padding: 0 22px; }
.faq-answer.show { padding: 4px 22px 18px; }

/* ── Timeline (empresa.html) ────────────────────────────────── */
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gray-200); transform: translateX(-50%); }
.tl-item { display: flex; justify-content: flex-end; padding-right: calc(50% + 32px); margin-bottom: 32px; position: relative; }
.tl-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 32px); }
.tl-dot { position: absolute; left: 50%; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--primary); transform: translateX(-50%); z-index: 1; }
.tl-item:nth-child(even) .tl-dot { left: 50%; }
.tl-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 18px 22px; max-width: 360px; box-shadow: var(--shadow-sm); transition: box-shadow var(--t); }
.tl-card:hover { box-shadow: var(--shadow-md); }
.tl-year { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--primary); margin-bottom: 4px; }
.tl-card h5 { font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.tl-card p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
@media (max-width: 767px) {
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 52px; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 20px; }
}

/* ── Pull quote ─────────────────────────────────────────────── */
.pull-quote { background: var(--navy); border-radius: var(--r-lg); padding: 40px; display: flex; gap: 28px; align-items: flex-start; }
.pull-quote-photo { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); flex-shrink: 0; object-fit: cover; }
.pull-quote-text blockquote { font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,.9); line-height: 1.7; margin: 0 0 14px; border: none; padding: 0; }
.pull-quote-text blockquote::before { content: '"'; font-size: 2.5rem; color: var(--gold); line-height: .6; vertical-align: -0.4em; margin-right: 4px; }
.pull-quote-text blockquote::after { content: '"'; font-size: 2.5rem; color: var(--gold); line-height: .6; vertical-align: -0.4em; margin-left: 4px; }
.pull-quote-author { font-size: .85rem; color: rgba(255,255,255,.6); }
.pull-quote-author strong { color: var(--gold-light); display: block; margin-bottom: 2px; }

/* ── Typewriter ─────────────────────────────────────────────── */
.typewriter-text { display: inline-block; color: var(--gold-light); transition: opacity .3s ease; }

/* ── Google Map embed ───────────────────────────────────────── */
.map-frame { border-radius: var(--r-lg); overflow: hidden; height: 260px; border: 1px solid var(--gray-200); margin-bottom: 16px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(20%); }

/* ── AOS override ──────────────────────────────────────────── */
[data-aos] { transition-duration: .7s !important; }

/* ── Hero visual card (derecha del hero) ───────────────────── */
.hero-visual { position: relative; z-index: 1; }
.hero-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-lg);
  padding: 24px; color: var(--white);
}
.hero-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-label { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-card-val { font-size: .9rem; font-weight: 600; color: var(--white); }
.hero-card-val.up { color: #34D399; }
.hero-card-val.gold { color: var(--gold-light); }
.hero-mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-top: 16px; }
.hero-mini-bar { border-radius: 2px 2px 0 0; flex: 1; background: rgba(200,150,12,.4); transition: background var(--t); }
.hero-mini-bar:hover { background: var(--gold-light); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.3); color: #34D399; border-radius: 20px; padding: 4px 12px; font-size: .75rem; font-weight: 600; margin-top: 14px; }

/* ── Logos / Reguladores strip ─────────────────────────────── */
.logos-strip { background: var(--gray-50); padding: 48px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.logos-strip-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 24px; text-align: center; }
.logos-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.logo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--r); padding: 10px 18px;
  font-size: .85rem; font-weight: 700; color: var(--navy);
  letter-spacing: .3px; transition: all var(--t);
}
.logo-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.logo-badge span { font-size: .7rem; font-weight: 500; color: var(--text-muted); display: block; }

/* ── Trust icons via Boxicons ──────────────────────────────── */
.trust-icon-bx { width: 64px; height: 64px; background: rgba(200,150,12,.15); border: 1px solid rgba(200,150,12,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.trust-icon-bx i { font-size: 1.8rem; color: var(--gold-light); }
