/* ==========================================================================
   Oikos Arquitectos — Diseño y animaciones
   Paleta: oscuro elegante (charcoal) + acento terracota
   ========================================================================== */

:root {
  --terracotta: #d46a3c;
  --terracotta-dark: #e07a4c;
  --terracotta-soft: rgba(212, 106, 60, .16);
  --ink: #0b0b0a;
  --ink-soft: #131210;
  --paper: #10100f;
  --white: #171615;
  --surface-2: #1e1d1b;
  --text: #f2eee7;
  --stone: #a59e94;
  --line: rgba(242, 238, 231, .09);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, .48);
  --radius: 18px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 84px;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--terracotta); color: #fff; }

img { max-width: 100%; }

a { color: var(--terracotta); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 600; }

#app:focus { outline: none; }

/* ---------- Navbar ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
}

.site-header .navbar {
  padding: 0 0;
  min-height: var(--nav-h);
  background: rgba(16, 15, 14, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, min-height .4s ease, box-shadow .4s ease;
}

.site-header.scrolled .navbar {
  background: rgba(12, 11, 10, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  min-height: 70px;
}

.brand-logo { height: 40px; width: auto; display: block; }

.navbar-nav { gap: .2rem; }

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--text);
  padding: .5rem .95rem;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .1rem;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--terracotta); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1.35rem;
  font-size: .92rem;
  white-space: nowrap;
}

.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }

.navbar-toggler {
  border: 1px solid rgba(242, 238, 231, .25);
  border-radius: 10px;
  padding: .4rem .55rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212, 106, 60, .28); }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(242,238,231,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */

.btn { border-radius: 999px; font-weight: 600; letter-spacing: .02em; transition: transform .3s var(--ease), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease; }

.btn-lg { padding: .85rem 2.1rem; }

.btn-terracotta { background: var(--terracotta); color: #fff; border: 1px solid var(--terracotta); }
.btn-terracotta:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212, 106, 60, .35); }

.btn-outline-light { border: 1px solid rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }

.btn-outline-dark { border: 1px solid rgba(242, 238, 231, .5); color: var(--text); background: transparent; }
.btn-outline-dark:hover { background: var(--text); color: var(--paper); border-color: var(--text); transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, .62) 0%, rgba(20, 18, 16, .28) 45%, rgba(20, 18, 16, .82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  max-width: 1200px;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: #f0b08f;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 1.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}

.hero-lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 2.2rem;
}

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

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-dot {
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  animation: scrollPulse 1.8s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { margin-bottom: 3rem; max-width: 640px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.section-label::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: var(--terracotta);
  flex-shrink: 0;
}

.section-label.light { color: #f0b08f; }
.section-label.light::before { background: #f0b08f; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.14;
  margin: 1.1rem 0 .9rem;
}

.section-sub { color: var(--stone); max-width: 560px; margin-bottom: 0; }

/* ---------- Stats ---------- */

.stats-section { background: var(--white); border-block: 1px solid var(--line); }

.stat { text-align: center; padding: .5rem 0; }

.stat h4 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat h4 span { font-family: var(--font-serif); }

.stat p {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0;
}

/* ---------- Category cards ---------- */

.categories-section { background: var(--paper); }

.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 9, .15) 30%, rgba(11, 10, 9, .82) 100%);
  transition: background .5s ease;
}

.cat-card:hover img { transform: scale(1.09); }
.cat-card:hover::after { background: linear-gradient(180deg, rgba(11, 10, 9, .22) 10%, rgba(11, 10, 9, .88) 100%); }

.cat-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.cat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: #f0b08f;
}

.cat-card h3 { font-size: 1.75rem; margin: .35rem 0 .5rem; }

.cat-desc {
  font-size: .92rem;
  color: rgba(255, 255, 255, .82);
  max-width: 300px;
  margin-bottom: 1.2rem;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: .3rem;
  transition: color .3s ease, border-color .3s ease, gap .3s var(--ease);
}

.cat-card:hover .cat-link { color: #f0b08f; border-color: #f0b08f; gap: .85rem; }

/* ---------- About ---------- */

.about-section { background: var(--white); border-block: 1px solid var(--line); }

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.about-badge {
  position: absolute;
  right: -14px;
  bottom: 28px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.about-badge strong { font-family: var(--font-serif); font-size: 1.5rem; }
.about-badge span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9f9a92; }

.about-points { list-style: none; padding: 0; margin: 0 0 2rem; }

.about-points li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .9rem;
  font-weight: 600;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  box-shadow: inset 0 0 0 6px var(--terracotta-soft);
  border: 1.5px solid var(--terracotta);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 9, .78), rgba(11, 10, 9, .82));
}

.cta-inner .section-label { margin-bottom: 1rem; }

.cta-inner h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin: 1rem 0 2.2rem;
}

/* ---------- Page head (subpáginas) ---------- */

.page-head {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: calc(var(--nav-h) + 4rem) 0 4.2rem;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 106, 60, .32), transparent 70%);
  pointer-events: none;
}

.page-head .container { position: relative; z-index: 1; }

.crumb {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .9rem;
}

.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: .6rem; }

.head-sub { font-size: 1.05rem; color: rgba(255, 255, 255, .72); max-width: 520px; }

/* ---------- Filtros ---------- */

.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.8rem; }

.filter-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: .62rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}

.filter-pill:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.filter-pill.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ---------- Proyectos ---------- */

.projects-grid { align-items: stretch; }

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s ease, border-color .5s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 106, 60, .45);
}

.project-card:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.project-card:hover .project-media img { transform: scale(1.08); }

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 10, 9, .72);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .34rem .85rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.project-plus {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s var(--ease);
}

.project-card:hover .project-plus { opacity: 1; transform: none; }

.project-body { padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; flex: 1; }

.project-title { font-size: 1.45rem; margin-bottom: .5rem; }

.project-desc {
  color: var(--stone);
  font-size: .92rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--stone);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.meta-item { display: inline-flex; align-items: center; gap: .45rem; color: var(--stone); }
.meta-item svg { color: var(--terracotta); flex-shrink: 0; }

.empty-state {
  text-align: center;
  color: var(--stone);
  padding: 4rem 1rem;
  font-size: 1.05rem;
}

/* ---------- Modal ---------- */

.modal-content { position: relative; background: var(--white); color: var(--text); border: 0; border-radius: var(--radius); overflow: hidden; }

.modal-hero { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(11, 10, 9, .55);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
}

.modal-close:hover { background: rgba(11, 10, 9, .8); }

.modal-body { padding: 2rem 2.2rem; }

.modal-body .project-tag { position: static; display: inline-block; margin-bottom: 1rem; background: var(--terracotta-soft); color: var(--terracotta-dark); }

.modal-title { font-size: 1.9rem; margin-bottom: .8rem; }

#modalDesc { color: var(--stone); }

#modalMeta { border: 0; padding: 0; margin-top: 1.4rem; }

.modal-cta { margin-top: 1.6rem; }

/* ---------- Contacto ---------- */

.contact-section { background: var(--white); }

.form-label { font-weight: 600; font-size: .85rem; letter-spacing: .02em; }

.form-control {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: .8rem 1.1rem;
  color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.form-control:focus {
  border-color: var(--terracotta);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(212, 106, 60, .18);
  color: var(--text);
}

.form-control::placeholder { color: #7f7a72; }

.contact-cards { margin-top: 2.4rem; display: grid; gap: .8rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  color: var(--text);
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s ease;
}

.contact-card:hover {
  border-color: var(--terracotta);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.contact-info { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.contact-info strong { font-size: .95rem; }
.contact-info span { font-size: .85rem; color: var(--stone); word-break: break-word; }

/* ---------- Mapa ---------- */

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
  min-height: 460px;
  height: 100%;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: grayscale(18%) contrast(1.02);
  opacity: 0;
  transition: opacity .9s ease;
}

.map-wrap iframe.loaded { opacity: 1; }

.map-card {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  right: 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(23, 22, 21, .94);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
}

.map-pin {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.map-info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.map-info strong { font-size: .98rem; }
.map-info span { font-size: .82rem; color: var(--stone); }
.map-info a { font-weight: 700; font-size: .82rem; margin-top: .2rem; display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--ink);
  color: #c9c5bd;
  padding: 3.25rem 0 0;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 106, 60, .55) 18%, rgba(212, 106, 60, .9) 50%, rgba(212, 106, 60, .55) 82%, transparent 100%);
}

.site-footer a { color: #c9c5bd; }
.site-footer a:hover { color: #fff; }

.footer-brand { display: inline-flex; flex-direction: column; line-height: 1.1; margin-bottom: 1rem; }
.footer-brand .fb-name { font-family: var(--font-serif); font-size: 2rem; color: #fff; letter-spacing: .04em; }
.footer-brand .fb-sub { font-size: .7rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--terracotta); }

.footer-about {
  position: relative;
  font-size: .95rem;
  line-height: 1.8;
  max-width: 100%;
  margin-bottom: 1.15rem;
  padding-top: .9rem;
}

.footer-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--terracotta);
}

.footer-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .9rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { color: var(--terracotta); margin-top: .25em; flex-shrink: 0; }

.social-row { display: flex; gap: .6rem; margin-top: 1rem; }

.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background .3s ease, border-color .3s ease, transform .35s var(--ease), color .3s ease;
}

.social-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateY(-4px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.25rem;
  padding: 1.2rem 0;
  font-size: .85rem;
  color: #9a958d;
}

.footer-bottom .row { align-items: center; }
.footer-bottom a { color: #c9c5bd; }

/* ---------- Reveal / transiciones ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal.in.reveal-left, .reveal.in.reveal-right { transform: none; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

#app.view-enter { animation: viewIn .55s var(--ease) both; }

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-top: .6rem;
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-md);
  }
  .nav-cta { margin: 0; }
  .about-badge { right: 10px; }
  .map-wrap { min-height: 420px; }
  .map-wrap iframe { min-height: 420px; }
}

@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .cat-card { min-height: 340px; }
  .about-badge { padding: .9rem 1.1rem; }
  .map-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
