/* Las fuentes (DM Sans + Manrope) se cargan desde el <head> del HTML. */

/* ============================================================
   MERNEL STUDIO
   Frontend premium
============================================================ */

:root {
  --color-primary: #014957;
  --color-primary-alt: #016473;
  --color-accent: #dcecef;
  --color-accent-soft: #edf5f6;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f6;
  --color-nav: #f7f8f8;
  --color-text: #172326;
  --color-text-soft: #596669;
  --color-border: #dce5e6;
  --color-whatsapp: #25d366;

  --font-display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 18px 42px -34px rgba(1, 73, 87, .45);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .55em;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-soft);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 10px 16px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary-alt);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 14px 28px -22px rgba(1, 73, 87, .9);
}

.btn--primary:hover {
  background: var(--color-primary-alt);
}

.btn--ghost {
  color: var(--color-primary);
  background: #fff;
  border-color: var(--color-accent);
}

.btn--ghost:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-primary-alt);
}

/* ============================================================
   HEADER
============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 248, 248, .96);
  border-bottom: 1px solid rgba(220, 229, 230, .9);
  transition: box-shadow .25s ease, background .25s ease;
}

.nav.is-scrolled {
  background: rgba(247, 248, 248, .99);
  box-shadow: 0 12px 30px -28px rgba(23, 35, 38, .55);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.nav__logo-frame {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 42px;
  background: var(--color-primary);
  border-radius: 50%;
}

.nav__logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links a {
  position: relative;
  padding: 7px 0;
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 550;
  transition: color var(--transition);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 10px;
  transition: right var(--transition);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-primary);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  right: 0;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary);
  border-radius: 10px;
  transition: transform .22s ease, opacity .22s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SECTIONS
============================================================ */

.section {
  position: relative;
  padding: 104px 0;
}

.section--tight {
  padding: 54px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--color-accent);
}

.section__title {
  max-width: 760px;
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
}

.section__title--light {
  color: #fff;
}

.section__lead {
  max-width: 650px;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.75;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: .06s;
}

.reveal--delay-2 {
  transition-delay: .12s;
}

.reveal--delay-3 {
  transition-delay: .18s;
}

/* ============================================================
   HERO
============================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 104px 0 116px;
  background: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.hero__copy {
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero__copy > .eyebrow,
.hero__copy > h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero h1 {
  max-width: 850px;
  margin-top: 22px;
  margin-bottom: 24px;
  color: var(--color-text);
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.hero__lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.8;
}

/* La imagen del hero se oculta para mantener la presentación limpia. */
.hero__visual {
  display: none !important;
}

/* ============================================================
   SERVICES
============================================================ */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.service:hover,
.service:focus-within {
  transform: scale(1.015);
  border-color: #b9d4d8;
  box-shadow: var(--shadow-card);
}

.service:hover::before,
.service:focus-within::before {
  transform: scaleX(1);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
}

.service__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.service__icon .ic-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__icon .ic-dot {
  fill: currentColor;
}

.service__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.service p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
}

/* ============================================================
   NOSOTROS
   Composición editorial: texto a la izquierda, foto a la derecha.
============================================================ */

.section--about {
  background: #fff;
}

/* Más aire entre el título "Nosotros" y el contenido */
#nosotros .section-head {
  margin-bottom: clamp(48px, 5.5vw, 72px);
}

/* El texto define el alto y la foto lo acompaña de arriba a abajo */
.nosotros__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: stretch;
}

.nosotros__copy {
  max-width: 33rem;
}

.nosotros__copy p {
  margin: 0 0 1.1em;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.nosotros__copy p:last-child {
  margin-bottom: 0;
}

.nosotros__photo {
  position: relative;
  margin: 0;
}

/* Bordes rectos, marco fino y sombra suave en verde para integrarse al fondo blanco */
.nosotros__photo picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  outline: 1px solid rgba(1, 73, 87, .08);
  outline-offset: -1px;
  box-shadow:
    0 2px 6px rgba(1, 73, 87, .06),
    0 40px 70px -48px rgba(1, 73, 87, .45);
}

.nosotros__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 36%;
  filter: brightness(1.12) contrast(.94) saturate(.95);
  transition: transform 1.4s var(--ease-out);
}

/* Zoom muy sutil al pasar el mouse */
.nosotros__photo:hover img {
  transform: scale(1.025);
}

@media (max-width: 900px) {
  #nosotros .section-head {
    margin-bottom: 36px;
  }

  .nosotros__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .nosotros__copy {
    max-width: 36rem;
  }

  /* En tablet y celular la foto va debajo, con proporción propia */
  .nosotros__photo picture {
    position: static;
  }

  .nosotros__photo img {
    height: auto;
    aspect-ratio: 6 / 5;
  }
}

@media (max-width: 600px) {
  .nosotros__grid {
    gap: 36px;
  }
}

/* ============================================================
   FAQ
============================================================ */

#faq > .container > .eyebrow,
#faq > .container > .section__title {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 3px;
  color: var(--color-text);
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 650;
  transition: color var(--transition);
}

.faq__question:hover {
  color: #899395;
}

.faq__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: #929b9d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__item.is-open .faq__question {
  color: #899395;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}

.faq__answer p {
  max-width: 680px;
  margin: 0 4px 22px;
  font-size: .89rem;
  line-height: 1.7;
}

/* ============================================================
   CONTACT
============================================================ */

#contacto .contact__content,
.contact__content {
  width: 100%;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.contact__info {
  width: 100%;
}

#contacto .contact__info > .eyebrow,
#contacto .contact__info > .section__title,
#contacto .contact__info > .section__lead,
.contact__info .eyebrow,
.contact__info .section__title,
.contact__info .section__lead {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 650;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #b9d4d8;
  box-shadow: 0 16px 34px -30px rgba(1, 73, 87, .5);
}

.brand-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.brand-icon--whatsapp {
  fill: var(--color-whatsapp);
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  padding: 64px 0 0;
  background: var(--color-nav);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer__logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer__brand p {
  max-width: 22rem;
  margin: 0;
  color: var(--color-text-soft);
  font-size: .88rem;
  line-height: 1.7;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__heading {
  margin: 0 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 650;
}

.footer__col a,
.footer__col span {
  color: var(--color-text-soft);
  font-size: .86rem;
  transition: color var(--transition);
}

.footer__col a:hover,
.footer__bottom a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 26px;
}

/* Línea divisoria alineada con el contenido (no con el borde del contenedor) */
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--color-border);
}

.footer__bottom p,
.footer__bottom a {
  margin: 0;
  color: var(--color-text-soft);
  font-size: .78rem;
}

.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--color-whatsapp);
  border-radius: 50%;
  box-shadow: 0 18px 34px -20px rgba(37, 211, 102, .9);
  transition: transform var(--transition), box-shadow var(--transition), opacity .3s ease, visibility .3s;
}

/* Con JS, se oculta mientras se ve el inicio y aparece al bajar */
.js .whatsapp-float:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 42px -20px rgba(37, 211, 102, 1);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

/* ============================================================
   PÁGINA LEGAL (política de privacidad)
============================================================ */

.legal__back {
  color: var(--color-primary);
  font-size: .9rem;
  font-weight: 600;
}

.legal__back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  padding: 72px 0 96px;
}

.legal__inner {
  max-width: 46rem;
}

.legal__title {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
}

.legal__date {
  margin-bottom: 36px;
  font-size: .88rem;
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.legal p {
  font-size: 1rem;
  line-height: 1.75;
}

.legal a:not(.legal__back) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding: 86px 0 92px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 720px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 24px 20px;
    background: var(--color-nav);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    width: 100%;
    padding: 11px 0;
  }

  .nav__toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 19px;
  }

  .section {
    padding: 78px 0;
  }

  .section--tight {
    padding: 42px 0;
  }

  .nav__brand {
    font-size: .98rem;
  }

  .nav__logo-frame,
  .nav__logo {
    width: 38px;
    height: 38px;
  }

  .nav__logo-frame {
    flex-basis: 38px;
  }

  .hero {
    padding: 66px 0 76px;
  }

  .hero__grid {
    gap: 0;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .hero__lead {
    font-size: .98rem;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .contact__channels {
    flex-direction: row;
    justify-content: center;
  }

  .contact-card {
    width: auto;
    max-width: 100%;
  }

  .footer {
    padding-top: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    /* Deja lugar al botón flotante de WhatsApp */
    padding-bottom: 92px;
  }

  .footer__bottom::before {
    left: 19px;
    right: 19px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   ============================================================
   NUEVO: HERO CON FOTO, TÍTULOS DE SECCIÓN, ÍCONOS,
   FORMULARIO DE PRESUPUESTO Y ANIMACIONES DE SCROLL
   ============================================================
============================================================ */

:root {
  --ink-deep: #021d23;
  --mint: #7dd3c0;
  --mint-soft: #e6f5f1;
  --amber: #f5b23c;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
}

/* ------------------------------------------------------------
   HERO CON FOTO
------------------------------------------------------------ */

.hero.hero--photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100svh - 76px), 860px);
  padding: 96px 0 104px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 45% 50%;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
  filter: brightness(.85) contrast(1.05);
  animation: hero-settle 2.4s var(--ease-out) both;
  will-change: transform;
}

/* Atenuado: oscuro a la izquierda para leer el texto,
   más abierto a la derecha para que se vea el logo en la pared. */
.hero.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 29, 35, .9) 0%, rgba(2, 29, 35, .62) 36%, rgba(2, 29, 35, .12) 66%, rgba(2, 29, 35, 0) 100%),
    linear-gradient(0deg, rgba(2, 29, 35, .5) 0%, transparent 30%);
}

/* En pantallas anchas la foto se corre a la derecha para que el diagrama
   de automatización quede al lado del texto y no debajo. */
/* Computadora: el texto va a la izquierda y la foto se corre a la derecha,
   de modo que los íconos de la imagen empiezan donde termina el texto. */
@media (min-width: 1101px) {
  /* Alto del hero acorde a la proporción de la foto (16:9 sobre el 80% del ancho),
     así la imagen se ve completa y no se agranda hacia los costados. */
  .hero.hero--photo {
    min-height: clamp(560px, min(calc(100svh - 76px), 45vw), 860px);
    padding: 64px 0;
  }

  .hero__media {
    left: 20vw;
  }

  .hero__photo {
    object-position: 10% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
  }

  .hero.hero--photo::before {
    background:
      linear-gradient(90deg, rgba(2, 29, 35, .94) 0%, rgba(2, 29, 35, .86) 30%, rgba(2, 29, 35, .35) 41%, rgba(2, 29, 35, 0) 50%),
      linear-gradient(0deg, rgba(2, 29, 35, .45) 0%, transparent 28%);
  }

  .hero .hero__content {
    max-width: none;
    margin: 0;
    padding-left: clamp(40px, 5vw, 104px);
    padding-right: 24px;
  }

  .hero.hero--photo .hero__title {
    font-size: clamp(2.7rem, 3.9vw, 4.2rem);
  }

  .hero.hero--photo .hero__text {
    max-width: min(31rem, 32vw);
  }
}

.hero__content {
  position: relative;
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: var(--mint);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero .hero__title {
  max-width: 13ch;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-align: left;
}

.hero__text {
  max-width: 34rem;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.75;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 8px 8px 26px;
  color: var(--color-primary);
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease;
}

.hero__cta-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform .3s var(--ease-out), background .25s ease;
}

.hero__cta-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: var(--mint-soft);
  box-shadow: 0 28px 46px -22px rgba(0, 0, 0, .8);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
  background: var(--color-primary-alt);
}

.hero__cta:active {
  transform: translateY(0) scale(.98);
}

.hero__cta:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

/* Secuencia de entrada del hero (una sola vez, al cargar) */
.hero__eyebrow,
.hero .hero__title,
.hero__text,
.hero__cta {
  animation: hero-rise 1s var(--ease-out) both;
}

.hero .hero__title { animation-delay: .12s; }
.hero__text { animation-delay: .26s; }
.hero__cta { animation-delay: .4s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-settle {
  from { opacity: .35; scale: 1.08; }
  to { opacity: 1; scale: 1; }
}

/* ------------------------------------------------------------
   TÍTULO DE SECCIÓN CENTRADO + MARCA DE MERNEL
------------------------------------------------------------ */

.section-head {
  margin: 0 auto 44px;
  text-align: center;
}

.section-head__title {
  margin: 0;
  padding: 0 0 .12em;
  overflow: hidden;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head__title span {
  display: inline-block;
}

/* Estado animado (solo con JS activo) */
.js .section-head__title span {
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
}

.js .section-head.is-visible .section-head__title span {
  transform: none;
}

/* El texto descriptivo de cada sección va a la izquierda */
#servicios .section__title,
#faq > .container > .section__title {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

#contacto .contact__content {
  max-width: 820px;
}

/* ------------------------------------------------------------
   ÍCONOS DE SERVICIOS
------------------------------------------------------------ */

.service__icon {
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  background: var(--mint-soft);
  border-radius: 18px;
}

.service__icon svg.ic {
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
}

.ic .i-teal { fill: var(--color-primary); }
.ic .i-teal-2 { fill: #0b7a86; }
.ic .i-mint { fill: var(--mint); }
.ic .i-amber { fill: var(--amber); }
.ic .i-white { fill: #fff; }
.ic .i-soft { fill: rgba(255, 255, 255, .45); }
.ic .i-faint { fill: rgba(1, 73, 87, .16); }

.ic .i-cursor {
  fill: #fff;
  stroke: var(--color-primary);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.ic .i-teal-teeth,
.ic .i-amber-teeth {
  fill: none;
  stroke-dasharray: 1 1;
}

.ic .i-teal-teeth { stroke: var(--color-primary); stroke-width: 4.4; }
.ic .i-amber-teeth { stroke: var(--amber); stroke-width: 3.6; }

.ic .i-amber-line,
.ic .i-teal-line,
.ic .i-white-line,
.ic .i-teal-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic .i-amber-line { stroke: var(--amber); stroke-width: 3.2; }
.ic .i-teal-line { stroke: var(--color-primary); stroke-width: 6.5; }
.ic .i-teal-ring { stroke: var(--color-primary); stroke-width: 4.2; }
.ic .i-white-line { stroke: #fff; stroke-width: 3.6; }
.ic .i-check { stroke-dasharray: 1; stroke-dashoffset: 0; }

.ic g,
.ic .i-cursor,
.ic .i-spark,
.ic .i-dot,
.ic .i-check {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .6s var(--ease-out), stroke-dashoffset .6s var(--ease-out);
}

.ic .i-lens { transform-origin: 40% 40%; }

/* Micro-animaciones al pasar el mouse por la tarjeta */
.service:hover .ic--web .i-cursor { transform: translate(-6px, -5px); }
.service:hover .ic--ai .i-spark { transform: rotate(90deg) scale(1.15); }
.service:hover .ic--ai .i-dot { animation: ic-typing .9s ease-in-out infinite; }
.service:hover .ic--ai .i-dot:nth-of-type(2) { animation-delay: .15s; }
.service:hover .ic--ai .i-dot:nth-of-type(3) { animation-delay: .3s; }
.service:hover .ic--auto .i-gear--a { transform: rotate(72deg); }
.service:hover .ic--auto .i-gear--b { transform: rotate(-90deg); }
.service:hover .ic--landing .i-cursor { transform: translate(-7px, 4px); }
.service:hover .ic--shop .i-bag { transform: translateY(-2px) rotate(-4deg); }
.service:hover .ic--learn .i-spark { transform: rotate(90deg) scale(1.15); }
.service:hover .ic--seo .i-lens { transform: rotate(-8deg) scale(1.05); }
.service:hover .ic--care .i-check { animation: ic-draw .7s var(--ease-out); }

@keyframes ic-typing {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-2.5px); }
}

@keyframes ic-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------
   FORMULARIO DE PRESUPUESTO (diálogo)
------------------------------------------------------------ */

html:has(dialog.quote[open]) {
  overflow: hidden;
}

.quote {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.quote::backdrop {
  background: rgba(2, 29, 35, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s ease;
}

.quote.is-open::backdrop {
  opacity: 1;
}

.quote__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100%);
  padding: 56px 52px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: -30px 0 60px -40px rgba(2, 29, 35, .7);
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
}

.quote.is-open .quote__panel {
  transform: none;
}

.quote__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 50%;
  transition: background .2s ease, transform .3s var(--ease-out);
}

.quote__close:hover {
  background: var(--color-accent);
  transform: rotate(90deg);
}

.quote__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.quote__title {
  max-width: 14ch;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.quote__title:focus {
  outline: none;
}

.quote__intro {
  max-width: 44ch;
  margin: 0 0 32px;
  font-size: .95rem;
  line-height: 1.65;
}

.quote__form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field__label {
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.field--chips .field__label {
  margin-bottom: 10px;
}

.quote input[type="text"],
.quote input[type="email"],
.quote input[type="tel"],
.quote textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.quote textarea {
  min-height: 120px;
  resize: vertical;
}

.quote input::placeholder,
.quote textarea::placeholder {
  color: #93a0a2;
}

.quote input:hover,
.quote textarea:hover {
  border-color: #b9d4d8;
}

.quote input:focus,
.quote textarea:focus {
  border-color: var(--color-primary-alt);
  box-shadow: 0 0 0 4px rgba(1, 100, 115, .12);
  outline: none;
}

.quote [aria-invalid="true"] {
  border-color: #c2412d !important;
}

.field__error {
  margin: 0;
  color: #b3392a;
  font-size: .82rem;
  font-weight: 500;
}

.field__error:empty {
  display: none;
}

/* Opciones de solución como "chips" seleccionables */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 550;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}

.chip:hover span {
  border-color: #b9d4d8;
}

.chip input:checked + span {
  color: #fff;
  background: var(--color-primary);
  transform: scale(1.03);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--color-primary-alt);
  outline-offset: 3px;
}

.field--chips.is-invalid .chip span {
  border-color: rgba(194, 65, 45, .45);
}

/* Teléfono con prefijo fijo de Uruguay */
.phone {
  display: flex;
  align-items: stretch;
}

.phone__prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-weight: 600;
  white-space: nowrap;
}

.phone__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.phone input[type="tel"] {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote__status {
  margin: 0;
  color: #b3392a;
  font-size: .9rem;
}

.quote__status:empty {
  display: none;
}

.quote__status a {
  color: var(--color-primary);
  font-weight: 650;
  text-decoration: underline;
}

.quote__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  padding: 14px 26px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s var(--ease-out);
}

.quote__submit:hover {
  background: var(--color-primary-alt);
}

.quote__submit:active {
  transform: scale(.98);
}

.quote__submit--ghost {
  width: auto;
  color: var(--color-primary);
  background: var(--color-accent-soft);
}

.quote__submit--ghost:hover {
  background: var(--color-accent);
}

.quote__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.quote__submit.is-loading {
  pointer-events: none;
  opacity: .85;
}

.quote__submit.is-loading .quote__spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.quote__privacy {
  margin: -6px 0 0;
  color: #7c898b;
  font-size: .8rem;
  text-align: center;
}

.quote__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote__done {
  padding-top: 40px;
}

.quote__done-mark {
  width: 64px;
  height: 40px;
  margin-bottom: 26px;
  overflow: visible;
}

.quote__done-mark path {
  fill: none;
  stroke: var(--color-primary-alt);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1.2;
  animation: mark-draw 1s .1s var(--ease-out) both;
}

@keyframes mark-draw {
  from { stroke-dashoffset: 1.1; }
  to { stroke-dashoffset: 0; }
}

.quote__done-mark rect {
  fill: var(--color-primary-alt);
}

/* ------------------------------------------------------------
   RESPONSIVE DE LO NUEVO
------------------------------------------------------------ */

@media (max-width: 600px) {
  .hero .hero__title {
    font-size: clamp(2.1rem, 9.6vw, 2.9rem);
  }

  .hero__cta {
    width: 100%;
    justify-content: space-between;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head__title {
    font-size: clamp(1.25rem, 5.6vw, 1.45rem);
  }

  .quote__panel {
    top: auto;
    width: 100%;
    max-height: 94dvh;
    padding: 52px 20px 28px;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .chip span {
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    transform: none;
    animation: none;
  }

  .js .section-head__title span {
    transform: none;
  }
}

/* Servicios en gris muy claro para separar de Nosotros (blanco)
   y que las tarjetas blancas resalten. */
#servicios {
  background: var(--color-bg-alt);
}

/* ------------------------------------------------------------
   CONTACTO: solo los logos, como botones directos
------------------------------------------------------------ */

#contacto .contact__channels {
  gap: 18px;
  margin-top: 38px;
}

#contacto .contact-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  min-height: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 14px 30px -26px rgba(2, 29, 35, .45);
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s ease,
    border-color .35s ease;
}

#contacto .contact-card .brand-icon {
  width: 38px;
  height: 38px;
  flex: none;
  transition: transform .45s var(--ease-out);
}

#contacto .contact-card:hover,
#contacto .contact-card:focus-visible {
  transform: translateY(-6px);
  border-color: transparent;
}

#contacto .contact-card:hover .brand-icon,
#contacto .contact-card:focus-visible .brand-icon {
  transform: scale(1.12) rotate(-6deg);
}

#contacto .contact-card--gmail:hover,
#contacto .contact-card--gmail:focus-visible {
  box-shadow: 0 0 0 3px rgba(234, 67, 53, .22), 0 22px 36px -22px rgba(234, 67, 53, .7);
}

#contacto .contact-card--whatsapp:hover,
#contacto .contact-card--whatsapp:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .25), 0 22px 36px -22px rgba(37, 211, 102, .8);
}

#contacto .contact-card--instagram:hover,
#contacto .contact-card--instagram:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 41, 118, .22), 0 22px 36px -22px rgba(150, 47, 191, .7);
}

#contacto .contact-card:active {
  transform: translateY(-2px) scale(.96);
}

/* ------------------------------------------------------------
   RESPONSIVE DE ESTOS CAMBIOS
------------------------------------------------------------ */

@media (max-width: 600px) {
  .hero__photo {
    object-position: 50% 50%;
  }

  #contacto .contact-card {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  #contacto .contact-card .brand-icon {
    width: 34px;
    height: 34px;
  }
}

/* Subtítulo de cada sección: por debajo del nombre de la sección */
.section-head + .section__title,
.section-head ~ .section__title,
.contact__info > .section__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

/* ============================================================
   RETOQUES FINALES
   - Celeste como acento secundario (alivia el verde Mernel)
   - Botón de presupuesto: texto negro + círculo celeste
   - Tipografía prolija: líneas equilibradas, sin palabras sueltas
============================================================ */

:root {
  --sky: #1fa6e0;
  --sky-dark: #1690c6;
  --sky-light: #7fd0f3;
  --sky-soft: #eaf6fc;
  /* Los acentos que antes eran menta pasan a celeste */
  --mint: var(--sky-light);
  --mint-soft: var(--sky-soft);
}

/* --- Botón "Solicitá tu presupuesto" --- */
.hero__cta {
  color: #0f1416;
}

.hero__cta-arrow {
  background: var(--sky);
}

.hero__cta-arrow svg {
  stroke-width: 2.4;
}

.hero__cta:hover {
  background: #f2f9fd;
}

.hero__cta:hover .hero__cta-arrow {
  background: var(--sky-dark);
}

.hero__cta:focus-visible {
  outline-color: var(--sky-light);
}

/* --- Detalles celestes --- */
.service::before {
  background: var(--sky);
}

.service:hover,
.service:focus-within {
  border-color: #bfe3f5;
}

.faq__item.is-open .faq__chevron {
  stroke: var(--sky);
}

.quote input:focus,
.quote textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(31, 166, 224, .14);
}

.chip input:focus-visible + span {
  outline-color: var(--sky);
}

/* --- Contacto: íconos más sutiles --- */
#contacto .contact__channels {
  gap: 14px;
  margin-top: 30px;
}

#contacto .contact-card {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

#contacto .contact-card .brand-icon {
  width: 28px;
  height: 28px;
}

#contacto .contact-card:hover,
#contacto .contact-card:focus-visible {
  transform: translateY(-4px);
}

@media (max-width: 600px) {
  #contacto .contact-card {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  #contacto .contact-card .brand-icon {
    width: 26px;
    height: 26px;
  }
}

/* --- Texto prolijo --- */
h1,
h2,
h3,
.section__title,
.quote__title {
  text-wrap: balance;
}

p,
.faq__question span {
  text-wrap: pretty;
}

.section__lead,
.quote__intro {
  text-wrap: balance;
}

.hero__text {
  max-width: 43rem;
  text-wrap: balance;
}

/* Servicios: la bajada queda centrada bajo el título */
#servicios .section__lead {
  max-width: 36rem;
  margin: -18px auto 0;
  text-align: center;
}

#servicios .services {
  margin-top: 44px;
}

/* Contacto: bajada centrada y equilibrada */
#contacto .section__lead {
  max-width: 30rem;
}

/* ============================================================
   HERO EN TABLET Y CELULAR (hasta 1100px)
   La foto va como bloque arriba y el texto debajo: así el texto
   nunca puede quedar encima de los íconos de la imagen.
============================================================ */

@media (max-width: 1100px) {
  .hero.hero--photo {
    display: block;
    min-height: 0;
    padding: 0 0 64px;
  }

  .hero.hero--photo::before {
    display: none;
  }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
  }

  /* Fundido de la foto hacia el fondo oscuro del texto */
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 29, 35, .25) 0%, rgba(2, 29, 35, 0) 25%, rgba(2, 29, 35, 0) 55%, var(--ink-deep) 92%);
  }

  .hero__photo {
    object-position: 57% 40%;
  }

  .hero__content {
    position: relative;
    z-index: 1;
    margin-top: -24px;
  }
}

@media (max-width: 600px) {
  .hero__media {
    aspect-ratio: 4 / 3;
  }

  .hero.hero--photo {
    padding-bottom: 52px;
  }
}
