:root {
  --dark: #333333;
  --magenta: #AE4E97;
  --light: #E6E6E6;
  --white: #FFFFFF;
  --muted: #686868;
  --line: #d4d4d4;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  --container: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--white);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.section-anchor {
  scroll-margin-top: 78px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--light);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 218px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 1em;
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.site-nav a:hover {
  color: var(--magenta);
}

.site-nav .nav-contact {
  min-width: 96px;
  justify-content: center;
  color: var(--white);
  background: var(--magenta);
  padding: 0 18px;
}

.site-nav .nav-contact:hover {
  color: var(--white);
  background: #963f82;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--dark);
}

.hero {
  min-height: 660px;
  background-image: url("../img/cover.jpg");
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-color: #F4F4F4;
}

.hero-content {
  display: flex;
  min-height: 750px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 0 54px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 26px;
  color: #303030;
  font-size: clamp(56px, 5vw, 78px);
  font-weight: 800;
  line-height: 0.96;
}

.hero-name,
.hero-copy,
.hero-tags {
  margin: 0;
  font-weight: 400;
}

.hero-name {
  font-size: 14px;
}

.hero-copy {
  margin-top: 4px;
  font-size: 14px;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--magenta);
  font-size: 14px;
  font-weight: 500;
}

.hero-tags img {
  width: 16px;
  height: auto;
  flex: 0 0 16px;
}

.hero-tags span {
  display: inline-block;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  min-width: 156px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #963f82;
}

.btn-secondary {
  color: var(--dark);
  border-color: var(--dark);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

.about {
  padding: 92px 0 88px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.split-bottom {
  grid-template-columns: 1.05fr 0.95fr;
}

.split + .split {
  margin-top: 104px;
}

.split-top .image-panel img {
  aspect-ratio: 783 / 497;
}

.split-bottom .image-panel img {
  aspect-ratio: 800 / 506;
}

.image-panel img,
.why img {
  object-fit: cover;
}

.content-panel {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--magenta);
  font-size: 13px;
  font-weight: 700;
}

h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.08;
}

.content-panel h2 {
  max-width: 620px;
}

.title-line {
  display: block;
  width: 104px;
  height: 4px;
  margin: 24px 0 27px;
  background: var(--magenta);
}

.content-panel p:not(.eyebrow) {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  font-weight: 400;
}

.stats-row {
  display: grid;
  grid-template-columns: 150px 1px 150px;
  align-items: center;
  column-gap: 28px;
  width: max-content;
  margin-top: 48px;
}

.stat-divider {
  width: 1px;
  height: 96px;
  background: #bdbdbd;
}

.stat-box {
  width: 150px;
  text-align: left;
}

.stat-number {
  display: block;
  font-size: clamp(48px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: #AE4E97;
  margin-bottom: 12px;
}

.stat-box span {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: #333333;
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 28px 0 32px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
}

.locations span {
  position: relative;
  padding-left: 32px;
}

.locations span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 21px;
  height: 25px;
  background: url("../img/IconoUbicaci%C3%B3n_1.svg") center / contain no-repeat;
}

.locations span::after {
  content: none;
}

.services {
  padding: 72px 0 86px;
  background: var(--light);
}

.section-heading {
  text-align: center;
}

.section-heading .title-line {
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  min-height: 275px;
  border: 1px solid #cfcfcf;
  background: var(--white);
  padding: 34px 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}

.service-card:hover {
  transform: scale(1.035);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.service-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 42px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.06;
}

.service-card p {
  margin: 0;
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.23;
}

.why {
  padding: 142px 0 112px;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: start;
}

.why-left h2,
.why-right {
  max-width: 585px;
}

.why-photo-stack {
  position: relative;
  width: 78%;
  margin: 72px 0 0 48px;
}

.why-photo-stack img {
  aspect-ratio: 628 / 650;
}

.label-card {
  position: absolute;
  left: -38px;
  bottom: -34px;
  width: 190px;
  min-height: 120px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--magenta);
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.12;
}

.why-right > img {
  width: 100%;
  aspect-ratio: 803 / 495;
  margin-bottom: 70px;
}

.why-copy {
  margin: 0 0 46px;
  font-size: 15px;
  font-weight: 400;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 54px;
  row-gap: 44px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 16px;
  align-items: start;
}

.benefit-icon {
  display: block;
  color: #AE4E97;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  margin-top: 2px;
}

.benefit-text h3 {
  margin: 0 0 8px;
  line-height: 1.15;
}

.benefit-text p {
  margin: 0;
  line-height: 1.45;
}

.cta {
  color: var(--white);
  background: var(--magenta);
}

.cta-overlay {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  background-image: url("../img/necesitas-asesoramiento-contable.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.cta-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(174, 78, 151, 0.20);
}

.cta-overlay .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(30px, 3.8vw, 44px);
}

.cta .title-line {
  margin: 26px auto 28px;
  background: var(--white);
}

.cta p {
  max-width: 710px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
}

.contact {
  padding: 88px 0 76px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: block;
}

.contact-form label span,
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--dark);
  border-radius: 0;
  background: var(--white);
  color: var(--dark);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.contact-form input {
  height: 43px;
}

.contact-form textarea {
  min-height: 174px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--magenta);
}

.contact-form .submit-btn {
  width: 100%;
  border: 0;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-error {
  color: #9d1e1e;
}

.form-message.is-success {
  color: var(--magenta);
}

.contact-info {
  padding: 22px 0 0;
}

.contact-info h2 {
  max-width: 330px;
}

.contact-info p {
  max-width: 470px;
  margin: 0 0 32px;
  font-size: 15px;
  font-weight: 400;
}

.contact-list,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list {
  display: grid;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
}

.contact-list li,
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-list img,
.footer-contact img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.site-footer {
  padding: 78px 0 0;
  background: var(--light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 230px 1px 1fr;
  align-items: center;
  gap: 58px;
}

.footer-brand {
  display: block;
}

.footer-brand img {
  width: 190px;
  height: auto;
  margin-inline: auto;
}

.footer-divider {
  width: 1px;
  height: 142px;
  background: #9f9f9f;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 24px 56px;
  font-size: 14px;
  font-weight: 700;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 58px;
  padding-block: 22px;
  border-top: 1px solid rgba(51, 51, 51, 0.18);
  color: #555;
  font-size: 13px;
  font-weight: 400;
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  color: var(--magenta);
  font-weight: 600;
}

.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  max-width: 260px;
  border-radius: 6px;
  background: var(--white);
  color: var(--dark);
  padding: 0 18px;
  box-shadow: 0 6px 20px rgba(51, 51, 51, 0.16);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: whatsappTip 8s ease forwards;
}

.whatsapp-tip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--white);
  transform: translateY(-50%);
}

.whatsapp-float {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(51, 51, 51, 0.24);
  animation: whatsappPulse 2.8s ease-in-out infinite;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  display: block;
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(51, 51, 51, 0.22), 0 0 0 0 rgba(174, 78, 151, 0.28);
  }
  55% {
    box-shadow: 0 8px 24px rgba(51, 51, 51, 0.22), 0 0 0 12px rgba(174, 78, 151, 0);
  }
}

@keyframes whatsappTip {
  0%,
  68% {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
  100% {
    opacity: 0;
    transform: translateX(10px);
    visibility: hidden;
  }
}

body.animations-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

body.animations-ready .reveal.reveal-fade {
  transform: none;
}

body.animations-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.animations-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .hero {
    background-position: right center;
    background-size: auto 100%;
  }

  .split,
  .why-grid,
  .contact-grid {
    gap: 42px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

  .brand {
    width: 218px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--light);
    padding: 10px 24px 22px;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    justify-content: center;
  }

  .site-nav .nav-contact {
    margin-top: 8px;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero {
    background-image: none;
    background-color: #F4F4F4;
  }

  .hero h1 {
    font-size: clamp(42px, 9vw, 58px);
  }

  .split,
  .split-bottom,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-bottom .content-panel {
    order: 2;
  }

  .split-bottom .image-panel {
    order: 1;
  }

  .content-panel,
  .why-left h2,
  .why-right,
  .contact-info h2,
  .contact-info p {
    max-width: none;
  }

  .why {
    padding-top: 86px;
  }

  .why-photo-stack {
    width: calc(100% - 38px);
    margin-left: 38px;
  }

  .why-right > img {
    margin-bottom: 42px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 34px;
    text-align: center;
  }

  .footer-divider {
    width: min(280px, 100%);
    height: 1px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .stats-row {
    grid-template-columns: minmax(120px, 1fr) 1px minmax(120px, 1fr);
    column-gap: 18px;
    width: 100%;
    max-width: 100%;
    margin-top: 36px;
  }

  .stat-box {
    width: auto;
  }

  .stat-number {
    font-size: 48px;
  }

  .whatsapp-widget {
    display: flex !important;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
  }

  .whatsapp-tip {
    display: none;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .brand {
    width: min(218px, calc(100vw - 92px));
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .hero-tags {
    align-items: center;
    max-width: 100%;
    gap: 6px;
    font-size: 13px;
    line-height: 1.25;
  }

  .hero-tags img {
    width: 14px;
    flex-basis: 14px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }

  .btn {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .about,
  .contact {
    padding: 64px 0;
  }

  .split + .split {
    margin-top: 72px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 24px;
  }

  .locations {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
  }

  .locations span {
    padding-left: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }

  .why {
    padding: 72px 0 86px;
  }

  .why-photo-stack {
    width: 100%;
    margin: 48px 0 0;
  }

  .label-card {
    left: 18px;
    bottom: -30px;
    width: 164px;
    min-height: 100px;
    font-size: 15px;
  }

  .cta-overlay {
    min-height: 360px;
  }

  .cta h2 {
    max-width: 360px;
    margin-inline: auto;
    font-size: 24px;
    line-height: 1.12;
  }

  .contact-grid {
    gap: 34px;
  }

  .contact-form {
    order: 2;
  }

  .contact-info {
    order: 1;
    padding-top: 0;
  }

  .site-footer {
    padding: 58px 0;
  }

}
