/* ============================================================
   Calculadoras de indemnización — estilo Estudio Veronica Trivisonno
   Paleta negro + dorado. No depende de clases del template (prefijo vcalc-).
   ============================================================ */

/* ---------- Hero ---------- */
.vcalc-page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 177, 104, .10), transparent 60%),
    #050505;
  border-bottom: 1px solid rgba(212, 177, 104, .18);
}
/* Hero con imagen de fondo (velo oscuro encima para legibilidad) */
.vcalc-page-hero.has-img {
  background-color: #050505;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.vcalc-page-hero .container { position: relative; z-index: 2; }
.vcalc-overline {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600;
  color: #d9b46a; margin-bottom: 18px; font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}
.vcalc-overline::before, .vcalc-overline::after {
  content: ""; width: 34px; height: 1px; background: rgba(212, 177, 104, .5);
}
.vcalc-page-hero h1 {
  font-family: "Spectral", Georgia, serif; color: #f6f9ff;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 14px; font-weight: 700;
}
.vcalc-page-hero .vcalc-sub {
  color: #cdd6ea; max-width: 640px; margin: 0 auto 26px; font-size: 1.02rem; line-height: 1.6;
}
.vcalc-down {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 40px;
  background: linear-gradient(135deg, #e6c683, #c79a4f); color: #1a1208;
  font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  border: 1px solid rgba(212, 177, 104, .6); transition: transform .2s, box-shadow .2s;
}
.vcalc-down:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); color: #1a1208; }

/* ---------- Sección calculadora ---------- */
.vcalc-section { padding: 72px 0; background: #050505; }
.vcalc-wrap { max-width: 720px; margin: 0 auto; padding: 0 18px; }
.vcalc-head { text-align: center; margin-bottom: 34px; }
.vcalc-head h2 { font-family: "Spectral", Georgia, serif; color: #f6f9ff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.vcalc-head h2 em { color: #d9b46a; font-style: italic; }
.vcalc-head p { color: #aeb7cb; max-width: 560px; margin: 0 auto; line-height: 1.6; }

.vcalc-card {
  background: linear-gradient(180deg, rgba(20, 24, 38, .92), rgba(8, 10, 18, .94));
  border: 1px solid rgba(212, 177, 104, .28);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

/* ---------- Campos ---------- */
.vcalc-field { margin-bottom: 20px; }
.vcalc-field > label { display: block; color: #eaf0ff; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.vcalc-opt { color: #8b93a7; font-weight: 500; font-size: .82rem; }
.vcalc-field input[type=number],
.vcalc-field select {
  width: 100%; background: #0b0e16; border: 1.5px solid rgba(212, 177, 104, .25);
  border-radius: 12px; padding: 13px 15px; color: #f6f9ff; font-size: 1rem;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; outline: none;
}
.vcalc-field input[type=number]:focus,
.vcalc-field select:focus { border-color: #d9b46a; box-shadow: 0 0 0 3px rgba(212, 177, 104, .18); }
.vcalc-field select option,
.vcalc-field select optgroup { background: #0b0e16; color: #f6f9ff; }
.vcalc-field small { display: block; color: #7e879c; font-size: .8rem; margin-top: 7px; line-height: 1.45; }

/* Prefijo/sufijo ($ y %) */
.vcalc-affix-wrap {
  display: flex; align-items: stretch; background: #0b0e16;
  border: 1.5px solid rgba(212, 177, 104, .25); border-radius: 12px; overflow: hidden;
}
.vcalc-affix-wrap:focus-within { border-color: #d9b46a; box-shadow: 0 0 0 3px rgba(212, 177, 104, .18); }
.vcalc-affix-wrap input[type=number] {
  border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important;
}
.vcalc-affix {
  display: flex; align-items: center; padding: 0 14px; color: #d9b46a; font-weight: 700;
  background: rgba(212, 177, 104, .08);
}

/* Toggle (segmentado) */
.vcalc-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.vcalc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vcalc-toggle label {
  flex: 1; min-width: 130px; text-align: center; cursor: pointer; margin: 0;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(212, 177, 104, .25);
  background: #0b0e16; color: #cdd6ea; font-weight: 600; transition: all .18s;
}
.vcalc-toggle input:checked + label { border-color: #d9b46a; background: rgba(212, 177, 104, .14); color: #f6f9ff; }

/* Botón calcular */
.vcalc-submit {
  width: 100%; margin-top: 6px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #e6c683, #c79a4f); color: #1a1208;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.vcalc-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }

/* ---------- Resultado ---------- */
.vcalc-result {
  margin-top: 24px; text-align: center; padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(212, 177, 104, .12), rgba(8, 10, 18, .7));
  border: 1px solid rgba(212, 177, 104, .45);
}
.vcalc-result[hidden] { display: none; }
.vcalc-result-label { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: #d9b46a; margin-bottom: 8px; }
.vcalc-result-amount { display: block; font-family: "Spectral", Georgia, serif; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; color: #f6f9ff; }
.vcalc-result-note { color: #aeb7cb; font-size: .9rem; line-height: 1.55; margin: 12px auto 18px; max-width: 470px; }
.vcalc-result-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 40px;
  background: #1c1c1c; border: 1px solid rgba(212, 177, 104, .6); color: #d9b46a; font-weight: 700; text-decoration: none; transition: all .2s;
}
.vcalc-result-cta:hover { background: #262626; color: #e6c683; }

/* ---------- Disclaimer ---------- */
.vcalc-disclaimer {
  display: flex; gap: 12px; align-items: flex-start; max-width: 720px; margin: 24px auto 0;
  padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}
.vcalc-disclaimer i { color: #d9b46a; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.vcalc-disclaimer p { margin: 0; color: #9aa3b6; font-size: .85rem; line-height: 1.6; }

/* ---------- Cómo se calcula ---------- */
.vcalc-legal { padding: 64px 0; background: #070707; border-top: 1px solid rgba(255, 255, 255, .05); }
.vcalc-legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.vcalc-legal-block { margin-bottom: 34px; }
.vcalc-legal-block h2 { font-family: "Spectral", Georgia, serif; color: #f6f9ff; font-size: 1.5rem; margin: 0 0 12px; }
.vcalc-legal-block p { color: #b9c2d6; line-height: 1.7; margin: 0 0 12px; }
.vcalc-legal-block strong { color: #eaf0ff; }
.vcalc-legal-list { margin: 0 0 12px; padding-left: 0; list-style: none; }
.vcalc-legal-list li { position: relative; padding-left: 24px; color: #b9c2d6; line-height: 1.6; margin-bottom: 8px; }
.vcalc-legal-list li::before { content: "•"; position: absolute; left: 4px; top: 0; color: #d9b46a; font-weight: 700; }

/* ---------- CTA ---------- */
.vcalc-cta-section { padding: 64px 0; background: #050505; }
.vcalc-cta {
  max-width: 720px; margin: 0 auto; text-align: center; padding: 42px 28px; border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 177, 104, .12), transparent 65%), rgba(20, 24, 38, .6);
  border: 1px solid rgba(212, 177, 104, .3);
}
.vcalc-cta-icon {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; background: rgba(212, 177, 104, .12); border: 1px solid rgba(212, 177, 104, .4); color: #d9b46a; font-size: 1.6rem;
}
.vcalc-cta h2 { font-family: "Spectral", Georgia, serif; color: #f6f9ff; font-size: 1.7rem; margin: 0 0 12px; }
.vcalc-cta p { color: #b9c2d6; line-height: 1.6; max-width: 520px; margin: 0 auto 22px; }
.vcalc-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 40px;
  background: linear-gradient(135deg, #e6c683, #c79a4f); color: #1a1208; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; transition: transform .2s, box-shadow .2s;
}
.vcalc-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); color: #1a1208; }

@media (max-width: 480px) {
  .vcalc-page-hero { padding: 130px 0 56px; }
  .vcalc-card { padding: 20px; }
  .vcalc-toggle label { min-width: 110px; }
}
