@font-face {
  font-family: 'Archivo Custom';
  src: url('fonts/Archivo-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Custom';
  src: url('fonts/Archivo-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Custom';
  src: url('fonts/Nunito-Variable.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Custom';
  src: url('fonts/Nunito-Italic-Variable.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f4f1;
  --bg-alt: #eef2f5;
  --ink: #0d1b24;
  --ink-muted: #46545d;
  --accent: #d9822b;
  --accent-strong: #b8661e;
  --steel: #1f3b4d;
  --teal: #2b7a78;
  --line: #d6dde3;
  --surface: #ffffff;
  --shadow: 0 20px 60px rgba(15, 30, 40, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --glass-blur: 16px;
  --glass-sat: 140%;
  --glass-radius: 20px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --container: 1200px;
  --font-body: 'Nunito Custom', 'Segoe UI', sans-serif;
  --font-display: 'Archivo Custom', 'Segoe UI', sans-serif;
  --header-height: 108px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8eef4 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 0%, #f5ede4 0%, transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 55%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

main {
  padding-top: var(--header-height);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-radius: var(--glass-radius);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 + p {
  margin-top: 1rem;
}

.section-heading > * + p {
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

.eyebrow.eyebrow-lg {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-about .hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.page-about .section h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

p {
  margin: 0;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(217, 130, 43, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.outline {
  border-color: var(--line);
  color: var(--steel);
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 130, 43, 0.12);
  color: var(--accent-strong);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 27, 36, 0.05);
}

.service-card {
  display: grid;
  gap: 1rem;
}

.services-grid h3 {
  font-size: clamp(1.75rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  color: var(--steel);
}

.site-header.glass {
  border-radius: 0 0 var(--glass-radius) var(--glass-radius);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 240px;
  height: auto;
}

.site-header .logo img {
  height: 80px;
  width: auto;
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--steel);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--steel);
  display: block;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--steel);
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 900;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-nav a {
  color: var(--steel);
  font-weight: 500;
}

.site-nav .has-sub {
  position: relative;
}

.site-nav .subnav {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--ink);
  min-width: 200px;
  border-radius: 14px;
  padding: 0.4rem 0.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1200;
  pointer-events: auto;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav .subnav.glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-nav .subnav a {
  color: var(--steel);
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  display: block;
  pointer-events: auto;
}

.site-nav .subnav a:hover {
  background: rgba(31, 59, 77, 0.08);
}

.site-nav .has-sub:hover .subnav,
.site-nav .has-sub:focus-within .subnav {
  display: flex;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.28);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.lang-switcher a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.lang-switcher a.active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--steel);
}

.submenu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.22);
  color: var(--steel);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.submenu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.has-sub.open .submenu-toggle::after {
  transform: rotate(-135deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-sheet-head {
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
  color: var(--steel);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

body.nav-open {
  overflow: hidden;
}

.hero {
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.hero-home h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
}

.hero-cover {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: url('background.png') center/cover no-repeat;
  overflow: hidden;
  color: #fff;
}

.hero-cover .hero-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-cover .hero-bg-layer.is-active {
  opacity: 1;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 20, 0.55) 0%, rgba(10, 15, 20, 0.25) 55%, rgba(10, 15, 20, 0.1) 100%);
  z-index: 1;
}

.hero-cover .container {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--container));
}

.hero-panel {
  width: min(78%, 1150px);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(20, 30, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: grid;
  gap: 1.5rem;
}

.hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.hero-panel h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.hero-panel .hero-lead {
  margin: 0;
  max-width: 92ch;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: grid;
  gap: 0.35rem;
  color: #fff;
}

.kpi-card strong {
  font-size: 1.1rem;
}

.kpi-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn.glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn.glass:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.3rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(31, 59, 77, 0.08);
}

.stat strong {
  color: var(--steel);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.about-pillars .pillar-card {
  display: grid;
  gap: 1rem;
}

.about-pillars .pillar-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  color: var(--steel);
  margin: 0;
}

.about-pillars .pillar-card p {
  margin: 0;
  color: var(--ink-muted);
}

.icon-card {
  display: grid;
  gap: 0;
}

.icon-card span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 122, 120, 0.12);
  color: var(--teal);
  font-weight: 700;
}

.highlight {
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.highlight p {
  color: rgba(255, 255, 255, 0.85);
}

.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 36, 0.08);
  box-shadow: none;
  transition: border-color 0.2s ease;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.project-card:hover {
  border-color: rgba(13, 27, 36, 0.14);
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 1.25rem 1.4rem 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.project-body h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--steel);
}

.project-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.variations-item {
  padding: 1.5rem 0;
}

.variation-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(15, 30, 40, 0.08);
}

.variation-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
}

.variation-item summary::-webkit-details-marker {
  display: none;
}

.variation-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--steel);
}

.variation-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 36, 0.2);
  display: grid;
  place-items: center;
  color: var(--steel);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.6);
}

.variation-toggle::before {
  content: "+";
  line-height: 1;
}

.variation-item[open] .variation-toggle::before {
  content: "–";
}

.variation-body {
  padding: 0 1.4rem 1.4rem;
}

.card h3 {
  margin-bottom: 1.25rem;
}

.icon-card h3,
.icon-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-muted);
}

.projects-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.25rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.projects-scroll .project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.projects-grid.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .projects-grid.grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.tanks-grid .card {
  display: grid;
  gap: 1.25rem;
}

.tanks-grid .card h3 {
  margin: 0;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

.projects-scroll.is-dragging {
  cursor: grabbing;
}

.projects-scroll-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.22);
  color: var(--steel);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.scroll-btn.prev {
  left: 6px;
}

.scroll-btn.next {
  right: 6px;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
}

.form-grid textarea {
  min-height: 140px;
}

.form-grid label {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer {
  background: #0b1a24;
  color: #fff;
  padding: 3rem 0;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand .logo img {
  width: 260px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5c 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  opacity: 0.6;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 30, 40, 0.6);
  color: #fff;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 1200;
}

.back-to-top:hover {
  background: rgba(20, 30, 40, 0.75);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .whatsapp-fab {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-fab::before {
    inset: -5px;
  }

  .back-to-top {
    right: 16px;
    bottom: 76px;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  margin: 0 0 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.notice {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table th,
.table td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    height: auto;
    padding: 0;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav.glass {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-overlay {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  :root {
    --header-height: 92px;
  }

  .nav-toggle {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-card {
    position: static;
  }

  .hero-cover {
    min-height: 84vh;
    padding: 5.25rem 0 4rem;
  }

  .hero-panel {
    width: min(94vw, 640px);
    padding: 1.8rem 1.6rem;
    gap: 1.2rem;
  }

  .hero-panel h1 {
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1.1;
  }

  .hero-panel p {
    font-size: 0.98rem;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .kpi-card {
    padding: 0.8rem 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-header .logo img {
    height: 64px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(90vw, 420px);
    padding: 1.25rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1100;
    border-radius: var(--glass-radius) 0 0 var(--glass-radius);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-sheet-head {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .menu-row {
    width: 100%;
    cursor: pointer;
  }

  .site-nav > ul > li > a,
  .site-nav > ul > li > .menu-row > a {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.6rem 0;
  }

  .site-nav a {
    display: block;
  }

  .menu-row > a {
    flex: 1;
  }

  .submenu-toggle {
    display: inline-flex;
  }

  .site-nav .has-sub:hover .subnav,
  .site-nav .has-sub:focus-within .subnav {
    display: grid;
  }

  .site-nav .subnav {
    position: static;
    display: grid;
    padding: 0 0 0.2rem 0;
    margin: 0;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .site-nav .subnav a {
    font-size: 1rem;
    color: rgba(13, 27, 36, 0.7);
    padding: 0.35rem 0 0.35rem 1.3rem;
  }

  .has-sub.open .subnav {
    max-height: 420px;
    opacity: 1;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    gap: 0.75rem;
  }

  .lang-switcher {
    width: 100%;
    justify-content: space-between;
    height: 38px;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.2);
  }

  .lang-switcher a {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.35rem 0;
  }

  .nav-actions .btn.primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    height: 46px;
    box-shadow: 0 10px 24px rgba(217, 130, 43, 0.22);
  }

  .site-nav.glass {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

@media (max-width: 768px) {
  .projects-scroll {
    gap: 1rem;
  }

  .projects-scroll .project-card {
    flex: 0 0 280px;
  }

  .scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .scroll-btn.prev {
    left: 6px;
  }

  .scroll-btn.next {
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
