html[lang="es"] .visual-guide-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 18%, rgba(196, 151, 55, 0.28), transparent 33%),
    linear-gradient(145deg, #073f31 0%, #0c5b43 52%, #b4872c 130%);
}

html[lang="es"] .visual-guide-image > img {
  opacity: 0;
}

.visual-guide-spanish-cover {
  display: none;
}

html[lang="es"] .visual-guide-spanish-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem;
  color: #fff;
  text-align: center;
}

.visual-guide-spanish-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #f3d58d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.visual-guide-spanish-cover strong {
  max-width: 18rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 1.08;
}

.visual-guide-spanish-cover small {
  max-width: 19rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.35;
}

.spanish-guide-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(1, 27, 21, 0.84);
  backdrop-filter: blur(7px);
}

.spanish-guide-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border: 1px solid rgba(180, 135, 44, 0.45);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(180, 135, 44, 0.14), transparent 32%),
    #fffdf8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  color: #17352b;
}

.spanish-guide-modal-header {
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3.4rem) 1.35rem;
  border-bottom: 1px solid rgba(180, 135, 44, 0.3);
}

.spanish-guide-modal-header p {
  margin: 0 0 0.45rem;
  color: #9a6f1d;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spanish-guide-modal-header h2 {
  margin: 0;
  color: #064a37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
}

.spanish-guide-modal-header .spanish-guide-intro {
  max-width: 48rem;
  margin-top: 0.9rem;
  color: #42564f;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.spanish-guide-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 5vw, 3.4rem) 2rem;
}

.spanish-guide-panel {
  padding: 1.15rem;
  border: 1px solid rgba(11, 87, 64, 0.16);
  border-radius: 15px;
  background: rgba(238, 245, 239, 0.72);
}

.spanish-guide-panel h3 {
  margin: 0 0 0.75rem;
  color: #07503b;
  font-size: 1rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.spanish-guide-panel ul {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spanish-guide-panel li {
  position: relative;
  padding-left: 1.25rem;
  color: #293f37;
  line-height: 1.45;
}

.spanish-guide-panel li::before {
  position: absolute;
  left: 0;
  color: #b4872c;
  content: "✓";
  font-weight: 900;
}

.spanish-guide-note {
  margin: 0 clamp(1.25rem, 5vw, 3.4rem) 2rem;
  padding: 1rem 1.2rem;
  border-radius: 13px;
  background: #064a37;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.spanish-guide-modal-close {
  position: sticky;
  top: 0.8rem;
  z-index: 3;
  float: right;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.8rem 0.8rem -3.55rem 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #064a37;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
}

.spanish-guide-modal-close:focus-visible {
  outline: 3px solid #d8b45d;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .spanish-guide-modal-body {
    grid-template-columns: 1fr;
  }

  .visual-guide-spanish-cover {
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spanish-guide-modal-backdrop {
    backdrop-filter: none;
  }
}
.secure-banner {
  grid-template-columns: auto 1fr !important;
}

/* Invisible links over both Client Portal labels in the approved hero image. */
.hotspot-top-portal {
  width: 14%;
  height: 4.7%;
  top: 0;
  left: 66%;
}

.hero-utility-bar {
  justify-content: flex-end !important;
}

/* Oculta únicamente los tres puntos centrales del carrusel. */
.carousel-dots {
  display: none !important;
}

/* Decorative business marks for the open space in About and Resources. */
@keyframes accurate-round-logo-float {
  0%,
  100% {
    transform: perspective(900px) translateY(0) rotateX(4deg) rotateY(-5deg);
  }

  50% {
    transform: perspective(900px) translateY(-11px) rotateX(1deg) rotateY(4deg);
  }
}

@keyframes accurate-square-logo-float {
  0%,
  100% {
    transform: perspective(900px) translateY(0) rotateX(3deg) rotateY(5deg);
  }

  50% {
    transform: perspective(900px) translateY(-10px) rotateX(1deg) rotateY(-3deg);
  }
}

.about-section,
.resources-section {
  position: relative;
  isolation: isolate;
}

.about-section::before,
.resources-section::before {
  position: absolute;
  z-index: 0;
  top: clamp(4.75rem, 7vw, 6.75rem);
  right: clamp(4rem, 9vw, 10rem);
  width: clamp(12rem, 15vw, 17rem);
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 1px solid rgba(55, 126, 48, 0.3);
  background-color: rgba(255, 255, 255, 0.97);
  background-position: center;
  background-repeat: no-repeat;
  content: "";
  pointer-events: none;
  will-change: transform;
}

.about-section::before {
  border-radius: 50%;
  background-image:
    url("/images/accurate-taxes-logo-cropped.webp"),
    radial-gradient(circle at 34% 26%, #fff 0 34%, #f5f8f0 66%, #dfe8d9 100%);
  background-size: 82% auto, 100% 100%;
  box-shadow:
    0 24px 42px rgba(0, 57, 42, 0.18),
    0 7px 14px rgba(0, 57, 42, 0.11),
    inset 0 3px 2px rgba(255, 255, 255, 0.95),
    inset 0 -12px 20px rgba(26, 92, 54, 0.1);
  animation: accurate-round-logo-float 5.8s ease-in-out infinite;
}

.resources-section::before {
  top: clamp(1.5rem, 2.8vw, 3rem);
  border-radius: 1.65rem;
  background-image:
    url("/images/accurate-taxes-header-logo.webp"),
    linear-gradient(145deg, #fff 0 58%, #eef4e9 100%);
  background-size: 86% auto, 100% 100%;
  box-shadow:
    0 24px 42px rgba(0, 57, 42, 0.17),
    0 7px 14px rgba(0, 57, 42, 0.1),
    inset 3px 3px 3px rgba(255, 255, 255, 0.98),
    inset -10px -12px 20px rgba(24, 90, 50, 0.09);
  animation: accurate-square-logo-float 6.2s ease-in-out infinite;
}

.about-section > *,
.resources-section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  .about-section::before,
  .resources-section::before {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    width: clamp(9.5rem, 30vw, 13rem);
    margin: -1.25rem auto 2.25rem;
  }
}

@media (max-width: 560px) {
  .about-section::before,
  .resources-section::before {
    width: 9.25rem;
    margin-top: -0.75rem;
    margin-bottom: 1.75rem;
  }

  .resources-section::before {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-section::before,
  .resources-section::before {
    animation: none;
  }
}

@media print {
  .about-section::before,
  .resources-section::before {
    animation: none;
    box-shadow: none;
  }
}

/* Floating Accurate Taxes badge in the open green area of the third slide. */
@keyframes accurate-tax-badge-float {
  0%,
  100% {
    transform: translateX(-50%) perspective(900px) translateY(0) rotateX(4deg) rotateY(-5deg);
  }

  50% {
    transform: translateX(-50%) perspective(900px) translateY(-10px) rotateX(1deg) rotateY(4deg);
  }
}

.tax-slide .slide-copy {
  position: relative;
}

.tax-slide .slide-copy::before {
  position: absolute;
  z-index: 3;
  top: clamp(3rem, 5vw, 5rem);
  left: 50%;
  display: grid;
  width: clamp(9rem, 11.5vw, 11.75rem);
  aspect-ratio: 1;
  place-items: center;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.24) 0 7%, transparent 25%),
    linear-gradient(145deg, #147252 0%, #075b3d 48%, #003c2d 100%);
  box-shadow:
    0 26px 44px rgba(0, 27, 20, 0.38),
    0 9px 17px rgba(0, 27, 20, 0.3),
    inset 0 3px 3px rgba(255, 255, 255, 0.27),
    inset 0 -14px 22px rgba(0, 24, 18, 0.3);
  color: #fff;
  content: "ACCURATE\A TAXES";
  white-space: pre;
  text-align: center;
  text-shadow: 0 3px 5px rgba(0, 24, 18, 0.55);
  letter-spacing: 0.055em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 1.65vw, 1.8rem);
  font-weight: 900;
  line-height: 0.92;
  pointer-events: none;
  will-change: transform;
  animation: accurate-tax-badge-float 5.9s ease-in-out infinite;
}

@media (max-width: 820px) {
  .tax-slide .slide-copy::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tax-slide .slide-copy::before {
    animation: none;
    transform: translateX(-50%);
  }
}

@media print {
  .tax-slide .slide-copy::before {
    display: none;
  }
}
