/* ===== Variables ===== */
:root {
  --color-primary: #1a2b3c;
  --color-primary-light: #2c3e50;
  --color-accent: #1a365d;
  --color-accent-hover: #122847;
  --color-accent-soft: #d7e3f0;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-500: #868e96;
  --color-gray-700: #495057;
  --color-gray-900: #212529;
  --color-whatsapp: #25d366;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --container-max: 1200px;
  --navbar-height: 72px;
  --nav-pill: linear-gradient(135deg, #2c4a6e 0%, #1a365d 50%, #122847 100%);
  --nav-pill-glow: 0 0 16px rgba(26, 54, 93, 0.35);
  --section-padding: clamp(3.5rem, 6vw, 6rem);
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--color-gray-900);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
ul { list-style: none; }

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow:
    0 1px 2px rgba(15, 41, 66, 0.18),
    0 6px 16px rgba(15, 41, 66, 0.22);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(15, 41, 66, 0.16),
    0 12px 28px rgba(15, 41, 66, 0.28);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(15, 41, 66, 0.2),
    0 3px 8px rgba(15, 41, 66, 0.18);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn--outline:active {
  transform: translateY(0);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}
.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
  box-shadow:
    0 1px 2px rgba(26, 143, 68, 0.2),
    0 6px 16px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(26, 143, 68, 0.18),
    0 12px 28px rgba(37, 211, 102, 0.32);
}
.btn--whatsapp:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(26, 143, 68, 0.2),
    0 3px 8px rgba(37, 211, 102, 0.2);
}
.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn--sm { padding: 8px 20px; font-size: .875rem; }
.btn--full { width: 100%; }
.btn:disabled,
.btn:disabled:hover,
.btn:disabled:active {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Navbar (floating tray) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  padding: 14px 0 0;
  pointer-events: none;
  transition: padding 0.35s ease;
}
.navbar--scrolled {
  padding-top: 10px;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: calc(var(--navbar-height) - 14px);
  pointer-events: none;
}
.navbar__tray {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1100px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 40px rgba(26, 43, 60, 0.12),
    0 2px 8px rgba(26, 43, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.35s ease, background 0.35s ease;
  overflow: visible;
}
.navbar--scrolled .navbar__tray {
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 14px 44px rgba(26, 43, 60, 0.14),
    0 2px 10px rgba(26, 43, 60, 0.08);
}
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 10px 2px 2px;
  margin-right: 4px;
  border-right: 1px solid rgba(26, 43, 60, 0.08);
  text-decoration: none;
}
.navbar__logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.navbar__brand {
  display: none;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: 8px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.navbar__menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(26, 43, 60, 0.05);
  justify-content: center;
}
.navbar__pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  width: 0;
  border-radius: 999px;
  background: var(--nav-pill);
  box-shadow: var(--nav-pill-glow);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}
.navbar__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.navbar__link:hover {
  color: var(--color-primary);
}
.navbar__link.is-active {
  color: var(--color-primary);
}
@media (min-width: 901px) {
  .navbar__link.is-pill,
  .navbar__link.is-pill:hover,
  .navbar__link.is-active.is-pill {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  }
}
.navbar__menu--simple {
  background: transparent;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 8px;
  flex: 1;
}
.navbar__menu--simple a {
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  padding: 8px 10px;
}
.navbar__menu--simple a:hover { color: var(--color-accent); }
.navbar:has(.navbar__menu--simple) .navbar__tray {
  justify-content: space-between;
}

/* Language switcher */
.lang {
  position: relative;
  margin-left: 4px;
  flex-shrink: 0;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26, 43, 60, 0.08);
  background: rgba(26, 43, 60, 0.04);
  color: var(--color-primary);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  justify-content: center;
}
.lang__btn:hover,
.lang.is-open .lang__btn {
  border-color: rgba(26, 54, 93, 0.45);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.lang__flag-img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.lang__option .lang__flag-img {
  width: 24px;
  height: 18px;
}
.lang__chevron { transition: transform .2s ease; flex-shrink: 0; }
.lang.is-open .lang__chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1100;
  min-width: 200px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.lang__menu[hidden] {
  display: none !important;
}
.lang__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  font-family: var(--font);
  font-size: .95rem;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.lang__option:hover {
  background: #f3f4f6;
}
.lang__option.is-active {
  background: rgba(26, 54, 93, 0.1);
  color: var(--color-accent-hover);
}
.lang__option-name {
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.2;
}
body.is-rtl .lang__menu { right: auto; left: 0; }
body.is-rtl .lang__option { text-align: right; flex-direction: row-reverse; }
body.is-rtl .lang { margin-left: 0; margin-right: 4px; }
body.is-rtl .navbar__inner { flex-direction: row-reverse; }
body.is-rtl .navbar__menu { direction: rtl; }
body.is-rtl .navbar__logo {
  border-right: none;
  border-left: 1px solid rgba(26, 43, 60, 0.08);
  margin-right: 0;
  margin-left: 4px;
}

.navbar__toggle {
  display: none;
  pointer-events: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(26, 43, 60, 0.05);
  border: 1px solid rgba(26, 43, 60, 0.08);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.navbar__toggle:hover {
  background: rgba(26, 54, 93, 0.12);
  border-color: rgba(26, 54, 93, 0.35);
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
  transform-origin: center;
}
.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Page transition veil */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(44, 74, 110, 0.35), transparent 45%),
    linear-gradient(180deg, #1a2b3c 0%, #243447 100%);
  opacity: 0;
  transform: translateY(100%);
  transition: none;
}
.page-transition.is-active {
  pointer-events: auto;
  animation: pageWipe 0.75s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes pageWipe {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  55% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

section[id] {
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.section--enter {
  animation: sectionEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sectionEnter {
  from {
    opacity: 0.35;
    transform: translateY(28px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(26, 43, 60, 0.88) 0%, rgba(44, 62, 80, 0.78) 45%, rgba(52, 73, 94, 0.85) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(26, 54, 93, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--navbar-height) + 2rem) var(--container-padding) 5rem;
  max-width: min(800px, 100%);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--color-accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215, 227, 240, 0.18);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--color-accent-soft); }
.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
.hero__actions .btn--primary {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.22);
}
.hero__actions .btn--primary:hover {
  background: #f4f7fb;
  color: var(--color-accent-hover);
  border-color: #f4f7fb;
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.14),
    0 14px 32px rgba(0, 0, 0, 0.26);
}
.hero__actions .btn--primary:active {
  transform: translateY(0);
  background: #eef3f8;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.18);
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll a {
  color: rgba(255,255,255,.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Stats ===== */
.stats {
  background: var(--color-white);
  padding: 48px 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 24px;
  border: 1px solid var(--color-gray-200);
}
.stats__item {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--color-gray-200);
}
.stats__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}
.stats__plus, .stats__unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}
.stats__label {
  display: block;
  font-size: .875rem;
  color: var(--color-gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--color-gray-50); }
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}
.section__tag::before,
.section__tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: .5;
}
.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section__header p {
  color: var(--color-gray-500);
  font-size: 1.05rem;
}
.section__cta { text-align: center; margin-top: 48px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 24px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--color-gray-200);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.card:hover {
  transform: translateY(-14px) scale(1.035);
  box-shadow:
    0 28px 60px rgba(26, 43, 60, 0.18),
    0 0 0 1px rgba(26, 54, 93, 0.35);
  border-color: rgba(26, 54, 93, 0.55);
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}
.card:hover .icon-box {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(26, 54, 93, 0.18);
  color: var(--color-accent);
}
.card:hover .icon-box--accent {
  background: var(--color-accent);
  color: #fff;
}
.card--icon { text-align: left; }
.card--service { text-align: left; }

/* Icons */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon--lg {
  width: 28px;
  height: 28px;
}
.icon--star {
  width: 16px;
  height: 16px;
  color: #e8a317;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(26, 43, 60, 0.06);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, color 0.35s ease;
}
.icon-box--accent {
  background: rgba(26, 54, 93, 0.1);
  color: var(--color-accent);
}
.icon-box--contact {
  width: 44px;
  height: 44px;
  background: rgba(26, 43, 60, 0.05);
  color: var(--color-primary);
  margin-bottom: 0;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.card p { color: var(--color-gray-500); font-size: .9rem; line-height: 1.65; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.gallery__item:hover {
  box-shadow:
    0 32px 64px rgba(26, 43, 60, 0.22),
    0 0 0 1px rgba(26, 54, 93, 0.4);
  transform: translateY(-16px) scale(1.03);
  border-color: rgba(26, 54, 93, 0.5);
}
.gallery__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-gray-200);
}
.gallery__frame {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-900);
  aspect-ratio: 4 / 3;
}
.gallery__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}
.gallery__item:hover .gallery__photo {
  transform: scale(1.12);
  filter: saturate(1.15) contrast(1.05);
}
.gallery__item:hover .gallery__label {
  transform: translateY(-2px) scale(1.05);
}
.gallery__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 10px;
  color: var(--color-white);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: transform 0.35s ease;
}
.gallery__frame--before .gallery__label { background: rgba(33, 37, 41, 0.88); }
.gallery__frame--after .gallery__label { background: rgba(26, 54, 93, 0.92); }
.gallery__info {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--color-gray-200);
}
.gallery__info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.gallery__info p { font-size: .9rem; color: var(--color-gray-500); line-height: 1.65; }

/* ===== Process ===== */
.process {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process__step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-200);
}
.process__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}
.process__content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.process__content p { color: var(--color-gray-500); }

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--color-gray-200);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.review:hover {
  box-shadow:
    0 24px 48px rgba(26, 43, 60, 0.16),
    0 0 0 1px rgba(26, 54, 93, 0.35);
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(26, 54, 93, 0.45);
}
.review__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.review__text {
  color: var(--color-gray-700);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
}
.review__author strong {
  display: block;
  font-size: .9rem;
  color: var(--color-primary);
}
.review__author span {
  font-size: .8rem;
  color: var(--color-gray-500);
}

/* ===== FAQ ===== */
.faq {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}
.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: var(--color-gray-50); }
.faq__item p {
  padding: 0 24px 20px;
  color: var(--color-gray-500);
  font-size: .95rem;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-left: 3px solid var(--color-accent);
  border-radius: 12px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}
.contact__card--mail { border-left-color: #2c3e50; }
.contact__card--whatsapp { border-left-color: #25d366; }
.contact__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 43, 60, 0.1);
  border-color: transparent;
  border-left-width: 3px;
}
.contact__card--phone:hover { border-left-color: var(--color-accent); }
.contact__card--mail:hover { border-left-color: #2c3e50; }
.contact__card--whatsapp:hover { border-left-color: #25d366; }
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(26, 54, 93, 0.12);
  color: var(--color-accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.contact__card--mail .contact__icon {
  background: rgba(26, 43, 60, 0.08);
  color: var(--color-primary);
}
.contact__card--whatsapp .contact__icon {
  background: rgba(37, 211, 102, 0.14);
  color: #128c7e;
}
.contact__card:hover .contact__icon {
  transform: scale(1.08);
}
.contact__icon .icon {
  width: 22px;
  height: 22px;
}
.contact__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.contact__label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  word-break: break-word;
  line-height: 1.3;
}
.contact__arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--color-gray-300);
  transition: transform 0.3s ease, color 0.25s ease;
}
.contact__card:hover .contact__arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}
.contact__card--whatsapp:hover .contact__arrow { color: #128c7e; }
.contact__card--mail:hover .contact__arrow { color: var(--color-primary); }
.contact__hours {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
  padding: 20px 18px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(26, 54, 93, 0.08) 0%, rgba(26, 43, 60, 0.04) 100%);
  border: 1px dashed rgba(26, 54, 93, 0.35);
}
.contact__hours-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact__hours-icon .icon {
  width: 20px;
  height: 20px;
}
.contact__hours h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.contact__hours p {
  color: var(--color-gray-700);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}
body.is-rtl .contact__card {
  border-left: 1px solid var(--color-gray-200);
  border-right: 3px solid var(--color-accent);
}
body.is-rtl .contact__card--mail { border-right-color: #2c3e50; }
body.is-rtl .contact__card--whatsapp { border-right-color: #25d366; }
body.is-rtl .contact__card:hover .contact__arrow {
  transform: translateX(-4px);
}
.contact__form {
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(26, 54, 93, 0.55), rgba(26, 43, 60, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(26, 43, 60, 0.1);
  overflow: hidden;
}
.contact__form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.contact__form-head {
  padding: 28px 36px 20px;
  background:
    linear-gradient(145deg, rgba(26, 54, 93, 0.1) 0%, rgba(26, 43, 60, 0.04) 55%, transparent 100%);
  border-bottom: 1px solid var(--color-gray-200);
}
.contact__form-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  background: rgba(26, 54, 93, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.contact__form-lead {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 34ch;
}
.form__body {
  padding: 28px 36px 32px;
}
.form__group { margin-bottom: 18px; }
.form__group:last-of-type { margin-bottom: 22px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form__group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-gray-50);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-gray-500);
}
.form__group input:hover,
.form__group select:hover,
.form__group textarea:hover {
  border-color: #c5ccd3;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.16);
}
.form__group textarea {
  resize: vertical;
  min-height: 132px;
}
.form__select {
  position: relative;
}
.form__select select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.form__select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.form__submit {
  margin-top: 4px;
  min-height: 54px;
  letter-spacing: 0.02em;
}
.form__note {
  text-align: center;
  font-size: .8rem;
  color: var(--color-gray-500);
  margin-top: 14px;
  line-height: 1.5;
}
.form__note a {
  color: var(--color-accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__feedback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 0 36px 8px;
  font-size: .92rem;
  line-height: 1.5;
}
.form__feedback[hidden] { display: none !important; }
.form__feedback .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form__feedback--success {
  background: rgba(37, 211, 102, 0.12);
  color: #0f7a45;
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.form__feedback--error {
  background: rgba(192, 57, 43, 0.08);
  color: #a93226;
  border: 1px solid rgba(192, 57, 43, 0.25);
}
body.is-rtl .form__select::after {
  right: auto;
  left: 16px;
}
body.is-rtl .form__select select {
  padding-right: 16px;
  padding-left: 42px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand img {
  display: block;
  margin-bottom: 16px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}
.footer__brand p { font-size: .9rem; line-height: 1.7; }
.footer h4 {
  color: var(--color-white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer__links a,
.footer__contact a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--color-accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===== Floating Elements ===== */
.whatsapp-float {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.back-to-top {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(96px, calc(env(safe-area-inset-right) + 72px));
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
.back-to-top .icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

/* ===== Legal Pages ===== */
.legal {
  padding: calc(var(--navbar-height) + 2.5rem) 0 4rem;
  max-width: min(800px, 100%);
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 32px 0 12px;
}
.legal p, .legal li {
  color: var(--color-gray-700);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal a { color: var(--color-accent); }

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
.section--flash {
  animation: sectionFlash 0.85s ease;
}
@keyframes sectionFlash {
  0% { filter: brightness(1); }
  25% { filter: brightness(1.06) saturate(1.08); }
  100% { filter: brightness(1); }
}
body.page-enter {
  animation: pageEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */

/* Tablet landscape & small laptop (iPad Pro landscape) */
@media (max-width: 1024px) {
  :root { --navbar-height: 68px; }
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { gap: 32px; }
  .navbar__link { font-size: .82rem; padding: 8px 12px; }
}

/* Tablet portrait (iPad) */
@media (max-width: 900px) {
  .navbar {
    padding: 10px 0 0;
  }
  .navbar__inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 0;
  }
  .navbar__tray {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 28px;
    gap: 8px 10px;
  }
  .navbar__tray.is-open {
    padding-bottom: 14px;
  }
  .navbar__logo {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    flex: 1;
    min-width: 0;
    gap: 0;
  }
  .navbar__brand {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar__logo img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
  .lang {
    margin: 0 0 0 auto;
  }
  .lang__btn {
    padding: 6px 8px;
    min-width: 44px;
    min-height: 40px;
  }
  .navbar__toggle {
    display: flex;
  }
  .navbar__toggle.active {
    background: rgba(26, 54, 93, 0.14);
    border-color: rgba(26, 54, 93, 0.45);
  }
  .navbar__menu {
    flex: 1 1 100%;
    order: 10;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    gap: 4px;
    border-radius: 18px;
    background: transparent;
    transform: translateY(-6px);
    transition:
      max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease,
      margin 0.3s ease,
      padding 0.3s ease;
  }
  .navbar__menu--open {
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    margin-top: 6px;
    padding: 10px 6px 4px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: rgba(26, 43, 60, 0.04);
    border-top: 1px solid rgba(26, 43, 60, 0.06);
  }
  .navbar__pill { display: none !important; }
  .navbar__link,
  .navbar__link:hover,
  .navbar__link:focus,
  .navbar__link.is-active,
  .navbar__link.is-active:hover,
  .navbar__link.is-pill,
  .navbar__link.is-pill:hover,
  .navbar__link.is-active.is-pill {
    padding: 13px 14px;
    font-size: 1.02rem;
    border-radius: 14px;
    justify-content: flex-start;
    color: var(--color-primary) !important;
    text-shadow: none !important;
    background: transparent;
  }
  .navbar__link:hover,
  .navbar__link:focus {
    background: var(--color-gray-50);
  }
  .navbar__link.is-active,
  .navbar__link.is-active:hover {
    background: rgba(26, 54, 93, 0.16);
    color: var(--color-accent-hover) !important;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.is-rtl .lang {
    margin: 0 auto 0 0;
  }
  .navbar__menu--simple {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-direction: row;
    flex: 1;
    order: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 12px;
    background: transparent;
    border: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero__scroll a { animation: none; }
  .page-transition,
  .navbar__pill { transition: none !important; animation: none !important; }
  .card:hover,
  .gallery__item:hover,
  .review:hover { transform: none; }
}

/* Mobile (phones) */
@media (max-width: 768px) {
  :root { --navbar-height: 64px; }
  .stats {
    margin-top: -24px;
    padding: 32px 0;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding: 24px 16px;
  }
  .stats__item:not(:last-child)::after { display: none; }
  .stats__item:nth-child(odd):not(:nth-last-child(1))::after {
    display: block;
    right: 0;
    top: 10%;
    height: 80%;
  }
  .stats__number { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .stats__plus, .stats__unit { font-size: 1.25rem; }
  .stats__label { font-size: .8rem; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form { padding: 0; }
  .contact__form-head,
  .form__body { padding-left: 22px; padding-right: 22px; }
  .contact__form-head { padding-top: 22px; }
  .form__body { padding-bottom: 24px; }
  .form__feedback { margin-left: 22px; margin-right: 22px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer { padding-top: 48px; }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero__scroll { bottom: 20px; }
  .section__header { margin-bottom: 40px; }
  .section__tag::before,
  .section__tag::after { width: 16px; }
  .process__step { gap: 16px; padding: 24px 0; }
  .process__number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  .process__step:not(:last-child)::after { left: 23px; }
  .faq__item summary { padding: 16px 18px; font-size: .95rem; }
  .faq__item p { padding: 0 18px 16px; }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 64px));
  }
  .legal {
    padding: calc(var(--navbar-height) + 2rem) 0 3rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem;
  }
  .navbar__brand { font-size: 0.88rem; }
  .navbar__logo img { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
  .hero__badge {
    font-size: .7rem;
    padding: 6px 12px;
    letter-spacing: 1px;
  }
  .gallery__images {
    grid-template-columns: 1fr;
  }
  .gallery__frame { aspect-ratio: 16 / 10; }
  .gallery__label {
    top: 8px;
    left: 8px;
    font-size: .62rem;
    padding: 4px 8px;
  }
  .card { padding: 22px; }
  .review { padding: 24px; }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 20px 12px;
  }
  .stats__item:nth-child(odd):not(:nth-last-child(1))::after { display: none; }
  .btn--lg { padding: 14px 24px; font-size: .95rem; }
  .contact__card { padding: 16px; }
  .contact__value { font-size: .98rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { padding: 8px 0; }
  .hero h1 { font-size: 1.6rem; }
  .section__header h2 { font-size: 1.5rem; }
}

/* Large desktop */
@media (min-width: 1280px) {
  :root {
    --container-max: 1240px;
    --container-padding: 2rem;
  }
  .hero__content { max-width: 860px; }
  .section__header { max-width: 720px; }
}

/* Extra large / TV / LED displays */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
    --section-padding: 7rem;
  }
  .hero h1 { font-size: clamp(3rem, 3.5vw, 4rem); }
  .hero__subtitle { font-size: 1.25rem; max-width: 680px; }
  .section__header h2 { font-size: clamp(2.25rem, 2.5vw, 3rem); }
  .stats__number { font-size: 3rem; }
  .card { padding: 32px; }
  .gallery { gap: 40px; }
  .footer__grid { gap: 56px; }
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1480px;
    --section-padding: 8rem;
    --navbar-height: 80px;
  }
  .hero__content { max-width: 960px; }
  .navbar__link { font-size: 1rem; padding: 10px 18px; }
  .btn--lg { padding: 18px 40px; font-size: 1.05rem; }
  .stats__grid { padding: 48px 40px; }
  .contact__form-head { padding: 32px 48px 22px; }
  .form__body { padding: 32px 48px 40px; }
  .form__feedback { margin-left: 48px; margin-right: 48px; }
  .process { max-width: 800px; }
  .faq { max-width: 800px; }
}

@media (min-width: 2560px) {
  :root {
    --container-max: 1680px;
  }
  html { font-size: 18px; }
  .hero h1 { font-size: 4.5rem; }
  .navbar__logo img { width: 48px; height: 48px; }
  .whatsapp-float { width: 68px; height: 68px; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--navbar-height) + 1rem) 0 3rem;
  }
  .hero__content {
    padding-top: calc(var(--navbar-height) + 1rem);
    padding-bottom: 2rem;
  }
  .hero__scroll { display: none; }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero__actions .btn { width: auto; }
}

/* Touch devices – larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .navbar__link { min-height: 44px; }
  .btn--primary:hover,
  .btn--outline:hover,
  .btn--whatsapp:hover,
  .hero__actions .btn--primary:hover {
    transform: none;
  }
  .btn--primary:active,
  .hero__actions .btn--primary:active {
    transform: none;
    filter: brightness(0.95);
  }
  .btn--outline:active {
    transform: none;
    background: rgba(255, 255, 255, 0.14);
  }
  .btn--whatsapp:active {
    transform: none;
    filter: brightness(0.95);
  }
  .card:hover { transform: none; }
  .gallery__item:hover { transform: none; }
  .gallery__item:hover .gallery__photo { transform: none; filter: none; }
  .review:hover { transform: none; }
}

/* Print */
@media print {
  .navbar, .whatsapp-float, .back-to-top, .hero__video-wrap, .hero__scroll, .page-transition { display: none !important; }
  .hero { min-height: auto; background: var(--color-primary) !important; }
  .section { padding: 2rem 0; }
  body { color: #000; }
}
