/* Extraido de application/views/sistema_ahorros.php.
   Estaba en linea, asi que viajaba en cada visita sin poder cachearse. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        :root {
            --sa-paper: #faf6ec;
            --sa-paper-2: #f1e9d6;
            --sa-card: #fffdf7;
            --sa-ink: #182420;
            --sa-ink-soft: #57645a;
            --sa-emerald-900: #0d3327;
            --sa-emerald-700: #144a3a;
            --sa-emerald-500: #1f6b52;
            --sa-gold-600: #a1791f;
            --sa-gold-400: #c9a55c;
            --sa-line: #e4d8ba;
        }
        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--sa-ink);
            background: var(--sa-paper);
            -webkit-font-smoothing: antialiased;
            font-size: 16px;
        }
        a { text-decoration: none; color: inherit; }
        img { max-width: 100%; height: auto; display: block; }
        .sa-serif { font-family: 'Fraunces', serif; }
        .sa-wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

        /* --- Topbar --- */
        .sa-topbar {
            position: fixed; top: 0; left: 0; right: 0; z-index: 100;
            height: 60px; padding: 0 clamp(16px, 4vw, 40px);
            background: rgba(250, 246, 236, 0.92); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--sa-line);
            display: flex; align-items: center; justify-content: space-between;
        }
        .sa-topbar-logo { height: 26px; filter: brightness(0) saturate(100%) invert(14%) sepia(23%) saturate(1600%) hue-rotate(115deg) brightness(90%); }
        .sa-topbar-nav { display: flex; align-items: center; gap: 26px; }
        .sa-topbar-link { font-size: 0.8rem; font-weight: 600; color: var(--sa-ink-soft); transition: color 0.2s; }
        .sa-topbar-link:hover { color: var(--sa-emerald-700); }
        .sa-topbar-cta {
            font-size: 0.8rem; font-weight: 700; color: var(--sa-paper);
            background: var(--sa-emerald-900);
            padding: 9px 20px; border-radius: 50px;
            transition: background 0.2s;
        }
        .sa-topbar-cta:hover { background: var(--sa-emerald-700); }

        /* --- Hero --- */
        .sa-hero {
            padding: 128px clamp(20px, 5vw, 48px) 40px;
            position: relative; overflow: hidden;
        }
        .sa-hero::before {
            content: ''; position: absolute; top: -180px; right: -220px;
            width: 620px; height: 620px; border-radius: 50%;
            background: radial-gradient(circle, rgba(201,165,92,0.16) 0%, transparent 70%);
        }
        .sa-hero-inner {
            max-width: 1160px; margin: 0 auto; position: relative; z-index: 1;
            display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
            align-items: center;
        }
        .sa-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
            color: var(--sa-gold-600); margin-bottom: 18px;
        }
        .sa-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--sa-gold-600); }
        .sa-hero h1 {
            font-family: 'Fraunces', serif; font-weight: 600; font-optical-sizing: auto;
            font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08;
            color: var(--sa-emerald-900); margin-bottom: 22px; letter-spacing: -0.01em;
        }
        .sa-hero-sub {
            font-size: 1.02rem; line-height: 1.75; color: var(--sa-ink-soft);
            max-width: 46ch; margin-bottom: 20px;
        }
        /* Aviso de transparencia: PrestamosCloud vende software, no otorga
           prestamos ni capta depositos. Requerido por la politica de
           "Afirmaciones no fiables" de Google Ads. */
        .sa-hero-disclaimer {
            display: flex; align-items: flex-start; gap: 9px;
            max-width: 52ch; margin-bottom: 28px; padding: 11px 15px;
            border: 1px solid var(--sa-line); border-radius: 10px;
            background: var(--sa-card);
            font-size: 0.8rem; line-height: 1.65; color: var(--sa-ink-soft);
        }
        .sa-hero-disclaimer i {
            flex: 0 0 auto; margin-top: 2px;
            font-size: 0.95rem; color: var(--sa-gold-600);
        }
        .sa-hero-disclaimer b { color: var(--sa-emerald-900); font-weight: 700; }
        .sa-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
        .sa-cta-primary {
            display: inline-flex; align-items: center; gap: 9px;
            font-size: 0.92rem; font-weight: 700; color: var(--sa-paper);
            background: var(--sa-emerald-900);
            padding: 15px 30px; border-radius: 50px;
            box-shadow: 0 10px 26px rgba(13,51,39,0.22);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .sa-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13,51,39,0.28); }
        .sa-cta-secondary {
            font-size: 0.88rem; font-weight: 700; color: var(--sa-emerald-900);
            border-bottom: 1.5px solid var(--sa-gold-400); padding-bottom: 2px;
        }
        .sa-hero-visual { position: relative; }
        .sa-hero-frame {
            position: relative; border-radius: 4px 24px 4px 24px;
            border: 1px solid var(--sa-line);
            background: var(--sa-card);
            box-shadow: 0 30px 60px -20px rgba(13,51,39,0.28);
            padding: 14px; transform: rotate(1.2deg);
        }
        .sa-hero-frame img { border-radius: 2px 18px 2px 18px; display: block; }
        .sa-hero-callout {
            position: absolute; left: -18px; bottom: -26px;
            background: var(--sa-emerald-900); color: var(--sa-paper);
            border-radius: 14px; padding: 16px 20px;
            box-shadow: 0 16px 34px rgba(13,51,39,0.3);
            max-width: 240px; transform: rotate(-1.5deg);
        }
        .sa-hero-callout .sa-callout-figures {
            display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums;
        }
        .sa-hero-callout .sa-callout-from { font-size: 0.8rem; color: rgba(250,246,236,0.55); text-decoration: line-through; }
        .sa-hero-callout .sa-callout-to { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; color: #e8c97a; }
        .sa-hero-callout p { font-size: 0.68rem; color: rgba(250,246,236,0.7); margin-top: 6px; line-height: 1.5; }

        /* --- Reframe strip --- */
        .sa-reframe { padding: 56px clamp(20px, 5vw, 48px); text-align: center; }
        .sa-reframe blockquote {
            font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
            font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5;
            color: var(--sa-emerald-900); max-width: 760px; margin: 0 auto 28px;
        }
        .sa-chip-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
        .sa-chip {
            font-size: 0.76rem; font-weight: 700; color: var(--sa-emerald-700);
            background: var(--sa-paper-2); border: 1px solid var(--sa-line);
            padding: 8px 18px; border-radius: 50px;
        }

        /* --- Section shell --- */
        .sa-section { padding: 64px clamp(20px, 5vw, 48px); }
        .sa-section.is-alt { background: var(--sa-paper-2); }
        .sa-section-inner { max-width: 1160px; margin: 0 auto; }
        .sa-section-label {
            font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
            color: var(--sa-gold-600); margin-bottom: 10px;
        }
        .sa-section h2 {
            font-family: 'Fraunces', serif; font-weight: 600;
            font-size: clamp(1.55rem, 3vw, 2.15rem); color: var(--sa-emerald-900);
            line-height: 1.2; max-width: 26ch;
        }
        .sa-section-sub {
            font-size: 0.95rem; color: var(--sa-ink-soft); line-height: 1.75;
            max-width: 62ch; margin-top: 14px;
        }

        /* --- Tipos de cuenta --- */
        .sa-group-heading {
            display: flex; align-items: center; gap: 12px;
            font-size: 0.78rem; font-weight: 700; color: var(--sa-emerald-700);
            margin: 40px 0 16px;
        }
        .sa-group-heading::after { content: ''; flex: 1; height: 1px; background: var(--sa-line); }
        .sa-group-heading.is-noyield { color: var(--sa-gold-600); }
        .sa-account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        .sa-account-grid.is-noyield { grid-template-columns: repeat(2, 1fr); }
        .sa-account-card {
            background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 14px;
            padding: 24px 26px; position: relative;
        }
        .sa-account-tag {
            display: inline-block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--sa-emerald-700); background: rgba(31,107,82,0.09);
            padding: 4px 11px; border-radius: 50px; margin-bottom: 12px;
        }
        .sa-account-card.is-noyield .sa-account-tag { color: var(--sa-gold-600); background: rgba(161,121,31,0.1); }
        .sa-account-card h3 {
            font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem;
            color: var(--sa-emerald-900); margin-bottom: 8px;
        }
        .sa-account-card p { font-size: 0.87rem; line-height: 1.65; color: var(--sa-ink-soft); margin-bottom: 14px; }
        .sa-account-detail {
            font-size: 0.72rem; font-weight: 700; color: var(--sa-ink);
            display: inline-flex; align-items: center; gap: 6px;
        }
        .sa-account-detail i { color: var(--sa-gold-600); font-size: 0.95rem; }

        /* --- Interes / ledger table --- */
        .sa-interest-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 28px; }
        .sa-interest-text p { font-size: 0.93rem; line-height: 1.8; color: var(--sa-ink-soft); margin-bottom: 16px; }
        .sa-interest-text strong { color: var(--sa-emerald-900); }
        .sa-ledger {
            background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 16px;
            overflow: hidden; box-shadow: 0 18px 40px -24px rgba(13,51,39,0.3);
        }
        .sa-ledger-head {
            background: var(--sa-emerald-900); color: var(--sa-paper);
            padding: 16px 22px; font-size: 0.78rem; font-weight: 700;
            display: flex; justify-content: space-between; align-items: center;
        }
        .sa-ledger-head span:last-child { color: var(--sa-gold-400); font-weight: 800; }
        .sa-ledger-row {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
            padding: 13px 22px; font-size: 0.82rem; font-variant-numeric: tabular-nums;
            border-bottom: 1px solid var(--sa-line);
        }
        .sa-ledger-row:last-child { border-bottom: none; background: rgba(201,165,92,0.09); font-weight: 700; }
        .sa-ledger-row span:first-child { color: var(--sa-ink-soft); font-weight: 600; }
        .sa-ledger-row span:nth-child(2) { text-align: right; color: var(--sa-ink); }
        .sa-ledger-row span:last-child { text-align: right; color: var(--sa-emerald-700); }
        .sa-ledger-foot { padding: 12px 22px; font-size: 0.68rem; color: var(--sa-ink-soft); line-height: 1.5; }

        /* --- Movimientos --- */
        .sa-move-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; align-items: start; }
        .sa-move-list { display: flex; flex-direction: column; gap: 16px; }
        .sa-move-item { display: flex; gap: 13px; align-items: flex-start; }
        .sa-move-item i { color: var(--sa-emerald-700); font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
        .sa-move-item span { font-size: 0.9rem; line-height: 1.65; color: var(--sa-ink-soft); }
        .sa-mock-ledger {
            background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 16px;
            padding: 4px; box-shadow: 0 18px 40px -24px rgba(13,51,39,0.3);
        }
        .sa-mock-caption {
            font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
            color: var(--sa-ink-soft); padding: 14px 18px 6px;
        }
        .sa-mock-entry {
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
            padding: 13px 18px; border-top: 1px solid var(--sa-line);
        }
        .sa-mock-entry-left { display: flex; align-items: center; gap: 12px; }
        .sa-mock-icon {
            width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1rem;
            background: rgba(31,107,82,0.1); color: var(--sa-emerald-700);
        }
        .sa-mock-icon.is-out { background: rgba(161,121,31,0.12); color: var(--sa-gold-600); }
        .sa-mock-title { font-size: 0.83rem; font-weight: 700; color: var(--sa-ink); }
        .sa-mock-sub { font-size: 0.72rem; color: var(--sa-ink-soft); }
        .sa-mock-amount { font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sa-emerald-700); }
        .sa-mock-amount.is-out { color: var(--sa-gold-600); }

        /* --- Reportes --- */
        .sa-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
        .sa-report-grid p { font-size: 0.93rem; line-height: 1.8; color: var(--sa-ink-soft); margin-bottom: 18px; }
        .sa-report-grid a { color: var(--sa-emerald-700); font-weight: 700; border-bottom: 1.5px solid var(--sa-gold-400); }
        .sa-stat-list { display: flex; flex-direction: column; gap: 14px; }
        .sa-stat-item {
            display: flex; gap: 14px; align-items: flex-start; background: var(--sa-card);
            border: 1px solid var(--sa-line); border-radius: 12px; padding: 16px 18px;
        }
        .sa-stat-item i { color: var(--sa-gold-600); font-size: 1.2rem; margin-top: 1px; }
        .sa-stat-item strong { display: block; font-size: 0.86rem; color: var(--sa-emerald-900); margin-bottom: 3px; }
        .sa-stat-item span { font-size: 0.8rem; color: var(--sa-ink-soft); line-height: 1.5; }

        /* --- FAQ --- */
        .sa-faq-item {
            background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 12px;
            margin-bottom: 12px; overflow: hidden;
        }
        .sa-faq-item summary {
            list-style: none; cursor: pointer; padding: 18px 22px;
            font-size: 0.92rem; font-weight: 700; color: var(--sa-emerald-900);
            display: flex; align-items: center; justify-content: space-between; gap: 14px;
        }
        .sa-faq-item summary::-webkit-details-marker { display: none; }
        .sa-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--sa-gold-600); transition: transform 0.2s ease; flex-shrink: 0; }
        .sa-faq-item[open] summary::after { transform: rotate(45deg); }
        .sa-faq-item-body { padding: 0 22px 20px; font-size: 0.88rem; line-height: 1.75; color: var(--sa-ink-soft); }

        /* --- Final CTA --- */
        .sa-final-cta {
            background: var(--sa-emerald-900); color: var(--sa-paper);
            padding: 72px clamp(20px, 5vw, 48px); text-align: center;
        }
        .sa-final-cta h2 {
            font-family: 'Fraunces', serif; font-weight: 600;
            font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; max-width: 30ch; margin-inline: auto;
        }
        .sa-final-cta p { color: rgba(250,246,236,0.72); font-size: 0.95rem; margin-bottom: 30px; }
        .sa-final-cta .sa-cta-primary { background: var(--sa-gold-400); color: var(--sa-emerald-900); box-shadow: none; }
        .sa-final-cta .sa-cta-primary:hover { background: #d9bc7c; transform: translateY(-2px); }

        /* --- Footer --- */
        .sa-footer { background: var(--sa-paper-2); padding: 32px 24px; text-align: center; border-top: 1px solid var(--sa-line); }
        .sa-footer p { color: var(--sa-ink-soft); font-size: 0.78rem; }
        .sa-footer a { color: var(--sa-emerald-700); font-weight: 600; }
        .sa-footer-legal { max-width: 720px; margin: 0 auto; line-height: 1.7; }
        .sa-footer-legal b { color: var(--sa-emerald-900); }
        .sa-footer-contact {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
            gap: 8px 18px; margin: 16px 0 14px; font-size: 0.78rem;
        }
        .sa-footer-contact a { display: inline-flex; align-items: center; gap: 6px; }
        .sa-footer-contact i { font-size: 0.95rem; color: var(--sa-gold-600); }
        .sa-footer-note {
            max-width: 720px; margin: 16px auto 0;
            padding-top: 14px; border-top: 1px solid var(--sa-line);
            font-size: 0.73rem; line-height: 1.7;
        }

        /* --- Hero entrance (runs once on load, not scroll-dependent) --- */
        .sa-hero-inner > * { animation: saFadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
        .sa-hero-visual { animation-delay: 0.12s; }
        @keyframes saFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

        /* --- Responsive --- */
        @media (max-width: 900px) {
            .sa-hero-inner { grid-template-columns: 1fr; }
            .sa-hero-visual { order: -1; max-width: 420px; margin: 0 auto 20px; }
            .sa-account-grid { grid-template-columns: 1fr; }
            .sa-interest-layout, .sa-move-layout, .sa-report-grid { grid-template-columns: 1fr; }
            .sa-topbar-nav { gap: 14px; }
        }
        @media (max-width: 640px) {
            .sa-topbar-link:not(.sa-topbar-cta) { display: none; }
            .sa-hero-callout { position: static; margin-top: 16px; transform: none; max-width: none; }
            .sa-hero-frame { transform: none; }
        }
