/* =========================================================================
   CASADO CONDE — Calculadora de indemnización (self-contained)
   Prefijo .cc-ci · tokens propios (independiente del tema). Breakpoint 900px.
   ========================================================================= */
.cc-ci {
  --ci-navy: #16395c;
  --ci-blue: #1e4e7b;
  --ci-footer: #0f2a44;
  --ci-canvas: #cdd8e6;
  --ci-alt: #f4f7fb;
  --ci-alt2: #fbfcfd;
  --ci-gold: #B0894A;
  --ci-gold-h: #9a763c;
  --ci-gold-l: #E6CFA0;
  --ci-ink: #28333b;
  --ci-ink2: #52606d;
  --ci-ink3: #7a8794;
  --ci-on-dark: #cdddec;
  --ci-on-dark2: #9fbbd2;
  --ci-border: #dde3ea;
  --ci-serif: 'Lora', Georgia, serif;
  --ci-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--ci-sans);
  color: var(--ci-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.cc-ci *, .cc-ci *::before, .cc-ci *::after { box-sizing: border-box; }
.cc-ci [hidden] { display: none !important; }

.cc-ci-wrap { max-width: 1180px; margin: 0 auto; }
.cc-ci-wrap--narrow { max-width: 880px; }
.cc-ci-wrap--md { max-width: 980px; }

.cc-ci-eyebrow { color: var(--ci-gold-h); font-weight: 600; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 13px; }
.cc-ci-eyebrow--light { color: var(--ci-gold-l); }
.cc-ci-h1 { font-family: var(--ci-sans); font-weight: 600; color: var(--ci-navy); font-size: clamp(30px, 4.6vw, 50px); line-height: 1.1; margin: 0 0 22px; letter-spacing: -.7px; }
.cc-ci-h2 { font-family: var(--ci-sans); font-weight: 600; color: var(--ci-navy); font-size: clamp(26px, 3.5vw, 40px); line-height: 1.14; margin: 0; letter-spacing: -.5px; }
.cc-ci-h2--light { color: #fff; }
.cc-ci-em { font-family: var(--ci-serif); font-style: italic; font-weight: 600; color: var(--ci-blue); }
.cc-ci-em--light { color: var(--ci-gold-l); }
.cc-ci-center { text-align: center; margin-bottom: 38px; }

/* Intro */
.cc-ci-intro { background: #fff; border-radius: clamp(0px, 2vw, 26px); padding: clamp(34px, 5vw, 68px) clamp(20px, 4vw, 72px); }
.cc-ci-crumbs { font-size: 12.5px; color: var(--ci-ink3); margin-bottom: 22px; }
.cc-ci-crumbs a { color: var(--ci-blue); text-decoration: none; }
.cc-ci-badge { display: inline-flex; align-items: center; gap: 8px; background: #eef3f9; color: var(--ci-blue); padding: 6px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; margin-bottom: 20px; }
.cc-ci-lead { color: #3a4651; font-size: clamp(16px, 1.9vw, 18.5px); margin: 0 0 16px; }
.cc-ci-note { color: var(--ci-ink2); font-size: 15px; margin: 0; }

/* App */
.cc-ci-app { background: var(--ci-navy); border-radius: clamp(0px, 2vw, 26px); margin-top: clamp(8px, 1.5vw, 16px); padding: clamp(30px, 4vw, 60px) clamp(16px, 3vw, 48px); }
.cc-ci-app__head { text-align: center; max-width: 600px; margin: 0 auto 38px; }
.cc-ci-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 30px); align-items: start; }

/* Inputs */
.cc-ci-inputs { background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 38px); }
.cc-ci-field { margin-bottom: 28px; }
.cc-ci-field--last { margin-bottom: 0; }
.cc-ci-label { display: block; font-family: var(--ci-serif); font-size: 17px; color: var(--ci-navy); margin-bottom: 6px; }
.cc-ci-help { color: var(--ci-ink3); font-size: 13px; margin: 0 0 12px; }
.cc-ci-sep { height: 1px; background: #eef2f6; border: 0; margin: 0 0 26px; }
.cc-ci-input { width: 100%; padding: 13px 16px; border: 1px solid var(--ci-border); border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--ci-ink); background: var(--ci-alt2); }
.cc-ci-input:focus { outline: none; border-color: var(--ci-blue); box-shadow: 0 0 0 3px rgba(30, 78, 123, .12); }
.cc-ci-input--sm { width: 140px; }
.cc-ci-input--num { width: 96px; flex: none; padding: 11px 14px; border-radius: 11px; text-align: right; }
.cc-ci-input[type=number]::-webkit-outer-spin-button, .cc-ci-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-ci-input[type=number] { -moz-appearance: textfield; }
.cc-ci-days { display: flex; flex-direction: column; gap: 12px; }
.cc-ci-day { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.cc-ci-day__name { font-weight: 600; color: var(--ci-ink); font-size: 14.5px; }
.cc-ci-day__name span { color: var(--ci-ink3); font-weight: 400; }
.cc-ci-day__rate { color: #9aa8b5; font-size: 12.5px; }
.cc-ci-cirugias { display: flex; flex-direction: column; gap: 10px; }
.cc-ci-cirugia { display: flex; gap: 9px; align-items: center; }
.cc-ci-cirugia__desc { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--ci-border); border-radius: 11px; font-size: 15px; font-family: inherit; color: var(--ci-ink); background: var(--ci-alt2); }
.cc-ci-cirugia__imp { width: 104px; flex: none; padding: 11px 14px; border: 1px solid var(--ci-border); border-radius: 11px; font-size: 16px; font-family: inherit; color: var(--ci-ink); background: var(--ci-alt2); text-align: right; }
.cc-ci-cirugia__rm { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid #f0d9d9; background: #fdf3f3; color: #c0564f; cursor: pointer; font-size: 18px; line-height: 1; }
.cc-ci-add { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: #eef3f9; color: var(--ci-blue); border: none; padding: 11px 18px; border-radius: 30px; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.cc-ci-add:hover { background: #e0e9f3; }

/* Result */
.cc-ci-result-col { position: sticky; top: 90px; }
.cc-ci-result { background: linear-gradient(135deg, #1e4e7b, #16395c); border-radius: 22px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); border: 1px solid rgba(230, 207, 160, .25); }
.cc-ci-result__label { color: var(--ci-on-dark2); font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 10px; }
.cc-ci-result__total { font-family: var(--ci-serif); font-weight: 700; color: #fff; font-size: clamp(34px, 5vw, 46px); line-height: 1; margin-bottom: 6px; }
.cc-ci-result__sep { height: 1px; background: rgba(255, 255, 255, .14); border: 0; margin: 20px 0; }
.cc-ci-approx { display: flex; gap: 9px; align-items: flex-start; background: rgba(230, 207, 160, .14); border: 1px solid rgba(230, 207, 160, .3); border-radius: 12px; padding: 11px 14px; margin: 16px 0 0; }
.cc-ci-approx svg { flex: none; margin-top: 1px; }
.cc-ci-approx span { color: #e9dcc2; font-size: 12.5px; line-height: 1.5; }
.cc-ci-breakdown { display: flex; flex-direction: column; }
.cc-ci-brow { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cc-ci-brow span:first-child { color: var(--ci-on-dark); font-size: 13.5px; }
.cc-ci-brow span:last-child { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cc-ci-brow--total { border-bottom: 0; padding: 14px 0 0; }
.cc-ci-brow--total span:first-child { color: var(--ci-gold-l); font-family: var(--ci-serif); font-size: 16px; font-weight: 600; }
.cc-ci-brow--total span:last-child { font-family: var(--ci-serif); font-size: 18px; font-weight: 700; }
.cc-ci-noresult { color: var(--ci-on-dark2); font-size: 13.5px; margin: 0; }
.cc-ci-hook { display: flex; gap: 10px; align-items: flex-start; background: rgba(230, 207, 160, .12); border: 1px solid rgba(230, 207, 160, .28); border-radius: 14px; padding: 14px 16px; margin-top: 20px; }
.cc-ci-hook svg { flex: none; margin-top: 1px; }
.cc-ci-hook span { color: #e9dcc2; font-size: 13px; line-height: 1.55; }
.cc-ci-hook strong { color: #fff; }

/* Lead form */
.cc-ci-lead { background: #fff; border-radius: 16px; padding: clamp(20px, 2.6vw, 26px); margin-top: 20px; }
.cc-ci-lead__title { font-family: var(--ci-serif); color: var(--ci-navy); font-size: 19px; margin: 0 0 5px; }
.cc-ci-lead__sub { color: var(--ci-ink3); font-size: 13px; margin: 0 0 14px; }
.cc-ci-perks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.cc-ci-perks span { display: inline-flex; align-items: center; gap: 6px; color: var(--ci-blue); font-size: 12px; font-weight: 600; }
.cc-ci-perks span::before { content: "✓"; color: var(--ci-gold); font-weight: 700; }
.cc-ci-lead .cc-ci-input { margin-bottom: 12px; }
.cc-ci-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 2px; }
.cc-ci-two .cc-ci-input { margin-bottom: 12px; }
.cc-ci-minlabel { display: block; font-size: 11.5px; color: var(--ci-ink3); font-weight: 600; margin-bottom: 5px; }
.cc-ci-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ci-ink3); margin: 6px 0 14px; cursor: pointer; }
.cc-ci-consent input { margin-top: 3px; flex: none; }
.cc-ci-consent a { color: var(--ci-blue); }
.cc-ci-error { color: #c0564f; font-size: 13px; margin: 0 0 12px; }
.cc-ci-submit { width: 100%; background: var(--ci-gold); color: #fff; border: none; padding: 16px; border-radius: 30px; font-weight: 600; font-size: 16px; font-family: inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(176, 137, 74, .3); transition: background .2s; }
.cc-ci-submit:hover { background: var(--ci-gold-h); }
.cc-ci-submit:disabled { opacity: .7; cursor: default; }
.cc-ci-download { width: 100%; margin-top: 10px; background: transparent; color: var(--ci-blue); border: 1px solid #cfdbe8; padding: 13px; border-radius: 30px; font-weight: 600; font-size: 14.5px; font-family: inherit; cursor: pointer; }
.cc-ci-download:hover { background: #f1f5fa; }
.cc-ci-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cc-ci-success { text-align: center; padding: 24px 6px; }
.cc-ci-success__ico { width: 58px; height: 58px; border-radius: 50%; background: #E9F5EE; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cc-ci-success h3 { font-family: var(--ci-serif); color: var(--ci-navy); font-size: 21px; margin: 0 0 8px; }
.cc-ci-success p { color: var(--ci-ink2); font-size: 14.5px; margin: 0; }
.cc-ci-disclaimer { color: #8aa6bd; font-size: 11px; line-height: 1.5; margin: 14px 0 0; }

/* Secciones inferiores */
.cc-ci-section { padding: clamp(50px, 7vw, 90px) clamp(8px, 2vw, 24px); }
.cc-ci-section--canvas { background: var(--ci-canvas); }
.cc-ci-section--panel { background: #fff; border-radius: clamp(0px, 2vw, 26px); margin: 0 clamp(0px, 1.5vw, 18px); }
.cc-ci-card { background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 14px 40px rgba(22, 57, 92, .08); }
.cc-ci-example-intro { color: #3a4651; font-size: 16.5px; margin: 0 0 24px; }
.cc-ci-example { background: var(--ci-alt); border-radius: 16px; padding: 22px 24px; }
.cc-ci-example__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e2e8ef; }
.cc-ci-example__row span:first-child { color: var(--ci-ink2); font-size: 14.5px; }
.cc-ci-example__row span:last-child { color: var(--ci-navy); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.cc-ci-example__total { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0 4px; }
.cc-ci-example__total span { font-family: var(--ci-serif); color: var(--ci-blue); font-weight: 700; }
.cc-ci-example__total span:first-child { font-size: 17px; font-weight: 600; }
.cc-ci-example__total span:last-child { font-size: 21px; }

/* Tabla oficial */
.cc-ci-table { border: 1px solid #e7ecf2; border-radius: 18px; overflow: hidden; }
.cc-ci-table__head { display: flex; justify-content: space-between; gap: 14px; padding: 16px 24px; background: var(--ci-navy); }
.cc-ci-table__head span:first-child { color: #fff; font-weight: 600; font-size: 13.5px; }
.cc-ci-table__head span:last-child { color: var(--ci-gold-l); font-weight: 600; font-size: 13.5px; }
.cc-ci-table__row { display: flex; justify-content: space-between; gap: 14px; padding: 15px 24px; border-bottom: 1px solid #eef2f6; }
.cc-ci-table__row:last-child { border-bottom: 0; }
.cc-ci-table__row.is-alt { background: var(--ci-alt2); }
.cc-ci-table__row span:first-child { color: #3a4651; font-size: 14.5px; }
.cc-ci-table__val { color: var(--ci-navy); font-weight: 600; font-size: 14.5px; white-space: nowrap; text-align: right; }
.cc-ci-source { color: #9aa8b5; font-size: 12.5px; margin: 16px 0 0; text-align: center; }

/* Qué no incluye */
.cc-ci-noinc { background: var(--ci-navy); border-radius: 24px; padding: clamp(30px, 4vw, 56px); position: relative; overflow: hidden; }
.cc-ci-noinc__blob { position: absolute; top: -50px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: rgba(230, 207, 160, .08); }
.cc-ci-noinc__body { position: relative; }
.cc-ci-noinc__lead { color: #bcd0e2; font-size: 16.5px; margin: 0 0 24px; }
.cc-ci-noinc__lead strong { color: #fff; }
.cc-ci-noinc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.cc-ci-noinc__grid div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 16px 18px; color: #e7eef5; font-size: 14.5px; }
.cc-ci-noinc__cta { background: rgba(230, 207, 160, .14); border: 1px solid rgba(230, 207, 160, .3); border-radius: 16px; padding: 20px 24px; }
.cc-ci-noinc__cta p { color: #fff; font-size: 16px; margin: 0; }
.cc-ci-noinc__cta a { color: var(--ci-gold-l); font-weight: 600; text-decoration: none; }

/* FAQ */
.cc-ci-faq { display: flex; flex-direction: column; gap: 12px; }
.cc-ci-faq__item { background: var(--ci-alt); border-radius: 16px; border: 1px solid #e7ecf2; overflow: hidden; }
.cc-ci-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--ci-serif); font-size: clamp(15.5px, 2vw, 18px); font-weight: 600; color: var(--ci-navy); }
.cc-ci-faq__sign { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ci-blue); display: flex; align-items: center; justify-content: center; font-size: 18px; font-family: var(--ci-sans); line-height: 1; }
.cc-ci-faq__a { margin: 0; padding: 0 22px 22px; color: var(--ci-ink2); font-size: 15px; line-height: 1.65; }

/* Autoría */
.cc-ci-author { background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 14px 40px rgba(22, 57, 92, .08); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; }
.cc-ci-author__person { display: flex; gap: 22px; align-items: center; }
.cc-ci-author__avatar { flex: none; width: 96px; height: 96px; border-radius: 20px; background: linear-gradient(160deg, #5a7aa6, #1e4e7b); display: flex; align-items: center; justify-content: center; }
.cc-ci-author__name { font-family: var(--ci-serif); font-size: 21px; color: var(--ci-navy); font-weight: 600; }
.cc-ci-author__role { color: var(--ci-blue); font-size: 13.5px; font-weight: 600; margin: 3px 0 6px; }
.cc-ci-author__col { color: var(--ci-ink3); font-size: 13px; }
.cc-ci-author__bio { color: var(--ci-ink2); font-size: 15px; margin: 0 0 16px; }
.cc-ci-author__bio strong { color: var(--ci-navy); }
.cc-ci-author__updated { color: #9aa8b5; font-size: 12.5px; }
.cc-ci-author__updated strong { color: var(--ci-ink2); }

/* Responsive */
@media (max-width: 900px) {
  .cc-ci-grid { grid-template-columns: 1fr; }
  .cc-ci-result-col { position: static; }

  /* Consentimiento: casilla y texto usables con el dedo */
  .cc-ci-consent { font-size: 13.5px; align-items: center; }
  .cc-ci-consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 0; flex: none; }

  /* Botones a ancho completo y con altura cómoda */
  .cc-ci-add { width: 100%; justify-content: center; padding: 14px 18px; }
  .cc-ci-cirugia__rm { width: 44px; height: 44px; }

  /* Filas de días: que el nombre no se estrangule contra el input */
  .cc-ci-day { gap: 10px; }
  .cc-ci-input--num { width: 88px; }
}
@media (max-width: 480px) {
  .cc-ci-two { grid-template-columns: 1fr; }
}
