/* ------------------------------------------------------------------------
   Taxes Personales — Hero editorial
   Scoped exclusively under .taxes-hero. Does not touch .service-hero or any
   other shared component, so no other service page is affected.

   Background photo technique mirrors the home hero (.hero-v2 in landing.css):
   on desktop the image is its own full-bleed layer sized to exactly
   `calc(100vh - 147px)` (the fixed header's height), so it fills the first
   screen edge-to-edge with no gap above/below and no accidental scroll past
   it — the copy/card sit in an absolutely-positioned layer on top, matching
   that same box exactly. On tablet/mobile the image reverts to a simple
   full-bleed backdrop behind normal-flow content, same as before.
   -------------------------------------------------------------------------- */

.taxes-hero {
  --etika-dark: #236978;
  --etika-teal: #176A74;
  --etika-aqua: #43B8BA;
  --etika-orange: #EB6E25;
  --etika-muted: #234F59;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding-top: 147px;
  background: #eaf4f4;
}

.taxes-hero-media {
  position: relative;
  width: 100%;
  height: calc(100vh - 147px);
  min-height: 600px;
  overflow: hidden;
  background-image: url("../../assets/images/hero-taxes-personales.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.taxes-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.66) 38%, rgba(255, 255, 255, 0) 58%);
}

.taxes-hero-container {
  position: absolute;
  top: 147px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: stretch;
}

/* ---- Left column ---- */

.taxes-hero-left {
  padding-top: 34px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  overflow-y: auto;
}

.taxes-hero-kicker {
  margin: 0 0 18px;
  font-family: "Montserrat", var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--etika-aqua);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(255, 255, 255, 0.7);
}

.taxes-hero-title {
  margin: 0;
  max-width: 650px;
  font-family: "Montserrat", var(--font-display);
  font-size: clamp(40px, 3.8vw, 70px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -2.5px;
  color: var(--etika-dark);
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.6);
}

.taxes-hero-title span {
  color: var(--etika-orange);
}

.taxes-hero-desc {
  margin: 25px 0 0;
  max-width: 600px;
  font-family: "Inter", var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--etika-muted);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(255, 255, 255, 0.6);
}

.taxes-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.taxes-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 28px;
  font-family: "Montserrat", var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.taxes-hero-btn-primary {
  border: none;
  background: var(--etika-orange);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(235, 110, 37, 0.18);
}

.taxes-hero-btn-primary:hover,
.taxes-hero-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(235, 110, 37, 0.26);
}

.taxes-hero-btn-secondary {
  border: 1.5px solid var(--etika-teal);
  background: rgba(255, 255, 255, 0.85);
  color: var(--etika-teal);
}

.taxes-hero-btn-secondary:hover,
.taxes-hero-btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: var(--etika-teal);
  color: #ffffff;
}

.taxes-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.taxes-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.taxes-hero-benefits svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--etika-teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.taxes-hero-benefits span {
  font-family: "Montserrat", var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--etika-teal);
}

/* ---- Right column ---- */

.taxes-hero-right {
  position: relative;
}

/* ---- Floating process card ---- */

.taxes-hero-card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 296px;
  box-sizing: border-box;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 59, 70, 0.16);
  backdrop-filter: blur(6px);
}

.taxes-hero-card-header {
  flex: 0 0 auto;
}

.taxes-hero-card-header > span {
  font-family: "Montserrat", var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--etika-teal);
  text-transform: uppercase;
}

.taxes-hero-card-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.taxes-hero-card-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #D7E4E6;
  color: var(--etika-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.taxes-hero-card-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.taxes-hero-card-arrow:hover,
.taxes-hero-card-arrow:focus-visible {
  background: #F4F9FA;
  border-color: var(--etika-aqua);
}

.taxes-hero-card-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.taxes-hero-card-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #D7E4E6;
  cursor: pointer;
  transition: background 0.2s ease;
}

.taxes-hero-card-dots button.is-active {
  background: var(--etika-teal);
}

.taxes-hero-card-body {
  position: relative;
  flex: 0 0 auto;
  margin-top: 16px;
  min-height: 90px;
}

.taxes-hero-card-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.taxes-hero-card-step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.taxes-hero-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--etika-teal);
}

.taxes-hero-card-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.taxes-hero-card-text {
  min-width: 0;
}

.taxes-hero-card-num {
  display: block;
  font-family: "Montserrat", var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--etika-aqua);
}

.taxes-hero-card-step h3 {
  margin: 4px 0 0;
  max-width: 165px;
  font-family: "Montserrat", var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--etika-teal);
}

.taxes-hero-card-step p {
  margin: 6px 0 0;
  max-width: 190px;
  font-family: "Inter", var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #66848B;
}

/* ---- Motion ---- */

@media (prefers-reduced-motion: reduce) {
  .taxes-hero-btn,
  .taxes-hero-card-arrow,
  .taxes-hero-card-dots button {
    transition: none;
  }
}

/* ---- Tablet ----
   Image reverts to a plain full-bleed backdrop (no viewport-height math,
   no absolute overlay) and content returns to normal document flow, exactly
   like before this change — only desktop's fit behavior was in scope. */

@media (max-width: 1180px) {
  .taxes-hero {
    padding-top: 160px;
  }

  .taxes-hero-media {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }

  .taxes-hero-scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 55%, rgba(255, 255, 255, 0.55) 100%);
  }

  .taxes-hero-container {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .taxes-hero-left {
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: visible;
  }

  .taxes-hero-title {
    font-size: 52px;
  }

  .taxes-hero-right {
    min-height: 280px;
  }

  .taxes-hero-card {
    right: 24px;
    top: auto;
    bottom: 30px;
    transform: none;
    width: min(296px, calc(100% - 48px));
    height: auto;
  }
}

/* ---- Mobile ---- */

@media (max-width: 720px) {
  .taxes-hero {
    padding-top: 132px;
  }

  .taxes-hero-scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 60%, rgba(255, 255, 255, 0.6) 100%);
  }

  .taxes-hero-container {
    padding: 24px 22px 32px;
  }

  .taxes-hero-title {
    font-size: clamp(36px, 10vw, 44px);
    letter-spacing: -1.4px;
  }

  .taxes-hero-desc {
    font-size: 15.5px;
  }

  .taxes-hero-actions {
    width: 100%;
  }

  .taxes-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .taxes-hero-benefits {
    gap: 16px 22px;
  }

  .taxes-hero-right {
    min-height: 260px;
  }

  .taxes-hero-card {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 25px;
    padding: 22px;
  }
}
