/* ========================================
   Señor de los Taxes — style.css
   Mobile-first, single breakpoint at 768px
   ======================================== */

/* --- Custom Properties --- */
:root {
  --primary: #1b6b4a;
  --primary-dark: #145438;
  --accent: #c9952b;
  --accent-light: #f5e6c8;
  --bg: #faf8f5;
  --bg-alt: #f0ede8;
  --text: #1a1a1a;
  --text-light: #555;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --container: 900px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 48px;
  line-height: 1.3;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: var(--white);
}

.button.primary:hover {
  background: var(--primary-dark);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
  height: 48px;
  width: auto;
}

.header-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-height: 40px;
  align-self: center;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
  background: var(--accent-light);
  padding: 1.25rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.check::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ========================================
   QUIZ
   ======================================== */
.quiz-section {
  background: var(--bg-alt);
}

.quiz-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.quiz-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Progress bar */
.quiz-progress {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 14.28%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quiz-step-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Steps show/hide */
.quiz-step { display: none; }

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 { margin-bottom: 0.5rem; }

.quiz-step > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Quiz option buttons */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: var(--white);
}

.quiz-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.quiz-option.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Back button */
.quiz-back {
  display: none;
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
}

.quiz-back:hover { color: var(--primary); }
.quiz-back.visible { display: inline-block; }

/* ========================================
   QUIZ OUTPUT
   ======================================== */
.quiz-output-section {
  display: none;
  background: var(--bg-alt);
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.quiz-output-section.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quiz-result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.quiz-result-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.output-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
}

.output-block h3 {
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.output-block p {
  line-height: 1.7;
}

.result-body {
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  padding: 0 0.25rem;
}

.result-cta {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-section {
  background: var(--white);
}

.pricing-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.pricing-breakdown {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-alt);
}

.pricing-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.pricing-item h3 { margin-bottom: 0.25rem; }

.pricing-item p {
  color: var(--text-light);
  line-height: 1.7;
}

.pricing-total {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pricing-total-note {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.process-section {
  background: var(--bg-alt);
}

.process-steps {
  margin-top: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.process-step:last-child { padding-bottom: 0; }

/* Vertical connector line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.process-step h3 { margin-bottom: 0.25rem; }

.process-step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-section {
  background: var(--primary);
  padding: 3.5rem 0;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin-bottom: 0.375rem;
}

.contact-form-wrapper > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   WHAT YOU NEED
   ======================================== */
.docs-section {
  background: var(--white);
}

.docs-intro {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.docs-list {
  list-style: none;
  margin-bottom: 0;
}

.docs-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.docs-list li:last-child { margin-bottom: 0; }

.docs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
  background: var(--bg-alt);
}

.faq-list {
  margin-top: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.75;
}

/* ========================================
   WHATSAPP SHARE
   ======================================== */
.share-section {
  text-align: center;
  background: var(--white);
}

.share-section p {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  padding: 0.875rem 2.5rem;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
}

/* ========================================
   ABOUT
   ======================================== */
.about-section {
  background: var(--bg-alt);
}

.about-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.footer-tagline {
  margin-bottom: 0.25rem;
}

.footer-location {
  margin-bottom: 0.125rem;
}

.footer-appt {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-nav {
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

/* ========================================
   DESKTOP
   ======================================== */
@media (min-width: 768px) {

  .section { padding: 5rem 0; }

  .hero { padding: 5rem 0 3rem; }

  .trust-strip-inner {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
  }

  .quiz-wrapper { padding: 2.5rem; }

  .quiz-result-card { padding: 2.5rem; }

  .contact-form-wrapper { padding: 2.5rem; }

  .pricing-breakdown { padding: 2rem; }

  .result-cta {
    width: auto;
    display: inline-block;
  }
}
