/* ── Eyebrow — idéntico al index ── */
.eyebrow {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 10px;
  text-align: center;
}
.eyebrow--light { color: rgba(216,184,128,.85); }

/* ── Heading de sección ── */
.tax-section-h {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  margin-bottom: clamp(10px, 4vw, 30px);
}
.tax-section-h--sm {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.tax-section-h--light { color: #fff; }

/* ── Fondo de secciones ── */
.section--white { background: var(--paper); }
.section--cream { background: #eaeaea; }
.section--navy  { background: var(--navy); }

/* ══════════════════════════════════════════════════════
   §1  HERO
══════════════════════════════════════════════════════ */
.tax-hero {
  position: relative;
  min-height: calc(100svh - var(--offset-total, 68px));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: none;
}
.hero-video.desktop { display: block; }
.hero-video.mobile  { display: none; }
@media (max-width: 979px) {
  .hero-video.desktop { display: none; }
  .hero-video.mobile  { display: block; }
}

.tax-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(209, 209, 209, 0.468) 0%,
    rgba(207, 207, 207, 0.772)  40%,
    rgba(232, 229, 229, 0.747) 100%
  );
}
.tax-hero__content {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(48px, 8vh, 96px);
  max-width: 670px;
}
.tax-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 0 0 18px;
  max-width: 780px;
}
.tax-hero__lead {
  font-size: clamp(.8rem, 1.6vw, 1rem);
  color: black;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 30px;
}

/* Botón gold */
.btn--gold {
  background: var(--navy);
  color: white;
  border: 2px solid rgba(56, 83, 114, 0.877);
  padding: 13px 32px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform .18s, box-shadow .2s, background .2s;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(216,184,128,.45);
  background: var(--gold-hi);
}

/* ══════════════════════════════════════════════════════
   §2  SERVICIOS
══════════════════════════════════════════════════════ */
.tax-services { padding: clamp(56px, 7vw, 96px) 0; }

.svc-grid { display: grid; gap: 20px; }
.svc-grid.primary {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 100px;
}
.svc-grid.extra {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { 
    .svc-grid.primary { 
        grid-template-columns: 1fr; 
        margin-bottom: 50px;
    } 
}
@media (max-width: 900px) { .svc-grid.extra   { grid-template-columns: 1fr; } }

/* Cards principales — fondo claro */
.svc-card {
  background: var(--paper);
  border: 1px solid var(--gold-border);
  border-top: 3px solid var(--navy);
  border-radius: var(--r-lg);
  padding: 50px 28px 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--s-md);
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(28,55,85,.13); }

.svc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0;
}
.svc-badge {
  text-align: center;
  background: var(--navy);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  margin: 0;
}

/* Cards mini complementarias — fondo navy */
.svc-mini {
  background: var(--paper);
  border: 1px solid var(--gold-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 50px 28px 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--s-md);
  transition: transform .25s, box-shadow .25s;
}
.svc-mini:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.22); }

.svc-mini-title {
  font-size: .95rem;
  font-weight: 800;
  color: black;
  text-align: center;
  margin: 0;
}
.svc-mini-badge {
  text-align: center;
  background: rgba(216,184,128);
  color: black;
  font-size: .75rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-hi);
  margin: 0;
}

/* Listas */
.svc-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: black;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: var(--navy-soft);
}
.svc-list--mini li {
  color: black;
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.07);
}

.ico-check {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  color: var(--gold);
  display: inline-block;
  position: relative;
  margin-top: 2px;
}
.ico-check::before {
  content: '';
  position: absolute; inset: 0;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm-1 15-4-4 1.41-1.41L11 13.17l5.59-5.59L18 9Z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm-1 15-4-4 1.41-1.41L11 13.17l5.59-5.59L18 9Z"/></svg>') no-repeat center / contain;
  background: currentColor;
}
.svc-list--mini .ico-check { color: var(--gold); }

/* Bloque extra */
.svc-extra { margin-top: 16px; }
.svc-extra .eyebrow { margin-top: 15px; }

/* ══════════════════════════════════════════════════════
   §3  PROCESO — carrusel
══════════════════════════════════════════════════════ */
.tax-steps { padding: clamp(56px, 7vw, 96px) 0; }

.ts-viewport{
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  padding: 8px 16px;
}

.ts-track{
  display: flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform .45s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.ts-slide{
  flex: 0 0 100%;
  max-width: 100%;
  padding: 8px;
  opacity: .92;
  transform: scale(.965);
  transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
}
.ts-slide.is-active{ opacity:1; transform:scale(1); }

.ts-media{
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/1;
  background: #f4f4f4;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid gray;
}
.ts-media img{ width:100%; height:100%; object-fit:cover; display:block; }

.ts-body{
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  text-align: center;
}
.ts-num{
  padding:15px 0;
  margin: 0 0 20px;
  font-weight: 700;
  color: white;
  background: black;
  font-size: 20px;
}
.ts-body h3{
  margin: 20px 0 0px;
  font-size: clamp(18px, 2.6vw, 22px);
  color: #111;
  font-weight: 800;
}
.ts-body p{
  padding: 0 150px 40px;
  color: #444;
  line-height: 1.55;
}
.ts-slide.is-active .ts-body{
  box-shadow: 0 14px 34px rgba(0,0,0,.14), 0 6px 14px rgba(0,0,0,.08);
  border-color: color-mix(in srgb, var(--gold-strong, #b8892b) 35%, transparent);
}

.ts-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--gold);
  box-shadow: 0 2px 10px var(--gold-strong);
  display: grid; place-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  user-select: none;
  color:white;
  z-index: 3;
}
.ts-btn:hover{ transform: translateY(-50%) scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.12); }

.ts-prev{ left: 8px; }
.ts-next{ right: 8px; }

@media (max-width: 720px){
  .ts-viewport{ padding: 6px 10px; }
  .ts-btn{ width: 40px; height: 40px; }
  .ts-media{ aspect-ratio: 3/2; }
  .ts-body h3{ padding: 0 10px; }
  .ts-body p{ padding: 0 20px 40px; }
}
@media (max-width: 480px){
  .ts-viewport{ padding: 4px 10px; }
  .ts-btn{ width: 36px; height: 36px; font-size: 18px; }
  .ts-body p{ 
    font-size: 14px;
    text-align: justify;
}
}
@media (prefers-reduced-motion: reduce){
  .ts-track, .ts-slide, .ts-btn{ transition:none; }
}

/* ══════════════════════════════════════════════════════
   §4  POR QUÉ — reemplaza el bloque completo
══════════════════════════════════════════════════════ */
.tax-why { padding: clamp(56px, 7vw, 96px) 0; }

.why-grid {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1100px;
  width: 100%;
}

/* Patrón escalonado desktop: fila 1 y fila 2 alternadas */
.why-grid li:nth-child(1) { grid-column: 1; grid-row: 1; }
.why-grid li:nth-child(2) { grid-column: 2; grid-row: 2; }
.why-grid li:nth-child(3) { grid-column: 3; grid-row: 1; }
.why-grid li:nth-child(4) { grid-column: 4; grid-row: 2; }

.why-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform .22s ease, box-shadow .22s ease;
  min-width: 0;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }

.why-card--dark {
  background: var(--navy);
  border: 2px solid rgba(216,184,128,.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.why-card--gold {
  background: var(--gold);
  border: 2px solid var(--gold-hi);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.why-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.why-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: transparent;
  flex-shrink: 0;
}
.why-icon svg { width: 48px; height: 48px; }
.why-card--dark .why-icon svg { fill: var(--gold); }
.why-card--gold .why-icon svg { fill: var(--navy); }

.why-title {
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.why-card--dark .why-title { color: #fff; }
.why-card--gold .why-title { color: black; }

.why-text {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  opacity: .9;
}
.why-card--dark .why-text { color: rgba(255,255,255,.78); }
.why-card--gold .why-text  { color: black; }

/* ── Tablet ── */
@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
  }
  .why-grid li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .why-grid li:nth-child(2) { grid-column: 2; grid-row: 2; }
  .why-grid li:nth-child(3) { grid-column: 2; grid-row: 1; }
  .why-grid li:nth-child(4) { grid-column: 1; grid-row: 2; }
}

/* ── Móvil: 2x2 sin escalonado, cuadrados exactos ── */
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, calc(50vw));  /* 2 filas, cada una = mitad del viewport */
    max-width: 100%;
  }
  /* Posicionamiento natural 2x2 */
  .why-grid li:nth-child(1) { grid-column: 2; grid-row: 1; }
  .why-grid li:nth-child(2) { grid-column: 1; grid-row: 1; }
  .why-grid li:nth-child(3) { grid-column: 1; grid-row: 2; }
  .why-grid li:nth-child(4) { grid-column: 2; grid-row: 2; }
  /* Con altura fija en el grid, el aspect-ratio puede quedar sin efecto */
  .why-card { aspect-ratio: unset; }

  .why-icon { width: 48px; height: 48px; }
  .why-icon svg { width: 30px; height: 30px; }
  .why-title { font-size: 12px; }
  .why-text  { font-size: 11px; }
  .why-inner { padding: 12px 10px; gap: 6px; }
}