/*--------------------------------------------------------------
LD Contadores & Asociados
Sistema de diseño y estilos del sitio
---------------------------------------------------------------*/

/*--------------------------------------------------------------
# Tokens
---------------------------------------------------------------*/
:root {
  /* Marca */
  --ink: #030B60;
  --ink-deep: #02083C;
  --ink-soft: #0B1A4A;
  --brand: #1759A3;
  --brand-light: #7FB2E8;

  /* Texto y superficies */
  --text: #333C4A;
  --muted: #6C7686;
  --line: #E5E9F0;
  --paper: #F6F8FB;
  --white: #FFFFFF;

  /* Tipografía */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Métricas */
  --container: 1140px;
  --gutter: 24px;
  --section-y: 104px;
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 84px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(3, 11, 96, .05), 0 6px 18px rgba(3, 11, 96, .05);
  --shadow-md: 0 14px 36px rgba(3, 11, 96, .11);
  --shadow-lg: 0 28px 70px rgba(2, 8, 60, .40);
}

/*--------------------------------------------------------------
# Base
---------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

html {
  /* Bootstrap 3 deja html en 10px: hay que restaurarlo para que 1rem = 16px */
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}

p {
  margin: 0 0 18px;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .25s ease;
}

a:hover,
a:focus {
  color: var(--ink);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(23, 89, 163, .18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Iconos Lucide en linea */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Acceso directo al contenido */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100000;
  padding: 11px 20px;
  background: var(--ink);
  color: #fff;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/*--------------------------------------------------------------
# Estructura
---------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: var(--section-y) 0;
}

.section-empty {
  display: none;
}

/* Encabezado de seccion */
.section-head {
  max-width: 740px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.95rem, 3.7vw, 2.75rem);
  margin: 0 0 18px;
}

.section-rule {
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 auto 22px;
  background: var(--brand);
}

.section-description {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--muted);
}

/*--------------------------------------------------------------
# Preloader
---------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-deep);
}

#preloader::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #fff;
  animation: ld-spin .9s linear infinite;
}

@keyframes ld-spin {
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Botones
---------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform .28s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn-solid {
  background: var(--brand);
  color: #fff;
}

.btn-solid:hover,
.btn-solid:focus {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(3, 11, 96, .24);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

/*--------------------------------------------------------------
# Header y navegacion
---------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#logo a {
  display: block;
  position: relative;
}

#logo img {
  display: block;
  width: auto;
  max-height: 46px;
}

/* Sobre el hero el header es transparente: se usa el logo blanco.
   Al desplazarse, el fondo se vuelve blanco y entra el logo navy. */
#logo .logo-on-light {
  display: none;
}

body.is-stuck #header {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(3, 11, 96, .09);
}

body.is-stuck #logo .logo-on-dark {
  display: none;
}

body.is-stuck #logo .logo-on-light {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 8px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

/* Enlaces en blanco mientras el header esta sobre el hero */
#header .nav-menu a {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(2, 8, 60, .45);
}

#header .nav-menu a:hover,
#header .nav-menu a:focus {
  color: #fff;
}

body.is-stuck #header .nav-menu a {
  color: var(--text);
  text-shadow: none;
}

body.is-stuck #header .nav-menu a:hover,
body.is-stuck #header .nav-menu a:focus {
  color: var(--ink);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}

#header .nav-menu a::after {
  background: var(--brand-light);
}

body.is-stuck #header .nav-menu a::after {
  background: var(--brand);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--ink);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu .menu-active a::after {
  transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a:focus {
  text-decoration: none;
}

.nav-menu .menu-active a {
  color: var(--brand);
}

#header .nav-menu .menu-active a {
  color: #fff;
}

body.is-stuck #header .nav-menu .menu-active a {
  color: var(--brand);
}

/* Navegacion movil */
#mobile-nav,
#mobile-nav-toggle,
#mobile-body-overly {
  display: none;
}

@media (max-width: 991px) {
  #nav-menu-container {
    display: none;
  }

  #mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 18px;
    z-index: 1004;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
  }

  /* Sobre el hero el boton se transparenta para no romper la imagen */
  body:not(.is-stuck) #mobile-nav-toggle {
    background: rgba(3, 11, 96, .55);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
  }

  #mobile-nav-toggle .icon {
    width: 22px;
    height: 22px;
  }

  #mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 84vw);
    z-index: 1003;
    padding: 96px 34px 44px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(3, 11, 96, .18);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }

  body.mobile-nav-active #mobile-nav {
    transform: none;
  }

  #mobile-nav .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #mobile-nav .nav-menu a {
    padding: 16px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  #mobile-nav .nav-menu a::after {
    display: none;
  }

  #mobile-body-overly {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(3, 11, 96, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }

  body.mobile-nav-active #mobile-body-overly {
    opacity: 1;
    visibility: visible;
  }
}

/*--------------------------------------------------------------
# Hero
---------------------------------------------------------------*/
#hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  background: var(--ink-deep);
  overflow: hidden;
}

/* El encuadre favorece al equipo y deja espacio para el texto a la izquierda. */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/hero-estudio-contable.jpg) 78% 50% / cover no-repeat;
  filter: saturate(92%) contrast(1.04);
  transform: scale(1.03);
}

/* Velo navy: mantiene legible el texto y deja ver la escena contable */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 11, 96, .94) 0%, rgba(3, 11, 96, .82) 32%, rgba(3, 11, 96, .48) 52%, rgba(3, 11, 96, .34) 72%, rgba(2, 8, 60, .26) 100%),
    linear-gradient(180deg, rgba(2, 8, 60, .38) 0%, rgba(2, 8, 60, 0) 30%, rgba(2, 8, 60, .32) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 150px var(--gutter);
}
.hero-inner {
  max-width: 780px;
}

#hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: #fff;
  font-weight: 600;
  margin: 0 0 22px;
}

.hero-lead {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, .94);
  margin: 0 0 42px;
}

.hero-phrases {
  display: inline-grid;
  vertical-align: baseline;
  white-space: nowrap;
  color: var(--brand-light);
  font-weight: 600;
}

/* Las frases comparten una celda que conserva el ancho de la más larga. */
.hero-phrase,
.hero-typing {
  grid-area: 1 / 1;
}

.hero-phrase {
  padding-inline-end: .45em;
}

.hero-phrase:not(:first-child),
.hero-phrases.is-typing .hero-phrase {
  visibility: hidden;
}

.hero-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .85em;
  margin-inline-start: .12em;
  vertical-align: -.05em;
  background: currentColor;
}

.hero-typing.is-paused::after {
  animation: hero-caret .95s step-end infinite;
}

@keyframes hero-caret {
  50% {
    opacity: 0;
  }
}

#hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

#hero .btn-solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

#hero .btn-solid:hover,
#hero .btn-solid:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

/*--------------------------------------------------------------
# Nosotros
---------------------------------------------------------------*/
#about {
  background: var(--white);
}

.about-container {
  margin-top: 0;
}

.about-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-content {
  padding-left: 18px;
}

.about-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin: 0 0 24px;
}

.about-text {
  font-size: 1.0625rem;
  margin: 0 0 20px;
  color: var(--text);
}

/*--------------------------------------------------------------
# Servicios
---------------------------------------------------------------*/
#services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Bootstrap anade pseudo-elementos de clearfix: fuera de la retícula */
.service-grid::before,
.service-grid::after {
  content: none;
  display: none;
}

.service-grid > [class*="col-"] {
  float: none;
  width: auto;
  padding: 0;
}

.service-item {
  height: 100%;
  padding: 36px 30px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 89, 163, .34);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #EEF3FA;
  color: var(--brand);
  transition: background .3s ease, color .3s ease;
}

.service-icon .icon {
  width: 27px;
  height: 27px;
}

.service-item:hover .service-icon {
  background: var(--brand);
  color: #fff;
}

.service-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.service-description {
  font-size: .97rem;
  color: var(--muted);
  margin: 0;
}

/*--------------------------------------------------------------
# Clientes
---------------------------------------------------------------*/
#testimonials {
  background: var(--white);
}

.testimonial-row {
  display: flex;
  align-items: center;
}

.testimonial-row + .testimonial-row {
  margin-top: 26px;
}

.profile {
  text-align: center;
}

.profile .pic {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.profile .pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.125rem;
  margin: 0 0 6px;
}

.profile-place {
  display: block;
  font-size: .875rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.quote {
  position: relative;
  margin: 0;
  padding: 36px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.quote .quote-mark {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--brand);
  opacity: .3;
}

.quote p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text);
}

/*--------------------------------------------------------------
# Contacto
---------------------------------------------------------------*/
#contact {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .78);
}

#contact .section-title {
  color: #fff;
}

#contact .section-description {
  color: rgba(255, 255, 255, .7);
}

#contact .section-rule {
  background: var(--brand-light);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.info-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--brand-light);
}

.info-icon .icon {
  width: 21px;
  height: 21px;
}

.info-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .74);
}

.info-item a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 1px;
}

.info-item a:hover {
  color: var(--brand-light);
  border-bottom-color: var(--brand-light);
}

.form {
  padding: 40px 38px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form .form-group {
  margin-bottom: 20px;
}

.form label {
  display: block;
  margin-bottom: 9px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
}

.form .form-control {
  height: auto;
  padding: 14px 15px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form .form-control::placeholder {
  color: #A8B0BD;
}

.form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 89, 163, .13);
  outline: none;
}

.form textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.form .validation {
  display: none;
  margin-top: 7px;
  font-size: .875rem;
  color: #C0392B;
}

.form .validation.show {
  display: block;
}

#sendmessage,
#errormessage {
  display: none;
  margin-bottom: 20px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
}

#sendmessage.show {
  display: block;
  background: #EAF6EE;
  border: 1px solid #C6E4D0;
  color: #1B7A3D;
}

#errormessage.show {
  display: block;
  background: #FDECEA;
  border: 1px solid #F3C7C2;
  color: #B3261E;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.form-footer .btn {
  padding: 16px 26px;
}

.form-note {
  margin: 0;
  font-size: .875rem;
  color: var(--muted);
}

/*--------------------------------------------------------------
# Footer
---------------------------------------------------------------*/
#footer {
  padding: 50px 0;
  background: #01062B;
  text-align: center;
}

#footer .copyright {
  font-size: .88rem;
  color: rgba(255, 255, 255, .62);
}

#footer .copyright strong {
  color: #fff;
  font-weight: 600;
}

#footer .credits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: .88rem;
}

#footer .credits strong {
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  margin-right: 4px;
}

#footer .credits a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

#footer .credits a:hover,
#footer .credits a:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

#footer .credits a i {
  font-size: .95rem;
}

/*--------------------------------------------------------------
# Botones flotantes
---------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 31px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .34);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1EBE5A;
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, .45);
}

.whatsapp-label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: .875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus .whatsapp-label {
  opacity: 1;
  visibility: visible;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease, color .25s ease;
}

.back-to-top .icon {
  width: 21px;
  height: 21px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/*--------------------------------------------------------------
# Adaptacion a pantallas
---------------------------------------------------------------*/
@media (max-width: 991px) {
  :root {
    --section-y: 76px;
  }

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

  .about-content {
    padding-left: 0;
    padding-top: 30px;
  }

  #contact .info {
    margin-bottom: 34px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
  }

  body {
    font-size: 16.5px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .hero-container {
    padding: 128px var(--gutter);
  }

  /* En móvil, el recorte mantiene el foco en la revisión tributaria y financiera. */
  #hero::before {
    background-position: 85.5% 50%;
  }

  #hero::after {
    background: linear-gradient(180deg, rgba(2, 8, 60, .62) 0%, rgba(3, 11, 96, .32) 24%, rgba(3, 11, 96, .74) 42%, rgba(3, 11, 96, .78) 67%, rgba(2, 8, 60, .42) 100%);
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-item {
    padding: 30px 26px 28px;
  }

  .testimonial-row {
    display: block;
  }

  .testimonial-row + .testimonial-row {
    margin-top: 22px;
  }

  .testimonial-row .profile {
    margin-bottom: 20px;
  }

  .quote {
    padding: 26px 24px;
  }

  .quote p {
    font-size: 1.0625rem;
  }

  .form {
    padding: 28px 22px 26px;
  }

  .form-footer {
    justify-content: center;
    text-align: center;
  }

  .form-footer .btn {
    width: 100%;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .whatsapp-label {
    display: none;
  }

  .back-to-top {
    right: 18px;
    bottom: 82px;
    width: 42px;
    height: 42px;
  }

  #footer .credits strong {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
  }
}

@media (max-width: 420px) {
  .nav-menu {
    gap: 22px;
  }

  #hero .actions .btn {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Preferencias del usuario
---------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
