/* REPM: colores y espaciados principales. No requiere librerías externas. */
:root {
  --navy: #103e50;
  --deep: #0b2e3c;
  --cyan: #009ab4;
  --aqua: #46d4e1;
  --ink: #182b33;
  --muted: #56676e;
  --line: #d6e0e4;
  --paper: #f2f6f7;
  --white: #fff;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, summary { cursor: pointer; }
button[hidden] { display: none !important; }
[hidden] { display: none !important; }
::selection { background: var(--aqua); color: var(--deep); }
:focus-visible { outline: 3px solid #007f97; outline-offset: 5px; }
.hero :focus-visible, .about :focus-visible { outline-color: var(--aqua); }
.wrap { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px 20px; z-index: 100; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-block; flex-shrink: 0; line-height: 0; }
.brand img { width: 157px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 33px; }
.nav-links a { font-size: .9375rem; font-weight: 600; text-decoration: none; padding-block: 14px; }
.nav-links a:hover { color: #007a91; }
.nav-links .nav-contact { padding: 13px 20px; border: 1px solid var(--navy); color: var(--navy); margin-left: 8px; }
.nav-contact span { margin-left: 13px; }
.nav-contact:hover { background: var(--paper); }
.menu-toggle { border: 1px solid var(--line); background: var(--white); padding: 9px 13px; align-items: center; gap: 12px; color: var(--navy); min-height: 44px; }
.menu-icon { width: 19px; height: 10px; border-block: 1px solid; }
.hero { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); background: var(--deep); color: var(--white); min-height: 690px; }
.hero-content { position: relative; padding: 70px 45px 45px max(48px, calc((100vw - var(--wrap)) / 2)); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 65px 65px; }
.eyebrow { font-size: .8125rem; font-weight: 700; line-height: 1.6; letter-spacing: .1em; color: #52636b; }
.eyebrow.light { color: #b3ccd5; }
h1 { font-size: clamp(3.25rem, 4.8vw, 5.25rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 700; margin-block: 26px 25px; }
h1 span { color: var(--aqua); }
.hero-description { max-width: 390px; color: #d4e1e6; font-size: 1.0625rem; line-height: 1.65; margin-bottom: 29px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 16px 21px; min-height: 52px; max-width: 100%; font-size: .9375rem; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-cyan { color: var(--deep); background: var(--aqua); }
.button-cyan:hover { background: #84e7ef; }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover { background: #075972; }
.button span { font-size: 1.35rem; line-height: 1; }
.hero-note { display: flex; gap: 15px; align-items: center; margin-top: 43px; }
.hero-note p { font-size: .875rem; color: #b3ccd5; line-height: 1.5; }
.hero-rule { width: 38px; height: 1px; background: #8faeb9; }
.hero-media { position: relative; min-height: 100%; background: var(--navy); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6,25,32,.82)); pointer-events: none; }
.hero-media figcaption { position: absolute; left: 40px; right: 40px; bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 20px; z-index: 1; }
.hero-media figcaption strong { display: block; font-size: 1.65rem; letter-spacing: -.02em; margin: 9px 0 1px; line-height: 1.2; }
.hero-media figcaption div > span:last-child { display: block; color: #d5e1e5; font-size: .875rem; margin-top: 7px; }
.hero-media figcaption a { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid #c0d0d7; text-decoration: none; font-size: 1.65rem; }
.hero-media figcaption a:hover { background: rgba(255,255,255,.14); }
.intro-strip { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 37px; }
.experience { display: flex; align-items: center; gap: 19px; }
.experience strong { font-size: 3.75rem; color: var(--navy); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.experience span { color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.intro-strip > p { color: var(--muted); line-height: 1.6; border-left: 1px solid var(--line); padding-left: 45px; }
.intro-strip strong { color: var(--navy); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; font-size: .9375rem; font-weight: 700; text-decoration: none; padding-block: 10px; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 1.25rem; }
.section { padding-block: 100px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin-top: 16px; }
h2 { font-size: clamp(2.3rem, 3.8vw, 3.8rem); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; color: var(--navy); }
.section-heading > p { color: var(--muted); max-width: 410px; padding-bottom: 4px; font-size: 1.0625rem; }
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #c7d4d9; border-left: 1px solid #c7d4d9; }
.service { padding: 28px 30px 33px; border-right: 1px solid #c7d4d9; border-bottom: 1px solid #c7d4d9; }
.service-number { font-size: .875rem; color: #007e94; font-weight: 700; }
.service h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.025em; color: var(--navy); margin-top: 26px; margin-bottom: 0; }
.about { background: var(--deep); color: #d2e0e5; position: relative; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; }
.about h2 { color: var(--white); margin-top: 20px; }
.about h2 span { color: var(--aqua); }
.about-coordinate { margin-top: 45px; padding-top: 20px; border-top: 1px solid #37535e; font-size: .8125rem; letter-spacing: .09em; color: #a6bfc9; }
.about-copy p { margin-bottom: 23px; }
.about-copy .lead { font-size: 1.45rem; line-height: 1.5; color: var(--white); letter-spacing: -.02em; }
.values { border-top: 1px solid #37535e; padding-top: 20px; display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 10px; font-size: .875rem; color: #a9dce3; }
.process { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.process-grid li { padding: 25px 22px 0 0; }
.process-grid li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.process-grid li > span { font-size: .875rem; color: #007f96; font-weight: 700; }
.process-grid h3 { color: var(--navy); font-size: 1.25rem; margin: 18px 0 9px; letter-spacing: -.02em; }

.contact { padding-block: 85px; background: #e6f3f5; border-top: 1px solid #c6e1e7; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; }
.contact h2 { margin-block: 22px; font-size: clamp(2.7rem, 4.6vw, 4.7rem); }
.contact h2 span { color: #007e96; }
.contact-grid > div > p:not(.eyebrow) { max-width: 385px; color: #46636e; margin-bottom: 28px; }
.contact-info { padding-top: 12px; }
.contact-info > div { padding: 23px 0; border-top: 1px solid #b7d2da; }
.contact-info h3 { color: #4d6772; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 13px; }
.phone { display: block; width: fit-content; font-size: clamp(1.6rem, 2.5vw, 2.35rem); color: var(--navy); line-height: 1.6; letter-spacing: -.03em; text-decoration: none; }
.phone:hover { text-decoration: underline; }
address { font-style: normal; }
.site-footer { padding-block: 36px 20px; }
.footer-main { display: flex; align-items: center; gap: 50px; padding-bottom: 30px; }
.footer-main p { color: var(--muted); font-size: .875rem; }
.footer-main > .text-link { margin-left: auto; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 17px; display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: .8125rem; }
/* Galerías por especialidad: desplazamiento nativo y controles progresivos. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px 34px; }
.work-gallery { min-width: 0; scroll-margin-top: 120px; }
.gallery-heading { grid-column: 1; grid-row: 2; padding: 23px 22px 0 0; }
.gallery-heading h3 { color: var(--navy); font-size: 1.875rem; line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.carousel { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--white); }
.carousel-track { grid-column: 1 / -1; grid-row: 1; position: relative; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #a4bac3 var(--paper); }
.carousel-track:focus-visible { outline-offset: -4px; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-image { aspect-ratio: 1.53; background: #e5edef; }
.carousel-image img { width: 100%; height: 100%; object-fit: cover; }
.carousel-image img[data-orientation="portrait"] { object-fit: contain; }
.carousel-controls { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; padding-top: 18px; }
.carousel-position { font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel-current { color: var(--navy); font-weight: 700; }
.carousel-buttons { display: flex; gap: 9px; }
.carousel-buttons button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #aec4cd; background: var(--white); color: var(--navy); font-size: 1.5rem; line-height: 1; transition: color .2s, background .2s; }
.carousel-buttons button:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
.clients { background: var(--paper); border-top: 1px solid var(--line); }
.clients-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; padding: 0; margin: 0; }
.clients-grid li { min-height: 135px; display: grid; place-items: center; background: var(--white); border: 1px solid #e1e8eb; padding: 20px; }
.clients-grid img { width: auto; height: auto; max-width: 100%; max-height: 88px; object-fit: contain; }
@media (min-width: 901px) { .menu-toggle { display: none; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .nav-links { gap: 23px; }
  .nav-links .nav-contact { margin-left: 0; padding-inline: 14px; }
  .hero { min-height: 655px; grid-template-columns: minmax(0,48%) minmax(0,52%); }
  .hero-content { padding-left: 32px; padding-right: 28px; }
  .hero-media figcaption { left: 28px; right: 28px; }
  .section-heading { gap: 45px; }
  .service { padding-inline: 22px; }
  .intro-strip > p { padding-left: 30px; }
  .about-grid, .contact-grid { gap: 55px; }
  .process-grid li { padding-right: 15px; }
  .process-grid li + li { padding-left: 15px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 80px; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
  .brand img { width: 140px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 9px 25px; }
  .is-enhanced .nav-links { display: none; }
  .is-enhanced.is-open .nav-links { display: flex; padding-top: 8px; padding-bottom: 5px; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 640px; }
  .hero-content { padding-top: 50px; }
  h1 { font-size: clamp(2.25rem, 5.6vw, 3.5rem); }
  .hero-media figcaption { left: 23px; right: 23px; bottom: 30px; }
  .hero-media figcaption strong { font-size: 1.4rem; }
  .hero-media figcaption a { display: none; }
  .hero .eyebrow { font-size: .75rem; }
  .hero-description { font-size: 1rem; }
  .intro-strip { flex-wrap: wrap; gap: 25px; }
  .intro-strip > .text-link { display: none; }
  .section { padding-block: 75px; }
  .section-heading { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section-heading > p { font-size: 1rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .about-grid { gap: 40px; }
  .about-copy .lead { font-size: 1.2rem; }
  .process-grid { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 25px; }
  .process-grid li:nth-child(4) { border-left: none; padding-left: 0; }
  .contact { padding-block: 70px; }
  .contact-grid { gap: 35px; }
  .gallery-grid { gap: 42px 24px; }
  .gallery-heading h3 { font-size: 1.5rem; }
  .clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { position: relative; }
  html { scroll-padding-top: 20px; }
  .header-inner { min-height: 76px; }
  .brand img { width: 132px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 13px 4px; }
  .nav-links .nav-contact { margin-top: 10px; padding: 13px; }
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-content { padding: 40px 24px 34px; }
  h1 { font-size: clamp(2.4rem, 10.8vw, 4.6rem); margin-top: 24px; margin-bottom: 23px; }
  .hero-description { max-width: 420px; font-size: 1rem; }
  .hero-note { margin-top: 30px; }
  .hero-media { min-height: 345px; height: 76vw; max-height: 475px; }
  .hero-media > img { object-position: center; }
  .hero-media figcaption { left: 24px; right: 24px; bottom: 25px; }
  .hero-media figcaption strong { font-size: 1.5rem; }
  .hero-media figcaption a { display: grid; }
  .intro-strip { padding-block: 30px; gap: 24px; }
  .experience strong { font-size: 3.3rem; }
  .intro-strip > p { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .section { padding-block: 60px; }
  .section-heading { display: block; margin-bottom: 32px; }
  h2 { font-size: clamp(2.3rem, 8.5vw, 3.4rem); }
  .section-heading > p { margin-top: 23px; max-width: 100%; }
  .services-grid { grid-template-columns: minmax(0,1fr); }
  .service { padding: 25px 24px; }
  .service h3 { margin-top: 16px; }

  .about-grid { display: block; }
  .about-coordinate { margin-top: 30px; margin-bottom: 32px; }
  .about-copy .lead { font-size: 1.3rem; }
  .process-grid { display: block; }
  .process-grid li, .process-grid li + li { border-left: 0; border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 45px 1fr; column-gap: 10px; }
  .process-grid li > span { padding-top: 3px; }
  .process-grid h3 { margin: 0 0 5px; }

  .contact { padding-block: 55px; }
  .contact-grid { display: block; }
  .contact h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .contact-info { margin-top: 40px; padding-top: 0; }
  .phone { font-size: 2.1rem; }
  .footer-main { flex-wrap: wrap; gap: 25px; }
  .footer-main p { flex-basis: 100%; }
  .footer-main > .text-link { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .gallery-heading { padding-top: 20px; }
  .gallery-heading h3 { font-size: 1.65rem; }
  .carousel-image { aspect-ratio: 1.3; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .clients-grid li { min-height: 120px; padding: 15px; }
  .clients-grid img { max-height: 82px; }
  .work-gallery { scroll-margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header { position: static; }
  .nav-links, .menu-toggle, .hero .button, .hero-media figcaption a { display: none !important; }
  .hero { min-height: 520px; }
  .hero-content { padding: 25px; }
  .section { padding-block: 35px; }
  .wrap { width: 100%; }
  .work-gallery, .service { break-inside: avoid; }

  .section-heading, .about-grid, .contact-grid { gap: 30px; }
  .carousel-controls { display: none !important; }
  .carousel-track { display: block; overflow: visible; }
  .carousel-slide { display: none; }
  .carousel-slide:first-child { display: block; }
  .clients-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
