:root {
  --color-primary: #1f6f9e;
  --color-primary-dark: #175a82;
  --color-secondary: #4fb3e3;
  --color-accent: #a9dcf4;
  --color-bg: #f2faff;
  --color-deep: #0b2f47;
  --color-deeper: #08243a;
  --color-text: #14304a;
  --color-text-light: #4a6378;
  --color-border: rgba(31, 111, 158, 0.16);
  --color-white: #ffffff;
  --color-sand: #f8f3ee;
  --color-blush: #f1ddd3;
  --color-blush-deep: #9a5b47;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 10px rgba(11, 47, 71, 0.05);
  --shadow-md: 0 18px 40px rgba(11, 47, 71, 0.1);
  --header-h: 80px;
  --radius: 6px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--color-primary);
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-deep);
}
h1,
h2 {
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.15rem, 4.4vw, 3rem);
  letter-spacing: -0.005em;
  line-height: 1.12;
}
h3 {
  font-size: 1.45rem;
  font-weight: 600;
}
p {
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
section[id] {
  scroll-margin-top: var(--header-h);
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}
@media (min-width: 1280px) {
  .container {
    padding: 0;
  }
}
.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .section {
    padding: 128px 0;
  }
}
.bg-white {
  background: #fff;
}
.bg-soft {
  background: var(--color-bg);
}
.bg-tint {
  background: var(--color-sand);
}
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(31, 111, 158, 0.22), transparent);
  border: 0;
}
/* El separador va entero dentro del fondo claro: centrado en una linea de
   1px quedaba medio montado sobre la banda oscura de las cifras. */
.divider-sig {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  margin-bottom: -56px;
  background: var(--color-bg);
  z-index: 1;
}
.divider-sig::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(31, 111, 158, 0.22), transparent);
}
.divider-sig svg {
  position: relative;
  width: 120px;
  height: 28px;
  background: var(--color-bg);
  padding: 0 14px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 0 0 100% 0;
  transform: rotate(45deg) translate(-2px, -2px);
  flex-shrink: 0;
}
.eyebrow.light {
  color: var(--color-accent);
}
.eyebrow.light::before {
  background: var(--color-accent);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head p {
  color: var(--color-text-light);
  margin-top: 20px;
}
.section-head .rule {
  width: 56px;
  height: 1px;
  background: var(--color-primary);
  margin: 24px auto 0;
  opacity: 0.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 111, 158, 0.3);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn .icon,
.btn .material-icons {
  font-size: 1.2rem;
}
.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 1px 0 var(--color-border),
    0 8px 24px rgba(11, 47, 71, 0.06);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .nav {
    padding: 0 40px;
  }
}
@media (min-width: 1280px) {
  .nav {
    padding: 0;
  }
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  line-height: 1.1;
  transition: color 0.3s ease;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}
.scrolled .logo,
.menu-open .logo {
  color: var(--color-deep);
}
.scrolled .logo-sub,
.menu-open .logo-sub {
  color: var(--color-primary);
  opacity: 1;
}
.nav-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.scrolled .nav-toggle,
.menu-open .nav-toggle {
  color: var(--color-deep);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.nav-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  list-style: none;
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 20px 30px rgba(11, 47, 71, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.nav-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.nav-menu a {
  display: block;
  padding: 14px 4px;
  color: var(--color-deep);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: var(--color-primary);
}
.nav-menu .nav-cta {
  margin-top: 16px;
  border: 0;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 2px;
}
.nav-menu .nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    max-height: none;
    overflow: visible;
  }
  .nav-menu a {
    color: #fff;
    border: 0;
    padding: 6px 0;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
  }
  .nav-menu a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-menu a:not(.nav-cta):hover::after {
    transform: scaleX(1);
  }
  .nav-menu a:hover {
    color: var(--color-accent);
  }
  .scrolled .nav-menu a {
    color: var(--color-deep);
  }
  .scrolled .nav-menu a:hover {
    color: var(--color-primary);
  }
  .nav-menu .nav-cta {
    margin: 0;
    padding: 12px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
  }
  .nav-menu .nav-cta:hover {
    background: #fff;
    color: var(--color-primary);
  }
  .scrolled .nav-menu .nav-cta {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  .scrolled .nav-menu .nav-cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
  }
}
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--color-deeper);
}
.hero-bg {
  position: absolute;
  inset: -12% 0 0 0;
  height: 124%;
  background-image: url("assets/img/hero-movil.webp");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
@media (min-width: 768px) {
  .hero-bg {
    background-image: url("assets/img/hero.webp");
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 36, 58, 0.55) 0%, rgba(8, 36, 58, 0.62) 50%, rgba(8, 36, 58, 0.85) 100%),
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  background-blend-mode: normal;
  opacity: 0.92;
}
.hero-signature {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-signature .arc {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.38;
  animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.hero-signature .ray {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.28;
  animation: draw 1.6s ease forwards;
}
.hero-signature .beat {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.9;
  animation: draw 3s ease-in-out 1.6s forwards;
}
.hero-signature .beat-glow {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.12;
  animation: draw 3s ease-in-out 1.6s forwards;
}
.hero-signature .pulse-dot {
  fill: var(--color-accent);
  opacity: 0;
  animation:
    dotIn 0.6s ease 4.4s forwards,
    dotBeat 1.2s ease-in-out 5s infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes dotIn {
  to {
    opacity: 1;
  }
}
@keyframes dotBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.6);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.35);
  }
}
.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}
.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  top: 12%;
  left: -80px;
}
.orb-2 {
  width: 220px;
  height: 220px;
  background: var(--color-accent);
  bottom: 10%;
  right: -40px;
  animation-duration: 8s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 20px;
  margin-top: 40px;
}
.hero .eyebrow {
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.1s forwards;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}
.hero-sub {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}
.hero .btn-primary {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 111, 158, 0.45);
  }
  50% {
    box-shadow: 0 0 22px 5px rgba(79, 179, 227, 0.28);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.hero-scroll:hover {
  color: #fff;
}
@media (max-width: 767px) {
  /* en movil el texto del hero llega hasta el electrocardiograma: el
     indicador de scroll se quedaba pisado por la linea */
  .hero-scroll {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    gap: 10px;
  }
}
.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.6s ease,
    transform 0.5s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.icon-arch {
  width: 58px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(169, 220, 244, 0.4);
  color: var(--color-primary);
  border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px;
  margin-bottom: 28px;
}
.icon-arch .material-icons {
  font-size: 1.7rem;
}
.value-card h3 {
  margin-bottom: 12px;
}
.value-card p {
  font-size: 0.98rem;
  color: var(--color-text-light);
}
.band-dark {
  background: var(--color-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 50% -30%, rgba(169, 220, 244, 0.05) 0 1px, transparent 1px 56px);
  pointer-events: none;
}
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(79, 179, 227, 0.15), transparent 60%);
  pointer-events: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
  text-align: center;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  position: relative;
}
@media (min-width: 900px) {
  .stat + .stat::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(169, 220, 244, 0.2);
  }
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 1px;
}
.stat-num span {
  color: var(--color-accent);
}
.stat-label {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.enfoque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 960px) {
  .enfoque-grid {
    grid-template-columns: 5fr 6fr;
    gap: 96px;
  }
}
.arch-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--color-primary);
  border-radius: 240px 240px 4px 4px;
  opacity: 0.45;
  z-index: 0;
}
.arch-img {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 240px 240px 4px 4px;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transition: transform 0.8s ease;
}
.arch-frame:hover .arch-img img {
  transform: scale(1.03);
}
.arch-caption {
  position: absolute;
  z-index: 2;
  left: -12px;
  bottom: 40px;
  background: #fff;
  padding: 18px 22px;
  border-left: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  max-width: 240px;
}
.arch-caption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--color-deep);
  font-weight: 600;
  line-height: 1.2;
}
.arch-caption span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}
.enfoque-text > p {
  color: var(--color-text-light);
  margin-top: 20px;
}
.enfoque-text blockquote {
  margin: 32px 0 8px;
  padding-left: 24px;
  border-left: 1px solid var(--color-primary);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--color-primary-dark);
}
.steps {
  list-style: none;
  margin-top: 44px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(31, 111, 158, 0.1));
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 0 0 28px;
}
.step:last-child {
  padding-bottom: 0;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.step h3 {
  font-size: 1.25rem;
  margin-top: 8px;
}
.step p {
  font-size: 0.96rem;
  color: var(--color-text-light);
  margin-top: 4px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.6s ease,
    transform 0.5s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.service-media {
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-media img.pos-low {
  object-position: 50% 62%;
}
.service-card:hover .service-media img {
  transform: scale(1.05);
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 36, 58, 0.35), transparent 55%);
}
.service-body {
  padding: 0 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-body .icon-arch {
  margin: -34px 0 20px;
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 47, 71, 0.1);
  border: 1px solid var(--color-border);
}
.service-body h3 {
  margin-bottom: 10px;
}
.service-body p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  flex: 1;
}
.service-link {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}
.service-link .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.service-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testi-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px 34px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.6s ease,
    transform 0.5s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.testi-quote {
  position: absolute;
  top: 6px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-blush);
  opacity: 0.7;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.stars .material-icons {
  font-size: 1.05rem;
}
.testi-card blockquote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-deep);
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.testi-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blush);
  color: var(--color-blush-deep);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-blush);
}
.testi-author strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
}
.testi-author span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-deep);
  transition: color 0.3s ease;
}
.faq-q:hover {
  color: var(--color-primary);
}
.faq-q .material-icons {
  color: var(--color-primary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .material-icons {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 4px 26px;
  color: var(--color-text-light);
  animation: fadeIn 0.4s ease;
}
.faq-a p {
  max-width: 700px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
}
.contact-form {
  background: #fff;
  padding: 40px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .contact-form {
    padding: 52px 48px;
  }
}
.contact-form h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.contact-form > p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-deep);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  padding: 14px 16px;
  border: 1px solid rgba(31, 111, 158, 0.25);
  border-radius: 2px;
  background: var(--color-bg);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6d8496;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--color-secondary);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 179, 227, 0.2);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #b3261e;
}
.field-error {
  font-size: 0.82rem;
  color: #b3261e;
  display: none;
}
.field.invalid .field-error {
  display: block;
}
.form-success {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(169, 220, 244, 0.35);
  border-left: 2px solid var(--color-primary);
  color: var(--color-deep);
  font-size: 0.98rem;
}
.form-success.show {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.5s ease;
}
.form-success .material-icons,
.form-alt > .material-icons {
  color: var(--color-primary);
}
.form-alt {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(37, 211, 102, 0.08);
  border-left: 2px solid #1a9e4b;
  color: var(--color-deep);
  font-size: 0.98rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.5s ease;
}
.form-alt[hidden] {
  display: none;
}
.form-alt > .material-icons {
  color: #1a9e4b;
}
.form-alt p {
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.btn-wa {
  background: #1a9e4b;
  color: #fff;
  padding: 12px 22px;
  font-size: 0.95rem;
}
.btn-wa:hover {
  background: #15803d;
  transform: translateY(-2px);
}
.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid #b3261e;
  background: rgba(179, 38, 30, 0.06);
  color: #8c1d18;
  font-size: 0.95rem;
}
.form-error[hidden] {
  display: none;
}
.contact-info h3 {
  font-size: 1.7rem;
  margin-bottom: 28px;
}
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.info-icon {
  width: 48px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(169, 220, 244, 0.4);
  border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px;
  font-size: 1.35rem;
}
.info-icon .material-icons {
  font-size: 1.4rem;
}
.info-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}
.info-list strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-deep);
  margin-bottom: 2px;
}
.info-list span,
.info-list a {
  color: var(--color-text-light);
  font-size: 1rem;
  text-decoration: none;
}
.info-list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.map-wrap {
  margin-top: 36px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  line-height: 0;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.site-footer {
  background: var(--color-deeper);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 100% 0, rgba(169, 220, 244, 0.04) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  }
}
.footer-brand .logo {
  color: #fff;
}
.footer-brand p {
  margin-top: 20px;
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col li {
  font-size: 0.95rem;
}
.social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social a {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(169, 220, 244, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.social a .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 64px;
  border-top: 1px solid rgba(169, 220, 244, 0.14);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: waPulse 2.4s infinite;
  transition: transform 0.3s ease;
}
.whatsapp-float .icon {
  width: 32px;
  height: 32px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.2),
      0 0 0 12px rgba(37, 211, 102, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
