/* =========================
   Calculadora
   ========================= */
.card-calculadora,
form.card.card-calculadora{
  max-width:470px;
  margin:0 auto 24px;
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:2px;
  border-radius:24px;
  border:1px solid rgba(37,99,235,0.14);
  background:
    radial-gradient(480px 170px at 20% -20px, rgba(37,99,235,0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.09),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.card-calculadora label{
  margin-top:14px;
  margin-bottom:3px;
  font-size:0.83rem;
  font-weight:800;
  color:var(--heading);
  text-transform:uppercase;
  letter-spacing:.03em;
}

.card-calculadora input,
.card-calculadora select{
  width:100%;
  min-height:52px;
  margin-top:8px;
  padding:13px 15px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,0.10);
  background:rgba(255,255,255,0.98);
  color:var(--text);
  font-size:0.98rem;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  box-shadow:
    inset 0 1px 2px rgba(15,23,42,0.03),
    0 1px 0 rgba(255,255,255,0.8);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.card-calculadora input::placeholder{
  color:#8ea0b5;
}

.card-calculadora input:hover,
.card-calculadora select:hover{
  border-color:rgba(37,99,235,0.22);
}

.card-calculadora input:focus,
.card-calculadora select:focus{
  border-color:rgba(37,99,235,0.40);
  box-shadow:
    0 0 0 5px rgba(37,99,235,0.11),
    inset 0 1px 2px rgba(15,23,42,0.03);
}

.input-calculadora{
  text-align:right;
  font-size:1.48rem;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--heading);
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.card-calculadora .btn-soft,
.card-calculadora button:not(.nav-link-dropdown){
  width:100%;
  min-height:54px;
  margin-top:24px;
  border:none;
  border-radius:18px;
  font-size:1rem;
  font-weight:800;
  letter-spacing:-0.01em;
  box-shadow:0 14px 28px rgba(37,99,235,0.20);
}

/* =========================
   Resultado calculadora
   ========================= */
.card-resultado,
section.card.card-resultado{
  max-width:470px;
  margin:0 auto 18px;
  padding:26px;
  border-radius:24px;
  border:1px solid rgba(31,157,85,0.15);
  background:
    radial-gradient(400px 160px at 0% -20px, rgba(31,157,85,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
  color:var(--text);
  box-shadow:
    0 16px 36px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.74);
}

.card-resultado h2{
  margin:0 0 16px;
  font-size:1.06rem;
  font-weight:800;
  color:var(--heading);
}

.card-resultado h2::after{
  content:"";
  display:block;
  width:44px;
  height:2px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(31,157,85,0.95), rgba(31,157,85,0.25));
}

.card-resultado ul{
  list-style:none;
  margin:0;
  padding:0;
}

.card-resultado li{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  font-size:1rem;
  color:var(--muted);
  border-bottom:1px solid rgba(15,23,42,0.06);
}

.card-resultado li:last-child{
  margin-top:10px;
  padding-top:18px;
  border-top:1px solid rgba(15,23,42,0.10);
  border-bottom:none;
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--heading);
}

.card-resultado li span:last-child,
.card-resultado li strong,
.card-resultado li b{
  color:var(--heading);
  font-weight:800;
  letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}



/* =========================
   Satellite guide layout
   ========================= */
.guide-card{
  max-width:960px;
}

.guide-card > h2{
  margin-bottom:16px;
}

.guide-section + .guide-section{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(15,23,42,0.08);
}

.guide-section h3{
  margin-top:0;
  margin-bottom:12px;
}

.guide-section p,
.guide-section li{
  line-height:1.78;
}

.formula-list,
.example-list{
  margin:0;
  padding-left:22px;
}

.formula-list li + li,
.example-list li + li{
  margin-top:8px;
}

.formula-line{
  color:var(--heading);
  font-weight:700;
}

.vat-types-card,
.quick-table-card{
  max-width:960px;
}

.vat-types-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:16px;
  margin-top:18px;
}

.vat-type-item{
  padding:18px;
  border:1px solid rgba(37,99,235,0.10);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,250,255,1) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.8);
}

.vat-type-item.is-featured{
  border-color:rgba(37,99,235,0.22);
  box-shadow:
    0 10px 24px rgba(37,99,235,0.09),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.vat-type-rate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  min-height:38px;
  margin-bottom:14px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0.06) 100%);
  color:var(--heading);
  font-size:1.1rem;
  font-weight:800;
  letter-spacing:-0.02em;
}

.vat-type-item h3{
  margin-bottom:8px;
}

.vat-type-item p{
  margin-bottom:0;
}

.table-wrap{
  width:100%;
  overflow-x:auto;
  margin-top:16px;
}

.quick-table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}

.quick-table th,
.quick-table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid rgba(15,23,42,0.07);
  font-variant-numeric:tabular-nums;
}

.quick-table thead th{
  background:linear-gradient(180deg, rgba(37,99,235,0.09) 0%, rgba(37,99,235,0.04) 100%);
  color:var(--heading);
  font-size:0.92rem;
  font-weight:800;
}

.quick-table tbody tr:last-child td{
  border-bottom:none;
}

.quick-table tbody td:last-child{
  color:var(--heading);
  font-weight:800;
}

@media (max-width: 768px){
  .guide-card,
  .vat-types-card,
  .quick-table-card{
    max-width:100%;
  }

  .vat-types-grid{
    grid-template-columns:1fr;
  }

  .quick-table th,
  .quick-table td{
    padding:12px 13px;
  }
}

/* =========================
   SEO support blocks
   ========================= */
.form.card.card-calculadora,
.card-calculadora,
form.card.card-calculadora{
  box-shadow:0 14px 36px rgba(15,23,42,0.08);
}

.dynamic-examples-card,
.faq-card{
  max-width:960px;
}

.dynamic-examples-intro{
  margin-bottom:18px;
}

.dynamic-examples-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:16px;
}

.dynamic-example-item{
  padding:18px;
  border:1px solid rgba(37,99,235,0.12);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,1) 100%);
}

.dynamic-example-item h3{
  margin-bottom:14px;
}

.dynamic-example-item dl{
  margin:0;
}

.dynamic-example-item dl > div + div{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(15,23,42,0.08);
}

.dynamic-example-item dt{
  color:var(--muted);
  font-size:0.92rem;
}

.dynamic-example-item dd{
  margin:4px 0 0;
  color:var(--heading);
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

.faq-list{
  display:grid;
  gap:12px;
}

.faq-item{
  border:1px solid rgba(15,23,42,0.08);
  border-radius:16px;
  background:rgba(255,255,255,0.72);
  overflow:hidden;
}

.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:18px 48px 18px 18px;
  position:relative;
  color:var(--heading);
  font-weight:800;
}

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

.faq-item summary::after{
  content:'+';
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:1.3rem;
  color:var(--primary-deep);
}

.faq-item[open] summary::after{
  content:'–';
}

.faq-answer{
  padding:0 18px 18px;
}

.faq-answer p{
  margin:0;
}

@media (max-width: 768px){
  .dynamic-examples-grid{
    grid-template-columns:1fr;
  }
}




/* ==== Editorial continuity for inner pages ==== */
.country-editorial-flow,
.category-editorial-flow{
  width:100%;
  max-width:960px;
  margin:0 auto;
}

.country-editorial-flow .editorial-section--plain,
.category-editorial-flow .editorial-section--plain{
  margin:0 0 34px 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.country-editorial-flow .editorial-section--plain::before,
.category-editorial-flow .editorial-section--plain::before{
  display:none !important;
}

.country-editorial-flow .editorial-section--plain + .editorial-section--plain,
.category-editorial-flow .editorial-section--plain + .editorial-section--plain{
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:0 !important;
}

.country-editorial-flow h2,
.category-editorial-flow h2{
  margin-left:0 !important;
  padding-left:0 !important;
  text-indent:0 !important;
}

.country-editorial-flow .country-categories-card .cards-grid{
  margin-top:18px;
}

.country-editorial-flow .category-tool-card{
  border:1px solid rgba(15,23,42,0.08);
  border-radius:18px;
  background:rgba(255,255,255,0.74);
  box-shadow:none;
}

.country-editorial-flow .category-tool-card:hover{
  transform:none;
  border-color:rgba(37,99,235,0.15);
  box-shadow:none;
}

.category-editorial-flow .faq-card,
.category-editorial-flow .related-links-card,
.category-editorial-flow .guide-card,
.category-editorial-flow .quick-table-card,
.country-editorial-flow .country-categories-card,
.country-editorial-flow .country-guide-card{
  max-width:960px;
}

.category-editorial-flow .quick-table{
  border-radius:16px;
}

@media (max-width: 768px){
  .country-editorial-flow .editorial-section--plain,
  .category-editorial-flow .editorial-section--plain{
    margin-bottom:28px !important;
  }
}

/* ==== Final global alignment + visual consistency ==== */
.guide-card,
.editorial-card,
.country-guide-card,
.category-guide-card,
.quick-table-card,
.related-links-card,
.faq-card,
.dynamic-examples-card,
.vat-types-card,
.country-categories-card{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.country-editorial-flow,
.category-editorial-flow,
.home-editorial-flow,
.editorial-flow{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.country-editorial-flow > *,
.category-editorial-flow > *,
.home-editorial-flow > *,
.editorial-flow > *{
  margin-left:0 !important;
  margin-right:0 !important;
}

.country-editorial-flow h2,
.country-editorial-flow h3,
.country-editorial-flow p,
.country-editorial-flow ul,
.country-editorial-flow ol,
.category-editorial-flow h2,
.category-editorial-flow h3,
.category-editorial-flow p,
.category-editorial-flow ul,
.category-editorial-flow ol,
.editorial-flow h2,
.editorial-flow h3,
.editorial-flow p,
.editorial-flow ul,
.editorial-flow ol{
  margin-left:0 !important;
}
