/* =========================================================
   KO VERTIZ · CALCULADORA DE INTERÉS COMPUESTO
   CSS exclusivo de la herramienta
========================================================= */

/* =========================================================
   1. BASE COMPARTIDA DE CONTENIDO
========================================================= */
.compound-section,
.compound-formula-section,
.compound-faq-section {
    width: min(1200px, calc(100% - 48px));
    margin: 100px auto;
    color: #fff;
    font-family: inherit;
}

.compound-section *,
.compound-formula-section *,
.compound-faq-section * {
    box-sizing: border-box;
}

.compound-section p,
.compound-formula-section p,
.compound-faq-section p {
    margin-bottom: 0;
}

.compound-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.compound-section h2,
.compound-formula-section h2,
.compound-faq-section h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(29px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.2px;
}

.compound-section h3,
.compound-formula-section h3,
.compound-faq-section h3 {
    color: #fff;
}

.compound-section-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 45px;
    margin-bottom: 38px;
}

.compound-section-heading h2 {
    max-width: 690px;
    margin-bottom: 0;
}

.compound-section-heading > p {
    padding-bottom: 3px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   2. INTRODUCCIÓN Y EJEMPLO
========================================================= */
.compound-intro {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 65px;
}

.compound-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.compound-intro-copy > p {
    margin-bottom: 14px;
    color: #aeb8cb;
    font-size: 14px;
    line-height: 1.9;
}

.compound-highlight-list {
    display: grid;
    gap: 15px;
    width: 100%;
    margin-top: 17px;
}

.compound-highlight-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.compound-highlight-icon {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 9px;
    background: rgba(129,140,248,.13);
    color: #c7d2fe;
    font-size: 10px;
    font-weight: 800;
}

.compound-highlight-list p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.75;
}

.compound-highlight-list strong {
    color: #fff;
}

.compound-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
    padding: 15px 17px;
    border: 1px solid rgba(129,140,248,.16);
    border-radius: 12px;
    background: rgba(129,140,248,.055);
}

.compound-privacy > span {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(129,140,248,.2);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 800;
}

.compound-privacy p {
    color: #aeb8cb;
    font-size: 11px;
    line-height: 1.8;
}

.compound-example-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(129,140,248,.25);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0%, rgba(129,140,248,.2), transparent 44%), linear-gradient(145deg, #151d34, #0d1322);
    box-shadow: 0 25px 65px rgba(0,0,0,.25);
}

.compound-example-heading {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.compound-example-heading > span,
.compound-example-side > span {
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.compound-example-heading h3 {
    margin: 13px 0 8px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.compound-example-heading p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.compound-example-measures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 23px 0;
}

.compound-measure {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.compound-measure span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 10px;
}

.compound-measure strong {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.compound-measure strong small {
    color: #a5b4fc;
    font-size: 12px;
}

.compound-example-calculation {
    display: flex;
    flex-direction: column;
}

.compound-calculation-line {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.compound-calculation-line span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compound-calculation-line code {
    color: #e2e8f0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.compound-example-result {
    margin-top: 21px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(110deg, #5556ad, #373b80);
    text-align: center;
}

.compound-example-result > span:first-child {
    display: block;
    color: #dbeafe;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.compound-example-result strong {
    display: block;
    margin: 7px 0 2px;
    color: #fff;
    font-size: clamp(36px, 5vw, 47px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.compound-example-result > span:last-child {
    display: block;
    color: #dbeafe;
    font-size: 12px;
}

.compound-example-footnote {
    margin-top: 13px !important;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   3. INSTRUCCIONES DE USO
========================================================= */
.compound-how {
    padding: 68px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.compound-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.compound-step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 23px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: #101727;
    transition: transform .25s ease, border-color .25s ease;
}

.compound-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(129,140,248,.35);
}

.compound-step-card > span {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 10px;
    background: rgba(129,140,248,.13);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 800;
}

.compound-step-card h3 {
    margin: 2px 0 7px;
    color: #fff;
    font-size: 15px;
}

.compound-step-card p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

/* =========================================================
   4. FÓRMULA Y VARIABLES
========================================================= */
.compound-formula-section {
    padding: 15px 0 70px;
}

.compound-formula-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 25px 27px;
    border: 1px solid rgba(129,140,248,.23);
    border-radius: 15px;
    background: radial-gradient(circle at 100% 0%, rgba(129,140,248,.15), transparent 48%), #111a2c;
}

.compound-formula-main > span {
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.compound-formula-main code {
    display: block;
    max-width: 100%;
    color: #fff;
    font-family: inherit;
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.compound-formula-main > p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.compound-formula-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.compound-formula-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: #101727;
    transition: transform .25s ease, border-color .25s ease;
}

.compound-formula-card:hover {
    transform: translateY(-5px);
    border-color: rgba(129,140,248,.4);
}

.compound-formula-card:nth-child(2) { background: #121c2c; }
.compound-formula-card:nth-child(3) { background: #14172d; }

.compound-formula-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 70px;
    margin-bottom: 17px;
}

.compound-formula-number {
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.compound-formula-symbol {
    position: relative;
    display: block;
    width: 45px;
    height: 42px;
}

.compound-symbol-capital::before {
    position: absolute;
    inset: 5px 2px;
    border: 2px solid #a5b4fc;
    border-radius: 5px;
    background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(165,180,252,.2) 7px 9px);
    content: "";
}

.compound-symbol-rate::before {
    position: absolute;
    inset: 3px 6px;
    border: 2px solid #a5b4fc;
    border-radius: 50%;
    background: conic-gradient(rgba(165,180,252,.5) 0 36%, transparent 36% 100%);
    content: "";
}

.compound-symbol-time::before {
    position: absolute;
    inset: 4px 6px;
    border: 2px solid #a5b4fc;
    border-radius: 50%;
    content: "";
}

.compound-symbol-time::after {
    position: absolute;
    top: 10px;
    left: 21px;
    width: 9px;
    height: 11px;
    border-bottom: 2px solid #a5b4fc;
    border-left: 2px solid #a5b4fc;
    content: "";
}

.compound-formula-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.compound-formula-card > p {
    min-height: 85px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

.compound-formula-equation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.compound-formula-equation span {
    display: block;
    margin-bottom: 8px;
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compound-formula-equation code {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,.23);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.compound-formula-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    padding: 17px 20px;
    border-left: 3px solid #818cf8;
    border-radius: 0 10px 10px 0;
    background: rgba(129,140,248,.06);
}

.compound-formula-footer strong {
    flex: 0 0 auto;
    color: #c7d2fe;
    font-size: 12px;
}

.compound-formula-footer span {
    color: #aab5c8;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   5. EJEMPLO PASO A PASO
========================================================= */
.compound-example-section {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 60px;
}

.compound-example-copy > p {
    margin-bottom: 17px;
    color: #aab5c8;
    font-size: 14px;
    line-height: 1.9;
}

.compound-year-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 25px;
}

.compound-year-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 10px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    background: #101727;
}

.compound-year-list span {
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
}

.compound-year-list strong {
    color: #fff;
    font-size: 15px;
}

.compound-year-list small {
    grid-column: 1 / -1;
    color: #8190a6;
    font-size: 10px;
}

.compound-example-note {
    margin-top: 15px !important;
    color: #8190a6 !important;
    font-size: 10px !important;
}

.compound-example-side {
    padding: 30px;
    border: 1px solid rgba(129,140,248,.22);
    border-radius: 19px;
    background: radial-gradient(circle at 100% 0%, rgba(129,140,248,.18), transparent 48%), linear-gradient(145deg, #151d35, #101626);
}

.compound-example-side > span {
    display: block;
    color: #c7d2fe;
    font-size: 9px;
}

.compound-example-side > strong {
    display: block;
    margin: 13px 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 49px);
    letter-spacing: -2px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.compound-example-side > p {
    margin-bottom: 22px;
    color: #aab5c8;
    font-size: 12px;
    line-height: 1.8;
}

.compound-side-metric {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.09);
}

.compound-side-metric span {
    color: #94a3b8;
    font-size: 11px;
}

.compound-side-metric strong {
    color: #e2e8f0;
    font-size: 12px;
}

/* =========================================================
   6. APORTACIONES MENSUALES
========================================================= */
.compound-contributions {
    padding: 65px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.compound-contribution-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.compound-contribution-card {
    padding: 27px;
    border: 1px solid rgba(129,140,248,.18);
    border-radius: 16px;
    background: radial-gradient(circle at 100% 0%, rgba(129,140,248,.12), transparent 48%), #111a2c;
}

.compound-contribution-card-alt {
    background: radial-gradient(circle at 100% 0%, rgba(56,189,248,.09), transparent 48%), #111a2c;
}

.compound-contribution-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
    border: 1px solid rgba(129,140,248,.22);
    border-radius: 12px;
    background: rgba(129,140,248,.13);
    color: #c7d2fe;
    font-size: 23px;
}

.compound-contribution-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.compound-contribution-card > p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.85;
}

.compound-mini-formula {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid rgba(129,140,248,.15);
    border-radius: 9px;
    background: rgba(129,140,248,.06);
}

.compound-mini-formula span {
    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.compound-mini-formula code {
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
}

.compound-contribution-tip,
.compound-frequency-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 3px solid #818cf8;
    border-radius: 0 10px 10px 0;
    background: rgba(129,140,248,.06);
}

.compound-contribution-tip strong,
.compound-frequency-note strong {
    display: block;
    margin-bottom: 6px;
    color: #c7d2fe;
    font-size: 12px;
}

.compound-contribution-tip p,
.compound-frequency-note p {
    color: #aab5c8;
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   7. INTERÉS SIMPLE Y COMPUESTO
========================================================= */
.compound-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.compound-comparison-card {
    padding: 27px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: #101727;
}

.compound-comparison-featured {
    border-color: rgba(129,140,248,.25);
    background: radial-gradient(circle at 100% 0%, rgba(129,140,248,.14), transparent 50%), #131a30;
}

.compound-comparison-card > span {
    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.compound-comparison-card h3 {
    margin: 13px 0 9px;
    color: #fff;
    font-size: 18px;
}

.compound-comparison-card p {
    min-height: 68px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

.compound-comparison-card code {
    display: block;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid rgba(129,140,248,.15);
    border-radius: 8px;
    background: rgba(129,140,248,.07);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.compound-comparison-table-wrap {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.compound-comparison-table {
    width: 100%;
    min-width: 590px;
    border-collapse: collapse;
    text-align: left;
}

.compound-comparison-table th {
    padding: 15px 17px;
    background: rgba(129,140,248,.1);
    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compound-comparison-table td {
    padding: 16px 17px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #aeb8cb;
    font-size: 11px;
    line-height: 1.65;
}

.compound-comparison-table td:first-child {
    color: #fff;
    font-weight: 700;
}

.compound-comparison-table tbody tr:last-child td { border-bottom: 0; }
.compound-comparison-table tbody tr:hover { background: rgba(129,140,248,.04); }

/* =========================================================
   8. FRECUENCIA DE CAPITALIZACIÓN
========================================================= */
.compound-frequency {
    padding: 15px 0;
}

.compound-frequency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.compound-frequency-card {
    position: relative;
    min-width: 0;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: #101727;
}

.compound-frequency-card:nth-child(2) { background: #121c2c; }
.compound-frequency-card:nth-child(3) { background: #14172d; }

.compound-frequency-number {
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.compound-frequency-icon {
    position: relative;
    width: 43px;
    height: 43px;
    margin: 18px 0;
    border: 2px solid #a5b4fc;
    border-radius: 50%;
    background: rgba(129,140,248,.1);
}

.compound-frequency-icon::before,
.compound-frequency-icon::after {
    position: absolute;
    top: 19px;
    left: 19px;
    width: 10px;
    height: 2px;
    background: #c7d2fe;
    content: "";
    transform-origin: left center;
}

.compound-frequency-icon::after { transform: rotate(-90deg); width: 12px; }
.compound-frequency-quarterly { border-radius: 11px; }
.compound-frequency-quarterly::before { transform: rotate(45deg); }
.compound-frequency-quarterly::after { transform: rotate(-45deg); }
.compound-frequency-annual { border-radius: 8px; }
.compound-frequency-annual::before { transform: rotate(90deg); }
.compound-frequency-annual::after { transform: rotate(0); }

.compound-frequency-card h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 17px;
}

.compound-frequency-card p {
    min-height: 100px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

.compound-frequency-card code {
    display: inline-block;
    margin-top: 17px;
    padding: 8px 12px;
    border: 1px solid rgba(129,140,248,.18);
    border-radius: 7px;
    background: rgba(129,140,248,.08);
    color: #c7d2fe;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   9. PREGUNTAS FRECUENTES
========================================================= */
.compound-faq-section {
    padding: 25px 0 65px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.compound-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-items: start;
    gap: 11px 15px;
}

.compound-faq-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 12px;
    background: #101727;
    transition: border-color .2s ease, background .2s ease;
}

.compound-faq-item:hover { border-color: rgba(129,140,248,.3); }
.compound-faq-item[open] { border-color: rgba(129,140,248,.35); background: #131d31; }

.compound-faq-item summary {
    display: grid;
    grid-template-columns: 31px 1fr 25px;
    align-items: center;
    gap: 12px;
    padding: 17px;
    cursor: pointer;
    list-style: none;
}

.compound-faq-item summary::-webkit-details-marker { display: none; }
.compound-faq-item summary::marker { content: ""; }

.compound-faq-number {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: rgba(129,140,248,.12);
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
}

.compound-faq-question {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.compound-faq-toggle {
    position: relative;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.compound-faq-toggle::before,
.compound-faq-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    background: #a5b4fc;
    content: "";
    transform: translate(-50%, -50%);
}

.compound-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .2s ease;
}

.compound-faq-item[open] .compound-faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }

.compound-faq-answer { padding: 0 17px 19px 60px; }
.compound-faq-answer p { color: #94a3b8; font-size: 12px; line-height: 1.9; }

/* =========================================================
   10. CALCULADORA PRINCIPAL
========================================================= */
.compoundcalc {
    --compound-accent: #818cf8;
    --compound-accent-light: #a5b4fc;
    --compound-panel: #0d1425;
    --compound-panel-light: #121b30;
    --compound-border: rgba(255,255,255,.09);
    --compound-muted: #94a3b8;
    display: block;
    width: min(1200px, calc(100% - 48px));
    margin: 55px auto 90px;
    color: #fff;
    font-family: inherit;
}

.compoundcalc *,
.compoundcalc *::before,
.compoundcalc *::after { box-sizing: border-box; }
.compoundcalc [hidden] { display: none !important; }
.compoundcalc h1,
.compoundcalc h2,
.compoundcalc h3,
.compoundcalc p { margin-top: 0; }

.compoundcalc-heading { max-width: 900px; margin-bottom: 35px; }

.compoundcalc-eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    padding: 7px 12px;
    border: 1px solid rgba(129,140,248,.19);
    border-radius: 30px;
    background: rgba(129,140,248,.09);
    color: var(--compound-accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.compoundcalc-heading h1 {
    max-width: 850px;
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.compoundcalc-heading > p {
    max-width: 790px;
    margin-bottom: 20px;
    color: var(--compound-muted);
    font-size: 14px;
    line-height: 1.9;
}

.compoundcalc-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.compoundcalc-tags span {
    padding: 6px 11px;
    border: 1px solid var(--compound-border);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 600;
}

.compoundcalc-layout {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr);
    align-items: start;
    gap: 22px;
}

.compoundcalc-form-card {
    min-width: 0;
    padding: 29px;
    border: 1px solid var(--compound-border);
    border-radius: 19px;
    background: linear-gradient(145deg,#111a2c,#0c1322);
    box-shadow: 0 20px 55px rgba(0,0,0,.16);
}

.compoundcalc-form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.compoundcalc-step-label {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 7px;
    background: rgba(129,140,248,.12);
    color: var(--compound-accent-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}
.compoundcalc-form-heading h2 { margin-bottom: 4px; color: #fff; font-size: 18px; font-weight: 800; }
.compoundcalc-form-heading p { margin-bottom: 0; color: var(--compound-muted); font-size: 11px; line-height: 1.6; }

.compoundcalc-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.compoundcalc-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.compoundcalc-field-full { grid-column: 1 / -1; }
.compoundcalc-field label { display: block; margin: 0; color: #e2e8f0; font-size: 12px; font-weight: 700; line-height: 1.5; }

.compoundcalc-field input,
.compoundcalc-field select {
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    outline: none;
    background: rgba(3,6,16,.6);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.compoundcalc-field input::placeholder { color: #64748b; opacity: 1; }
.compoundcalc-field input:hover,
.compoundcalc-field select:hover { border-color: rgba(129,140,248,.35); }
.compoundcalc-field input:focus,
.compoundcalc-field select:focus {
    border-color: var(--compound-accent);
    background: rgba(3,6,16,.85);
    box-shadow: 0 0 0 3px rgba(129,140,248,.13);
}
.compoundcalc-field select { cursor: pointer; }
.compoundcalc-field select option { background: #111827; color: #fff; }
.compoundcalc-field small { color: #8190a6; font-size: 10px; line-height: 1.55; }

.compoundcalc-depth-hint {
    margin-top: 17px;
    padding: 13px 15px;
    border-left: 2px solid var(--compound-accent);
    border-radius: 0 8px 8px 0;
    background: rgba(129,140,248,.06);
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.8;
}
.compoundcalc-depth-hint strong { color: #c7d2fe; }

.compoundcalc-error {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(248,113,113,.25);
    border-radius: 9px;
    background: rgba(248,113,113,.08);
    color: #fca5a5;
    font-size: 11px;
    line-height: 1.7;
}

.compoundcalc-actions { display: flex; gap: 11px; margin-top: 25px; }
.compoundcalc-actions button {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.compoundcalc-actions button:hover { transform: translateY(-2px); }
.compoundcalc-actions button:focus-visible,
.compoundcalc-result-actions button:focus-visible,
.compoundcalc-view-control select:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 3px;
}
.compoundcalc-button-primary {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(120deg,#929af9,#737ee9);
    color: #ffffff;
    box-shadow: 0 5px 18px rgba(129,140,248,.2);
}
.compoundcalc-button-primary:hover { box-shadow: 0 8px 25px rgba(129,140,248,.35); }
.compoundcalc-button-primary span { font-size: 17px; }
.compoundcalc-button-reset {
    border: 1px solid rgba(255,255,255,.1) !important;
    background: rgba(255,255,255,.06);
    color: #cbd5e1;
}
.compoundcalc-button-reset:hover { background: rgba(255,255,255,.1); }

/* Panel de resultados */
.compoundcalc-result-card {
    position: sticky;
    top: 100px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(129,140,248,.23);
    border-radius: 19px;
    background: #0e1729;
    box-shadow: 0 20px 55px rgba(0,0,0,.2);
}

.compoundcalc-result-heading {
    position: relative;
    overflow: hidden;
    padding: 31px 28px 27px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: radial-gradient(circle at 90% 10%,rgba(165,180,252,.24),transparent 45%),linear-gradient(140deg,#343c7e,#242b59);
}
.compoundcalc-result-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #c7d2fe;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}
.compoundcalc-result-heading h2 { margin-bottom: 10px; color: #fff; font-size: 17px; font-weight: 700; }
.compoundcalc-total {
    color: #fff;
    font-size: clamp(30px,3.4vw,45px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.8px;
    overflow-wrap: anywhere;
}
.compoundcalc-result-description { margin: 11px 0 0; color: #c7d2fe; font-size: 11px; line-height: 1.7; }

.compoundcalc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 46px 28px;
    text-align: center;
}
.compoundcalc-placeholder-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 17px;
    background: rgba(129,140,248,.1);
}
.compoundcalc-placeholder-icon span {
    position: relative;
    display: block;
    width: 27px;
    height: 30px;
    border: 2px solid #a5b4fc;
    border-radius: 4px;
    background: repeating-linear-gradient(0deg,transparent 0 7px,rgba(165,180,252,.25) 7px 9px);
}
.compoundcalc-placeholder > strong { margin-bottom: 8px; color: #e2e8f0; font-size: 13px; }
.compoundcalc-placeholder > p { max-width: 280px; margin: 0; color: var(--compound-muted); font-size: 11px; line-height: 1.8; }

.compoundcalc-results { padding: 22px; }
.compoundcalc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compoundcalc-stat {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}
.compoundcalc-stat > span { color: #94a3b8; font-size: 10px; line-height: 1.5; }
.compoundcalc-stat > strong { color: #fff; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }

.compoundcalc-growth-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid rgba(129,140,248,.22);
    border-radius: 12px;
    background: radial-gradient(circle at 100% 0%,rgba(129,140,248,.16),transparent 55%),rgba(129,140,248,.07);
}
.compoundcalc-growth-card > span { color: #a5b4fc; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.compoundcalc-growth-card > strong { color: #fff; font-size: clamp(25px,3vw,33px); font-weight: 800; letter-spacing: -1px; overflow-wrap: anywhere; }
.compoundcalc-growth-card > p { margin: 0; color: #aab5c8; font-size: 10px; line-height: 1.7; }

.compoundcalc-chart-section,
.compoundcalc-table-section {
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.compoundcalc-chart-heading h3,
.compoundcalc-table-heading h3 { margin: 0; color: #fff; font-size: 14px; font-weight: 800; }
.compoundcalc-chart-heading > span { display: block; margin-top: 5px; color: #8190a6; font-size: 10px; }
.compoundcalc-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0 13px; }
.compoundcalc-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; color: #aab5c8; font-size: 9px; }
.compoundcalc-chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.compoundcalc-legend-invested { background: #818cf8; }
.compoundcalc-legend-interest { background: #38bdf8; }
.compoundcalc-chart-wrap {
    width: 100%;
    min-width: 0;
    height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;
    background: rgba(3,6,16,.28);
}
.compoundcalc-chart-wrap canvas { display: block; width: 100%; height: 100%; }
.compoundcalc-chart-note { margin: 10px 0 0 !important; color: #8190a6; font-size: 9px; line-height: 1.7; }

.compoundcalc-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.compoundcalc-table-heading p { margin: 5px 0 0; color: #8190a6; font-size: 9px; line-height: 1.6; }
.compoundcalc-view-control { display: flex; flex: 0 0 auto; flex-direction: column; gap: 5px; color: #94a3b8; font-size: 9px; }
.compoundcalc-view-control select {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    outline: none;
    background: #111827;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 10px;
}
.compoundcalc-table-wrap { width: 100%; max-height: 380px; overflow: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
.compoundcalc-table { width: 100%; min-width: 470px; border-collapse: collapse; text-align: left; }
.compoundcalc-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 9px;
    background: #1b2540;
    color: #a5b4fc;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.compoundcalc-table td { padding: 11px 9px; border-bottom: 1px solid rgba(255,255,255,.055); color: #cbd5e1; font-size: 9px; white-space: nowrap; }
.compoundcalc-table tbody tr:last-child td { border-bottom: 0; }
.compoundcalc-table td:first-child { color: #fff; font-weight: 700; }
.compoundcalc-table td.compound-table-total { color: #c7d2fe; font-weight: 800; }
.compoundcalc-table tbody tr:hover { background: rgba(129,140,248,.05); }

.compoundcalc-breakdown { margin-top: 25px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.08); }
.compoundcalc-breakdown h3 { margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 800; }
.compoundcalc-breakdown-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.compoundcalc-breakdown-row:last-child { border-bottom: 0; }
.compoundcalc-breakdown-row span { color: #94a3b8; font-size: 10px; line-height: 1.6; }
.compoundcalc-breakdown-row strong { color: #e2e8f0; font-size: 10px; text-align: right; overflow-wrap: anywhere; }

.compoundcalc-result-warning { margin-top: 17px; padding: 14px; border: 1px solid rgba(255,209,102,.15); border-radius: 10px; background: rgba(255,209,102,.04); }
.compoundcalc-result-warning strong { display: block; margin-bottom: 6px; color: #fcd98c; font-size: 11px; }
.compoundcalc-result-warning p { margin: 0; color: #aab5c8; font-size: 10px; line-height: 1.8; }

.compoundcalc-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.compoundcalc-result-actions button {
    min-height: 42px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(255,255,255,.055);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.compoundcalc-result-actions button:hover { transform: translateY(-2px); background: rgba(129,140,248,.15); }
.compoundcalc-result-actions button:last-child { border-color: var(--compound-accent); background: var(--compound-accent); color: #ffffff; }
.compoundcalc-result-actions button:last-child:hover { background: #a5adff; }
.compoundcalc-action-status { min-height: 15px; margin: 9px 0 0 !important; color: #a5b4fc; font-size: 10px; line-height: 1.5; }

/* =========================================================
   11. RESPONSIVE · TABLET
========================================================= */
@media (max-width: 950px) {
    .compoundcalc-layout { grid-template-columns: 1fr; }
    .compoundcalc-result-card { position: relative; top: 0; }
    .compoundcalc-result-heading { padding: 27px; }
    .compoundcalc-total { font-size: 42px; }
    .compound-intro { grid-template-columns: 1fr; gap: 35px; }
    .compound-example-card { max-width: 680px; width: 100%; }
    .compound-example-section { grid-template-columns: 1fr; gap: 30px; }
    .compound-example-side { max-width: 680px; }
}

/* =========================================================
   12. RESPONSIVE · TABLET PEQUEÑA
========================================================= */
@media (max-width: 720px) {
    .compound-section-heading { grid-template-columns: 1fr; gap: 15px; }
    .compound-formula-grid { grid-template-columns: 1fr; }
    .compound-formula-card > p { min-height: 0; }
    .compound-steps-grid { grid-template-columns: 1fr; }
    .compound-contribution-layout { grid-template-columns: 1fr; }
    .compound-comparison-grid { grid-template-columns: 1fr; }
    .compound-comparison-card p { min-height: 0; }
    .compound-frequency-grid { grid-template-columns: 1fr; }
    .compound-frequency-card p { min-height: 0; }
    .compound-faq-list { grid-template-columns: 1fr; }
}

/* =========================================================
   13. RESPONSIVE · MÓVIL
========================================================= */
@media (max-width: 520px) {
    .compound-section,
    .compound-formula-section,
    .compound-faq-section {
        width: calc(100% - 32px);
        margin-top: 55px;
        margin-bottom: 55px;
    }

    .compound-eyebrow { margin-bottom: 13px; font-size: 9px; }
    .compound-section h2,
    .compound-formula-section h2,
    .compound-faq-section h2 { font-size: 28px; letter-spacing: -.8px; }
    .compound-intro { gap: 28px; }
    .compound-example-card { padding: 22px; border-radius: 17px; }
    .compound-example-heading h3 { font-size: 19px; }
    .compound-measure strong { font-size: 20px; }
    .compound-calculation-line code { font-size: 11px; }
    .compound-example-result strong { font-size: 40px; }

    .compound-how,
    .compound-contributions { padding: 45px 0; }
    .compound-step-card { padding: 19px; }

    .compound-formula-section { padding-bottom: 45px; }
    .compound-formula-main { padding: 20px; }
    .compound-formula-main code { font-size: 17px; }
    .compound-formula-card { padding: 22px; }
    .compound-formula-footer { align-items: flex-start; flex-direction: column; gap: 7px; }

    .compound-year-list { gap: 8px; }
    .compound-year-list > div { padding: 11px; }
    .compound-year-list strong { font-size: 13px; }
    .compound-example-side { padding: 23px; }

    .compound-contribution-card { padding: 22px; }
    .compound-comparison-card { padding: 22px; }
    .compound-frequency-card { padding: 22px; }
    .compound-faq-section { padding-top: 35px; }
    .compound-faq-item summary { grid-template-columns: 29px 1fr 22px; gap: 9px; padding: 14px 11px; }
    .compound-faq-question { font-size: 11px; }
    .compound-faq-answer { padding: 0 13px 16px 49px; }
    .compound-faq-answer p { font-size: 11px; }

    .compoundcalc { width: calc(100% - 28px); margin: 35px auto 60px; }
    .compoundcalc-heading { margin-bottom: 25px; }
    .compoundcalc-heading h1 { font-size: 29px; letter-spacing: -.8px; }
    .compoundcalc-heading > p { font-size: 12px; line-height: 1.85; }
    .compoundcalc-tags { gap: 6px; }
    .compoundcalc-tags span { font-size: 9px; }
    .compoundcalc-layout { gap: 17px; }
    .compoundcalc-form-card { padding: 20px 16px; border-radius: 15px; }
    .compoundcalc-form-heading h2 { font-size: 16px; }
    .compoundcalc-fields-grid { gap: 13px; }
    .compoundcalc-field input,
    .compoundcalc-field select { min-height: 45px; padding: 10px; font-size: 13px; }
    .compoundcalc-actions { flex-direction: column; }
    .compoundcalc-actions button { width: 100%; min-height: 46px; }
    .compoundcalc-result-card { border-radius: 15px; }
    .compoundcalc-result-heading { padding: 24px 20px; }
    .compoundcalc-total { font-size: 34px; letter-spacing: -1px; }
    .compoundcalc-results { padding: 17px; }
    .compoundcalc-stat { padding: 12px; }
    .compoundcalc-stat > strong { font-size: 14px; }
    .compoundcalc-growth-card { padding: 17px; }
    .compoundcalc-growth-card > strong { font-size: 27px; }
    .compoundcalc-chart-wrap { height: 230px; }
    .compoundcalc-chart-legend { gap: 9px; }
    .compoundcalc-chart-legend > span { font-size: 8px; }
    .compoundcalc-table-heading { align-items: flex-start; }
    .compoundcalc-table { min-width: 470px; }
    .compoundcalc-table th,
    .compoundcalc-table td { padding: 10px 8px; }
    .compoundcalc-result-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   14. ACCESIBILIDAD
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .compoundcalc *,
    .compoundcalc *::before,
    .compoundcalc *::after,
    .compound-section *,
    .compound-formula-section *,
    .compound-faq-section * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
