/* ================================================
   Calculadora Cuota Autónomos 2026
   Prefix: .sca-
   Reuses: landings.css (.btn, .btn-primary, .container,
           .section-padding, .section-title, .section-subtitle,
           .text-center, CSS custom properties)
   ================================================ */

/* --- HERO --- */
.landing-hero-section.sca-hero-section {
  padding-top: 10.5rem;
}

.sca-hero-content .section-title {
  color: #182038;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
}

.sca-hero-content .section-subtitle {
  color: var(--text-secondary);
  margin: 1rem auto 0;
  max-width: 620px;
  font-size: 1.1rem;
}

.sca-hero-badge {
  display: inline-block;
  background: rgba(3, 76, 140, 0.1);
  color: #034c8c;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(3, 76, 140, 0.25);
}

/* --- CALCULATOR SECTION --- */
.sca-calculator-section {
  position: relative;
}

.sca-card {
  background: var(--bg-white);
  border-radius: 16px;
  -webkit-box-shadow: 0 4px 32px rgba(15, 23, 42, 0.09);
          box-shadow: 0 4px 32px rgba(15, 23, 42, 0.09);
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.sca-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #034c8c;
  margin-bottom: 1.75rem;
}

.sca-form-group {
  margin-bottom: 1.25rem;
}

.sca-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.sca-input,
.sca-select {
  width: 100%;
  padding: 0.78rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-main);
  -webkit-transition: border-color 0.18s, -webkit-box-shadow 0.18s;
  transition: border-color 0.18s, -webkit-box-shadow 0.18s;
  transition: border-color 0.18s, box-shadow 0.18s;
  transition: border-color 0.18s, box-shadow 0.18s, -webkit-box-shadow 0.18s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.sca-input:focus,
.sca-select:focus {
  outline: none;
  border-color: var(--primary-color);
  -webkit-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
          box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.sca-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* --- RESULT BLOCK --- */
.sca-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border-color);
  text-align: center;
}

.sca-result-idle {
  color: var(--text-secondary);
  font-size: 0.97rem;
  padding: 0.75rem 0;
  margin: 0;
}

.sca-result-main {
  -webkit-animation: scaFadeIn 0.3s ease;
          animation: scaFadeIn 0.3s ease;
}

/* --- BREAKDOWN (operation detail) --- */
.sca-breakdown {
  background: #f0f6ff;
  border: 1px solid rgba(3, 76, 140, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.sca-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  line-height: 1.9;
}

.sca-breakdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 0;
}

.sca-breakdown-value {
  font-size: 0.97rem;
  font-weight: 700;
  color: #034c8c;
  white-space: nowrap;
  flex-shrink: 0;
}

.sca-breakdown-divider {
  border-top: 1.5px dashed rgba(3, 76, 140, 0.25);
  margin: 0.6rem 0 0;
}

@-webkit-keyframes scaFadeIn {
  from { opacity: 0; -webkit-transform: translateY(6px); transform: translateY(6px); }
  to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes scaFadeIn {
  from { opacity: 0; -webkit-transform: translateY(6px); transform: translateY(6px); }
  to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.sca-result-amount {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  color: #034c8c;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sca-result-sublabel {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0.5rem 0 1.75rem;
}

.sca-result-cta-copy {
  font-size: 1rem;
  color: var(--text-main);
  max-width: 440px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.sca-cta-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  text-decoration: none;
  background: #034c8c;
  color: #fff;
  border: 1px solid #034c8c;
}

.sca-cta-btn:hover,
.sca-lead-btn:hover {
  background: #023764;
  border-color: #023764;
  color: #fff;
}

.sca-result-disclaimer {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  line-height: 1.55;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- LEAD MAGNET --- */
.sca-lead-magnet {
  background: var(--bg-white);
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
}

.sca-lead-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sca-lead-inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.sca-lead-inner > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.sca-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sca-lead-input {
  width: 100%;
  padding: 0.78rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: border-color 0.18s, -webkit-box-shadow 0.18s;
  transition: border-color 0.18s, -webkit-box-shadow 0.18s;
  transition: border-color 0.18s, box-shadow 0.18s;
  transition: border-color 0.18s, box-shadow 0.18s, -webkit-box-shadow 0.18s;
}

.sca-lead-input:focus {
  outline: none;
  border-color: var(--primary-color);
  -webkit-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
          box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.sca-lead-btn {
  width: 100%;
  white-space: nowrap;
  background: #034c8c;
  color: #fff;
  border: 1px solid #034c8c;
}

.sca-lead-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* --- SEO / CONTEXT SECTION --- */
.sca-context {
  background: var(--bg-light);
}

.sca-context-inner {
  max-width: 680px;
  margin: 0 auto;
}

.sca-context-inner h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.sca-context-inner p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sca-context-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.sca-context-link:hover {
  color: var(--primary-hover);
}

/* Accessible visually-hidden pattern */
.sca-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- RESPONSIVE: tablet / desktop --- */
@media (min-width: 640px) {
  .landing-hero.sca-hero-section {
    padding-top: 11.5rem;
  }

  .sca-card {
    padding: 2.5rem 3rem;
  }

  .sca-lead-form {
    flex-direction: row;
  }

  .sca-lead-input {
    flex: 1;
  }

  .sca-lead-btn {
    width: auto;
  }

  .sca-cta-btn {
    display: inline-block;
    width: auto;
    padding: 1rem 2.5rem;
  }
}
