:root {
  --teal: #07a3a5;
  --teal-dark: #07888a;
  --navy: #0b2747;
  --navy-deep: #071d35;
  --ink: #102c4a;
  --warm: #f5f2eb;
  --paper: #fcfaf5;
  --white: #ffffff;
  --muted: #5e6d79;
  --line: rgba(11, 39, 71, 0.16);
  --container: 1200px;
  --radius: 3px;
  --shadow: 0 30px 80px rgba(4, 23, 42, 0.16);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #f2c94c; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: .75rem 1rem; background: var(--white); color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(5.5rem, 10vw, 9rem) 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5.4vw, 5.2rem); }
h1 span { color: var(--teal); }
h2 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 4.7vw, 4.9rem); }
h3 { margin-bottom: .5rem; font-size: 1.25rem; }
p { color: var(--muted); }
.lead { max-width: 650px; font-size: clamp(1.08rem, 1.55vw, 1.32rem); }
.eyebrow, .section-index { margin-bottom: 1.3rem; color: var(--teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: #57d6d6; }
.button-row { display: flex; align-items: center; gap: 1.75rem; margin-top: 2.3rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .85rem 1.4rem; border: 1px solid var(--teal); border-radius: var(--radius); background: var(--teal); color: var(--white); font-size: .88rem; font-weight: 750; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { border-color: var(--teal-dark); background: var(--teal-dark); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: .55rem 1rem; font-size: .78rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); font-size: .88rem; font-weight: 750; text-decoration: none; }
.text-link span { color: var(--teal); transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; border-bottom: 1px solid transparent; background: rgba(252, 250, 245, .88); backdrop-filter: blur(16px); transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(11,39,71,.05); }
.nav-wrap { display: flex; min-height: 116px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: 108px; height: 108px; flex: 0 0 auto; }
.brand img, .footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 2.8rem); }
.main-nav > a:not(.button) { position: relative; color: var(--navy); font-size: .88rem; font-weight: 720; text-decoration: none; }
.main-nav > a:not(.button)::after { position: absolute; right: 0; bottom: -.45rem; left: 0; height: 2px; background: var(--teal); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav > a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; color: var(--navy); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; min-height: clamp(540px, 75vh, 780px); padding-top: clamp(8.5rem, 12vw, 11rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero-carousel { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.carousel-slide {
  --position-x: var(--desktop-position-x);
  --position-y: var(--desktop-position-y);
  --image-scale: var(--desktop-scale);
  --image-flip: 1;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}
.carousel-slide.is-active { opacity: 1; z-index: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position-x) var(--position-y);
  transform: scale(var(--image-scale)) scaleX(var(--image-flip));
  transform-origin: var(--position-x) var(--position-y);
}

/* Encuadres independientes: escritorio grande (1280 px en adelante). */
.carousel-slide.slide-1 {
  --desktop-position-x: 78%;
  --desktop-position-y: 52%;
  --desktop-scale: 1;
}
.carousel-slide.slide-2 {
  --desktop-position-x: 82%;
  --desktop-position-y: 54%;
  --desktop-scale: 1;
}
.carousel-slide.slide-3 {
  --desktop-position-x: 88%;
  --desktop-position-y: 60%;
  --desktop-scale: 1;
}

.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(252, 250, 245, 0.92) 0%, rgba(252, 250, 245, 0.78) 32%, rgba(252, 250, 245, 0.28) 62%, transparent 100%); }
.hero-grid { position: relative; z-index: 3; display: grid; align-items: center; grid-template-columns: minmax(0, 640px) 1fr; gap: clamp(2rem, 5vw, 6rem); }
.hero-copy { max-width: 620px; }
.hero-copy .button-row { margin-top: clamp(1.1rem, 1.6vw, 1.35rem); }

/* SECCIÓN: NUESTROS SERVICIOS */
.services { background: #eaf2ef; border-bottom: 1px solid var(--line); }
.services-heading { max-width: 800px; margin-bottom: clamp(2.5rem, 4.5vw, 3.8rem); }
.services-heading h2 { font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.08; color: var(--navy); margin: 0.6rem 0 1rem; }
.services-intro { font-size: 1.12rem; color: var(--muted); line-height: 1.55; max-width: 680px; margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 39, 71, 0.08);
  border-color: rgba(7, 163, 165, 0.4);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-media {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 1.25rem;
  padding: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 2;
  display: inline-block;
  padding: 0.32rem 0.55rem;
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid rgba(7, 163, 165, 0.35);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(11, 39, 71, 0.08);
}

.service-card h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.3rem);
  font-weight: 780;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.6rem;
}

.service-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.button-service {
  display: inline-flex;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 750;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button-service:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* SECCIÓN 01 / EL PROBLEMA REAL */
.problem { position: relative; min-height: clamp(520px, 70vh, 680px); padding: clamp(5.5rem, 10vw, 9rem) 0; display: flex; align-items: center; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.problem-media { 
  position: relative;
  width: 100%; 
  height: 100%; 
  min-height: 480px; 
  max-height: 600px; 
  border-radius: var(--radius); 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  -webkit-mask-image: linear-gradient(to right, #000 55%, rgba(0,0,0,0.85) 75%, transparent 98%),
                      linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.85) 85%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 55%, rgba(0,0,0,0.85) 75%, transparent 98%),
              linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.85) 85%, transparent 99%);
  mask-composite: intersect;
}
.problem-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: var(--radius); }
.problem-content { grid-column: 2; max-width: 580px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; }
.problem-content .section-index, .problem-content #problem-title, .problem-content .problem-lead { margin-left: auto; margin-right: 0; text-align: right; align-self: flex-end; }
.problem .section-index { color: var(--teal-dark); margin-bottom: 0.6rem; text-align: right; }
#problem-title { font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.1; color: var(--navy); margin-bottom: 1rem; text-align: right; }
.problem-lead { max-width: 580px; font-size: 1.1rem; color: #4a6175; margin-bottom: 0; text-align: right; }
.issue-list { margin: 1.5rem 0 0 auto; padding: 0; list-style: none; max-width: 500px; width: 100%; text-align: right; }
.issue-list li { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(11, 39, 71, 0.15); color: var(--navy); font-size: 1.05rem; font-weight: 750; text-align: right; }
.issue-list span { color: var(--teal-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; flex-shrink: 0; }
.problem-action { margin-top: 1.6rem; align-self: flex-end; display: flex; justify-content: flex-end; width: 100%; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #b9c7d3; }
.difference { position: relative; min-height: clamp(520px, 70vh, 680px); padding: clamp(5.5rem, 10vw, 9rem) 0; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.difference-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.difference-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 25% center; }
.difference-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(270deg, rgba(11, 39, 71, 0.98) 0%, rgba(11, 39, 71, 0.94) 28%, rgba(11, 39, 71, 0.74) 43%, rgba(11, 39, 71, 0.32) 58%, rgba(11, 39, 71, 0.06) 70%, transparent 78%); }
.difference-content { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.difference-copy { grid-column: 2; max-width: 580px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; }
.difference-copy .eyebrow, .difference-copy h2, .difference-copy #difference-title, .difference-copy p { margin-left: auto; margin-right: 0; text-align: right; align-self: flex-end; justify-self: end; }
.difference-copy .eyebrow { font-size: clamp(.8rem, 1.15vw, .88rem); color: #57d6d6; margin-bottom: 1.3rem; }
.difference-copy h2 { color: var(--white); margin-bottom: 1.5rem; }
.difference-copy p:last-child { color: #b9c7d3; max-width: 620px; font-size: 1.12rem; line-height: 1.65; }
.difference-copy .button-row { margin-top: clamp(1.4rem, 2vw, 1.8rem); align-self: flex-end; justify-content: flex-end; }

.section-heading { max-width: 850px; }
.section-heading h2 { max-width: 850px; margin-bottom: 0; }
.process-list { position: relative; display: grid; margin: 4rem 0 0; padding: 0; grid-template-columns: repeat(5, 1fr); align-items: stretch; list-style: none; counter-reset: protocol; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-list li { position: relative; min-height: 300px; padding: 1.5rem clamp(1rem, 2vw, 1.8rem); border-right: 1px solid var(--line); }
.process-list li:first-child { border-left: 1px solid var(--line); }
.process-list li::before { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); content: ""; transform: translateX(-50%); }
.process-list li:first-child::before { transform: none; }
.step-number { color: var(--teal-dark); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.step-icon { display: grid; width: 62px; height: 62px; padding: 10px; margin: 3rem 0 1.8rem; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.step-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.process-list h3 { font-size: clamp(1.28rem, 1.4vw, 1.42rem); margin-bottom: .6rem; font-weight: 780; color: var(--navy); }
.process-list p { max-width: 210px; margin: 0; font-size: clamp(.92rem, 1.05vw, .98rem); line-height: 1.5; }
.process .button-row { margin-top: clamp(2.5rem, 5vw, 3.8rem); }

.benefits { background: #eaf2ef; }
.benefits-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(4rem, 9vw, 10rem); }
.benefits-intro { position: sticky; top: 130px; align-self: start; }
.benefits-intro p:last-child { max-width: 480px; }
.benefit-list article { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(11,39,71,.18); }
.benefit-list article:first-child { border-top: 1px solid rgba(11,39,71,.18); }
.benefit-list article > span { color: var(--teal-dark); font-size: .7rem; font-weight: 800; }
.benefit-list h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.benefit-list p { margin: 0; }



.digital { background: var(--navy); color: var(--white); overflow: hidden; }
.digital .section-index { color: #57d6d6; }
.digital-grid { display: grid; align-items: center; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 6rem); }
.digital-copy h2 { color: var(--white); font-size: clamp(2.3rem, 3.8vw, 3.8rem); line-height: 1.1; }
.digital-copy p { color: #b9c7d3; font-size: 1.05rem; line-height: 1.6; }

.contact-card {
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: 0 20px 40px rgba(7, 25, 46, 0.35);
}

.contact-card h3 {
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 780;
  margin-bottom: 0.35rem;
}

.form-intro {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.contact-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.contact-form .required-star {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-form .optional-tag {
  color: #788b99;
  font-size: 0.76rem;
  font-weight: 400;
  font-style: italic;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 85px;
  resize: vertical;
  padding: 0.75rem 0.9rem;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 163, 165, 0.22);
}

.contact-form .form-checkbox-group {
  margin: 1.2rem 0 1.4rem;
}

.contact-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.4;
}

.contact-form .checkbox-label input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  margin-top: 1px;
  accent-color: var(--teal);
  cursor: pointer;
}

.button-submit {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center;
  min-height: 52px;
  font-size: 0.95rem;
  cursor: pointer;
}
.button-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.5em; margin: .8rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.form-status.is-success { color: #08766f; }
.form-status.is-error { color: #a23535; }
.service-options i { color: var(--teal-dark); font-size: .52rem; font-style: normal; }.service-options b { color: var(--navy); font-size: .64rem; }
.whatsapp-concept { position: absolute; right: 25px; bottom: 28px; display: flex; padding: .75rem 1rem; align-items: center; gap: .7rem; background: var(--navy); box-shadow: 8px 10px 20px rgba(11,39,71,.2); color: var(--white); }
.whatsapp-concept > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--teal); }
.whatsapp-concept p, .whatsapp-concept small { display: block; margin: 0; color: var(--white); line-height: 1.25; }.whatsapp-concept b { font-size: .6rem; }.whatsapp-concept small { color: #aebcca; font-size: .48rem; }

.button-row-center { justify-content: center; }
.footer { padding: 3.2rem 0; background: var(--navy-deep); color: var(--white); }
.footer-grid { display: grid; align-items: center; grid-template-columns: 80px 1fr auto; gap: clamp(2rem, 4vw, 4rem); }
.footer-brand { width: 74px; height: 74px; padding: 5px; background: var(--white); border-radius: 4px; }
.footer p { max-width: 480px; margin: 0; color: #9eafbd; font-size: .88rem; line-height: 1.5; }
.footer small { color: #6f8495; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.whatsapp-float { position: fixed; z-index: 200; right: 24px; bottom: 24px; display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: .65rem; padding: .78rem 1.1rem; border-radius: 999px; background: #25d366; box-shadow: 0 10px 28px rgba(7, 29, 53, .2); color: #fff; font-size: .9rem; font-weight: 750; line-height: 1; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.whatsapp-float:hover { background: #20bd5a; box-shadow: 0 14px 34px rgba(7, 29, 53, .26); transform: translateY(-3px); }
.whatsapp-float:active { transform: translateY(-1px); }
.whatsapp-float__icon { width: 27px; height: 27px; flex: 0 0 auto; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .nav-wrap { min-height: 106px; }
  .brand { width: 98px; height: 98px; }
  .main-nav { gap: 1.1rem; }.main-nav > a:not(.button) { font-size: .78rem; }
  .hero { min-height: clamp(480px, 65vh, 650px); }.hero-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
  .process-list { grid-template-columns: repeat(2, 1fr); }.process-list li { border-bottom: 1px solid var(--line); }.process-list li:nth-child(odd) { border-left: 1px solid var(--line); }.process-list li:last-child { grid-column: span 2; border-bottom: 0; }

  .mockup-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 330px); }.mockup-box { grid-row: span 2; }.mockup-card { grid-column: auto; }
  .digital-grid { grid-template-columns: 1fr; }.browser-mockup { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 80px 1fr auto; gap: 2rem; }
}

/* Computadora o laptop: 1025–1279 px. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .carousel-slide {
    --position-x: var(--laptop-position-x);
    --position-y: var(--laptop-position-y);
    --image-scale: var(--laptop-scale);
  }
  .carousel-slide.slide-1 { --laptop-position-x: 70%; --laptop-position-y: 54%; --laptop-scale: 1; }
  .carousel-slide.slide-2 { --laptop-position-x: 84%; --laptop-position-y: 56%; --laptop-scale: 1; }
  .carousel-slide.slide-3 { --laptop-position-x: 90%; --laptop-position-y: 62%; --laptop-scale: 1; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 96px; }
  .section { padding: 5.5rem 0; }.nav-wrap { min-height: 100px; }.brand { width: 92px; height: 92px; }
  .menu-toggle { display: block; position: relative; z-index: 10001; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 100px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2.2rem 24px 3rem;
    gap: 0;
    background: #fcfaf5 !important;
    opacity: 1 !important;
    visibility: hidden;
    transform: translateY(-10px);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(11, 39, 71, 0.25);
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1 !important;
    transform: translateY(0);
  }

  .main-nav > a:not(.button) {
    display: block;
    width: 100%;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 22px !important;
    font-weight: 750;
    color: var(--navy) !important;
    text-align: left;
    text-decoration: none;
  }

  .main-nav > a:not(.button)::after { display: none; }

  .main-nav .button {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    align-self: flex-start !important;
    margin-top: 2.2rem !important;
    padding: 16px 28px !important;
    min-height: 50px !important;
    font-size: 0.95rem !important;
    text-align: left !important;
  }

  .main-nav .button + .button { margin-top: .8rem !important; }

  .hero-grid { grid-template-columns: 1fr; }.hero-copy { max-width: 680px; }.hero-overlay { background: linear-gradient(180deg, rgba(252, 250, 245, 0.9) 0%, rgba(252, 250, 245, 0.72) 55%, rgba(252, 250, 245, 0.2) 100%); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .problem { min-height: auto; padding: 5.5rem 0; display: block; }
  .problem-grid { display: flex; flex-direction: column; gap: 2rem; }
  .problem-media { 
    width: 100%; 
    min-height: 0; 
    max-height: none; 
    height: clamp(260px, 45vh, 400px); 
    order: 1; 
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.7) 82%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.7) 82%, transparent 99%);
  }
  .problem-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .problem-content { order: 2; grid-column: auto; max-width: 100%; align-items: flex-start; text-align: left; margin-left: 0; margin-right: 0; }
  .problem-content .section-index, .problem-content #problem-title, .problem-content .problem-lead { margin-left: 0; margin-right: 0; text-align: left; align-self: flex-start; width: 100%; }
  .problem .section-index { text-align: left; }
  #problem-title { text-align: left; }
  .problem-lead { text-align: left; margin-left: 0; margin-right: 0; max-width: 100%; }
  .issue-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; max-width: 100%; text-align: left; margin-left: 0; }
  .issue-list li { align-items: flex-start; justify-content: flex-start; flex-direction: column; text-align: left; }
  .problem-action { margin-top: 1.2rem; align-self: flex-start; justify-content: flex-start; }
  .difference { min-height: clamp(480px, 60vh, 620px); padding: 5.5rem 0; }
  .difference-content { grid-template-columns: 1fr; }
  .difference-copy { grid-column: 1; max-width: 100%; text-align: right; align-items: flex-end; }
  .difference-bg img { object-position: 30% 20%; }
  .difference-overlay { background: linear-gradient(180deg, rgba(11, 39, 71, 0.45) 0%, rgba(11, 39, 71, 0.88) 45%, rgba(11, 39, 71, 0.98) 100%); }
  .process-list { grid-template-columns: repeat(2, 1fr); }.process-list li:nth-child(odd) { border-left: 1px solid var(--line); }.process-list li:last-child { grid-column: span 2; border-bottom: 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 3rem; }.benefits-intro { position: static; }

  .applications-heading { grid-template-columns: 1fr; gap: 1rem; }
  .mockup-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 310px); }.mockup-box { grid-row: span 2; }.mockup-card { grid-column: 2; }.mockup-social { grid-column: span 2; }
  .footer-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* Tablet: el texto conserva una zona protegida a la izquierda. */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero { min-height: clamp(590px, 78vh, 720px); }
  .hero-copy { max-width: 56%; }
  .carousel-slide {
    --position-x: var(--tablet-position-x);
    --position-y: var(--tablet-position-y);
    --image-scale: var(--tablet-scale);
  }
  .carousel-slide.slide-1 { --tablet-position-x: 50%; --tablet-position-y: 61%; --tablet-scale: 1; }
  .carousel-slide.slide-2 { --tablet-position-x: 88%; --tablet-position-y: 63%; --tablet-scale: 1; }
  .carousel-slide.slide-3 { --tablet-position-x: 92%; --tablet-position-y: 68%; --tablet-scale: 1; }
  .hero-overlay { background: linear-gradient(90deg, rgba(252, 250, 245, .94) 0%, rgba(252, 250, 245, .86) 42%, rgba(252, 250, 245, .28) 68%, transparent 100%); }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .section { padding: 4.8rem 0; }
  h1 { font-size: clamp(2.2rem, 10.5vw, 3.5rem); line-height: 1.06; } h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .button-row { align-items: flex-start; flex-direction: row; gap: 1.1rem; }.button-row .text-link { min-height: 44px; justify-content: center; }
  .issue-list { grid-template-columns: 1fr; gap: 0; }
  .process-list { display: block; }.process-list li { min-height: auto; padding: 1.4rem 1.2rem 1.6rem 5rem; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line) !important; }.process-list li:last-child { border-bottom: 0; }.process-list li::before { top: 2rem; left: -1px; }.step-icon { position: absolute; top: 1.15rem; left: 1rem; width: 46px; height: 46px; padding: 7px; margin: 0; }.step-number { display: block; margin-bottom: .6rem; }

  .mockup-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 330px); }.mockup-box, .mockup-card, .mockup-social { grid-column: auto; grid-row: auto; }.control-card { right: 7%; width: 86%; }.sticker { width: 48%; }
  .browser-page { min-height: 470px; padding: 18px; }.browser-page > header nav { display: none; }.browser-hero { min-height: 225px; }.service-options { grid-template-columns: 1fr 1fr; }.service-options div:last-child { display: none; }.whatsapp-concept { right: 18px; bottom: 18px; }
  .projection-note { grid-template-columns: 1fr; gap: .75rem; }
  .button-row-center { align-items: flex-start; justify-content: flex-start; }.closing-line { margin-top: 4rem; }
}

/* Móvil: Fotografía de carrusel a pantalla completa como fondo y contenido superpuesto. */
@media (max-width: 640px) {
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(480px, 75vh, 580px) !important;
    padding-top: clamp(6.2rem, 14vw, 7.2rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
    overflow: hidden;
    background: var(--paper);
  }

  .hero .container {
    width: min(calc(100% - 40px), var(--container));
    padding-left: 0;
    padding-right: 0;
  }

  .hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out;
  }

  .carousel-slide.is-active {
    opacity: 1;
    z-index: 1;
  }

  .carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--position-x) var(--position-y);
    transform: scale(var(--image-scale)) scaleX(var(--image-flip));
    transform-origin: var(--position-x) var(--position-y);
  }

  .carousel-slide.slide-1 { --position-x: 65%; --position-y: 45%; --image-scale: 1; }
  .carousel-slide.slide-2 { --position-x: 75%; --position-y: 48%; --image-scale: 1; }
  .carousel-slide.slide-3 { --position-x: 85%; --position-y: 52%; --image-scale: 1; }

  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(252, 250, 245, 0.95) 0%,
      rgba(252, 250, 245, 0.88) 45%,
      rgba(252, 250, 245, 0.62) 70%,
      rgba(252, 250, 245, 0.22) 100%
    );
  }

  .hero-grid {
    position: relative;
    z-index: 3;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 3.3rem);
    line-height: 1.05;
    color: var(--navy);
    text-align: left;
    margin-bottom: 0;
  }

  .hero-copy .lead {
    font-size: clamp(1rem, 4.2vw, 1.125rem);
    line-height: 1.55;
    color: var(--navy);
    max-width: 360px;
    margin-top: 1.1rem;
    text-align: left;
  }

  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .digital-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-card { padding: 1.5rem 1.25rem; }
  .contact-form .form-row-2 { grid-template-columns: 1fr; gap: 0; }

  .hero-copy .button-row,
  .section-copy .button-row,
  .process .button-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: clamp(1.1rem, 3.5vw, 1.4rem);
    width: auto;
  }

  .hero-copy .button-row .button,
  .section-copy .button-row .button,
  .process .button-row .button {
    display: inline-flex;
    width: auto !important;
    max-width: max-content;
    align-self: flex-start;
    padding: 16px 24px;
    min-height: 48px;
    font-size: 0.88rem;
    text-align: left;
  }

  .whatsapp-float { right: 16px; bottom: 16px; min-height: 50px; gap: .5rem; padding: .68rem .9rem; font-size: .82rem; }
  .whatsapp-float__icon { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
