:root {
  --bg: #07100e;
  --bg-2: #0d171b;
  --text: #f4fff9;
  --muted: #b8cbc5;
  --green: #51f79b;
  --cyan: #35c9ff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(8, 24, 24, 0.58);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #06100e;
}

body {
  margin: 0;
  min-height: 100%;
  background-image: url("img/fondo.jpeg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(81, 247, 155, 0.06), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(53, 201, 255, 0.055), transparent 26rem);
  mix-blend-mode: screen;
  opacity: 0.58;
}

body::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 8, 0.56) 0%, rgba(3, 12, 11, 0.34) 52%, rgba(3, 12, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 13, 11, 0.08) 0%, rgba(5, 13, 11, 0.24) 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--green);
  font-family: "JetBrains Mono", Consolas, monospace;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.boot-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.34;
  pointer-events: none;
}

.boot-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-loader.is-glitch {
  animation: bootGlitch 360ms steps(2, end);
}

.boot-frame {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid rgba(81, 247, 155, 0.42);
  box-shadow: 0 0 55px rgba(81, 247, 155, 0.16), inset 0 0 26px rgba(53, 201, 255, 0.08);
  padding: 18px;
  background: rgba(0, 0, 0, 0.74);
}

.boot-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #cfffe4;
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.boot-terminal {
  min-height: 238px;
  max-height: 238px;
  overflow: hidden;
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  line-height: 1.55;
}

.boot-line {
  display: block;
  text-shadow: 0 0 10px rgba(81, 247, 155, 0.7);
  animation: lineIn 120ms ease both;
}

.boot-progress {
  height: 3px;
  margin-top: 14px;
  background: rgba(81, 247, 155, 0.13);
  overflow: hidden;
}

.boot-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform-origin: left;
  animation: loadbar 2.15s ease both;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 30;
  width: 100%;
  padding: 18px clamp(16px, 5vw, 58px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 18%, rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.15) 100%),
    rgba(255, 255, 255, 0.018);
  backdrop-filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    inset 18px 0 34px rgba(255, 255, 255, 0.06);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(81, 247, 155, 0.24), rgba(53, 201, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: #dff8f0;
  font-size: 0.94rem;
  font-weight: 600;
  transform-origin: right center;
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 520ms ease;
}

.nav-links a {
  position: relative;
  transition: color 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.burger-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72) rotate(-45deg);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease;
  backdrop-filter: saturate(1.08) brightness(1.03);
}

.burger-toggle span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #f4fff9;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  transition: transform 360ms ease;
}

.burger-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.burger-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.burger-toggle:hover {
  box-shadow: 0 0 28px rgba(81, 247, 155, 0.22);
}

.navbar.nav-collapsed .nav-links {
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transform: translateX(24px) scaleX(0.18);
}

.navbar.nav-collapsed .burger-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) rotate(0deg);
}

.navbar.nav-open .nav-links {
  animation: navRebirth 680ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 128px clamp(18px, 6vw, 76px) 42px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    radial-gradient(circle at 20% 24%, rgba(81, 247, 155, 0.12), transparent 24rem),
    radial-gradient(circle at 80% 40%, rgba(53, 201, 255, 0.1), transparent 24rem);
  transform: none;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(4, 12, 10, 0.02) 0%, rgba(4, 12, 10, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: fit-content;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.055) 17%, rgba(255, 255, 255, 0.012) 44%, rgba(255, 255, 255, 0.13) 100%),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    inset 18px 18px 34px rgba(255, 255, 255, 0.055),
    inset -20px -20px 42px rgba(53, 201, 255, 0.035);
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 12px auto auto 12%;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  opacity: 0.72;
}

.hero-content::after,
.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.36), transparent 18%, transparent 64%, rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%);
  opacity: 0.86;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9fffd0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(0.74rem, 1.8vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6.2vw, 5.25rem);
  line-height: 0.98;
  font-weight: 900;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  margin-bottom: 16px;
  text-wrap: balance;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 760px;
  color: #d3e5df;
  font-size: clamp(1.06rem, 2vw, 1.36rem);
  line-height: 1.58;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn,
.whatsapp-btn,
.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 22px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn:hover,
.whatsapp-btn:hover,
.email-btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #03110d;
  box-shadow: 0 16px 38px rgba(53, 201, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 22px 52px rgba(81, 247, 155, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(81, 247, 155, 0.54);
  box-shadow: 0 16px 42px rgba(81, 247, 155, 0.12);
}

.hero-status {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(560px, calc(100vw - 36px));
}

.hero-status span {
  border: 1px solid rgba(81, 247, 155, 0.25);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #dcfff0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
}

.section-pad {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 6vw, 76px);
}

.section-heading {
  position: relative;
  max-width: 820px;
  margin: 0 auto 44px;
  padding: clamp(20px, 4vw, 34px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 18%, rgba(255, 255, 255, 0.012) 46%, rgba(255, 255, 255, 0.12) 100%),
    rgba(255, 255, 255, 0.012);
  backdrop-filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card,
.contact-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.05) 17%, rgba(255, 255, 255, 0.012) 44%, rgba(255, 255, 255, 0.12) 100%),
    rgba(255, 255, 255, 0.01);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(255, 255, 255, 0.13),
    inset 1px 0 0 rgba(255, 255, 255, 0.26),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 18px 20px 38px rgba(255, 255, 255, 0.075),
    inset -18px -18px 38px rgba(53, 201, 255, 0.018);
  backdrop-filter: saturate(1.08) brightness(1.03);
  overflow: visible;
}

.feature-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(81, 247, 155, 0.45), rgba(53, 201, 255, 0.24), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card::after,
.contact-panel::after,
.section-heading::after,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 13%, transparent 31%),
    linear-gradient(292deg, transparent 54%, rgba(255, 255, 255, 0.18) 73%, rgba(255, 255, 255, 0.06) 100%);
  opacity: 0.78;
  pointer-events: none;
}

.feature-card h3,
.feature-card p,
.contact-panel h2,
.contact-panel p,
.section-heading h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.feature-card > *,
.contact-panel > *,
.section-heading > *,
.hero-content > *,
.navbar > * {
  position: relative;
  z-index: 1;
}

.feature-card {
  min-height: 330px;
  padding: 28px;
}

.feature-card:nth-child(2) {
  border-radius: 26px;
}

.feature-card:nth-child(3) {
  border-radius: 26px;
}

.feature-card p,
.contact-panel p {
  color: #e2f3ed;
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: rgba(81, 247, 155, 0.1);
  border: 1px solid rgba(81, 247, 155, 0.22);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gallery-section {
  position: relative;
  background: rgba(255, 255, 255, 0.01);
}

.gallery-swipe-hint {
  display: none;
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 18%, rgba(255, 255, 255, 0.01) 46%, rgba(255, 255, 255, 0.1) 100%),
    rgba(255, 255, 255, 0.01);
  backdrop-filter: saturate(1.06) brightness(1.02);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.gallery-item {
  position: relative;
  min-height: 220px;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1518;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 18px rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.28);
}

.gallery-item:nth-child(3n + 1) {
  grid-row: span 2;
  min-height: 452px;
  border-radius: 22px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.04) brightness(0.88);
  transform: scale(1.01);
  transition: filter 420ms ease, transform 420ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 14, 16, 0.12), rgba(2, 22, 22, 0.44));
  transition: opacity 420ms ease;
}

.gallery-item::before {
  z-index: 2;
}

.gallery-item:hover img {
  filter: saturate(1) contrast(1) brightness(1) sepia(0) hue-rotate(0deg);
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  border-radius: 28px;
}

.section-heading::before,
.feature-card::before,
.contact-panel::before,
.gallery-grid::before {
  border-color: transparent;
}

.whatsapp-btn {
  gap: 10px;
  background: #25d366;
  color: #03110d;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.24);
}

.whatsapp-btn svg,
.email-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.email-btn {
  gap: 10px;
  color: #f4fff9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 18px 44px rgba(53, 201, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.email-btn:hover {
  border-color: rgba(53, 201, 255, 0.6);
  box-shadow:
    0 22px 52px rgba(53, 201, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.floating-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #03110d;
  box-shadow:
    0 18px 44px rgba(37, 211, 102, 0.34),
    0 0 0 0 rgba(37, 211, 102, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transform-origin: center;
  animation: whatsappBreath 2.2s ease-in-out infinite;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms ease;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp.is-absorbed {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
  transform: translate(-18px, -36px) scale(2.4);
  animation: none;
}

.whatsapp-btn.is-magnet {
  animation: whatsappBigPulse 900ms ease both;
}

.site-footer {
  padding: 30px 18px;
  text-align: center;
  color: #b8cbc5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 10, 10, 0.36);
  backdrop-filter: blur(12px);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-floppy {
  display: inline-block;
  margin-right: 7px;
  transform-origin: 50% 58%;
  animation: floppyBreath 2.4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loadbar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bootGlitch {
  0%,
  100% {
    transform: translate(0);
    filter: none;
  }
  25% {
    transform: translate(8px, -3px);
    filter: hue-rotate(70deg);
  }
  50% {
    transform: translate(-7px, 2px);
    filter: contrast(1.8);
  }
  75% {
    transform: translate(4px, 4px);
    filter: hue-rotate(-45deg);
  }
}

@keyframes whatsappBreath {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 18px 44px rgba(37, 211, 102, 0.34),
      0 0 0 0 rgba(37, 211, 102, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.52);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 20px 52px rgba(37, 211, 102, 0.42),
      0 0 0 12px rgba(37, 211, 102, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }
}

@keyframes whatsappBigPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 26px 70px rgba(37, 211, 102, 0.38);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes navRebirth {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(26px) scaleX(0.2);
  }
  62% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-4px) scaleX(1.04);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scaleX(1);
  }
}

@keyframes floppyBreath {
  0%,
  100% {
    transform: scale(1) rotate(-3deg);
    filter: drop-shadow(0 0 0 rgba(53, 201, 255, 0));
  }
  50% {
    transform: scale(1.13) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(53, 201, 255, 0.38));
  }
}

@keyframes swipeCue {
  0%,
  100% {
    transform: translateX(7px);
    opacity: 0.62;
  }
  50% {
    transform: translateX(-10px);
    opacity: 1;
  }
}

@keyframes cueGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(53, 201, 255, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(53, 201, 255, 0.32);
  }
}

@media (max-width: 960px) {
  .feature-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .gallery-item:nth-child(3n + 1) {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px;
  }

  .navbar {
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 146px;
  }

  body {
    background-image: none;
    background-attachment: scroll;
  }

  body::before {
    background: url("img/fondo.jpeg") center top / cover no-repeat;
    mix-blend-mode: normal;
    opacity: 1;
  }

  body::after {
    background:
      linear-gradient(90deg, rgba(3, 9, 8, 0.5) 0%, rgba(3, 12, 11, 0.28) 55%, rgba(3, 12, 11, 0.16) 100%),
      linear-gradient(180deg, rgba(5, 13, 11, 0.05) 0%, rgba(5, 13, 11, 0.2) 100%);
  }

  .hero-content,
  .section-heading,
  .feature-card,
  .contact-panel,
  .gallery-grid {
    border-radius: 24px;
  }

  .contact-panel {
    padding: 34px 26px 42px;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
    justify-content: flex-start;
  }

  .gallery-grid {
    display: flex;
    gap: 14px;
    max-width: none;
    margin-inline: calc(clamp(18px, 6vw, 76px) * -1);
    padding: 16px clamp(18px, 6vw, 76px) 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: clamp(18px, 6vw, 76px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }

  .gallery-swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-top-color: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background:
      linear-gradient(118deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.025) 44%, rgba(255, 255, 255, 0.12)),
      rgba(255, 255, 255, 0.018);
    color: #f4fff9;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: cueGlow 2.1s ease-in-out infinite;
    transition: opacity 380ms ease, transform 380ms ease;
  }

  .gallery-swipe-hint i {
    position: relative;
    display: block;
    width: 42px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  .gallery-swipe-hint i::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 7px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    transform: translateY(-50%);
    animation: swipeCue 1.15s ease-in-out infinite;
  }

  .gallery-swipe-hint i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    width: 7px;
    height: 7px;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: translateY(-50%) rotate(45deg);
    animation: swipeCue 1.15s ease-in-out infinite;
  }

  .gallery-section.gallery-touched .gallery-swipe-hint {
    opacity: 0;
    transform: translate(-50%, -58%);
  }

  .gallery-item,
  .gallery-item:nth-child(3n + 1) {
    flex: 0 0 min(78vw, 330px);
    min-height: auto;
    height: min(58vh, 430px);
    aspect-ratio: 3 / 4;
    grid-row: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item:hover img {
    transform: scale(1.035);
  }

  .contact-actions,
  .hero-actions {
    width: 100%;
  }

  .btn,
  .whatsapp-btn,
  .email-btn {
    width: 100%;
  }

  .floating-whatsapp {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
