/* ============================================
   ALMA SALINAS · Demo web
   Paleta: crema + carbón + terracota + sage
   Tipografías: Fraunces (display) + Inter (body)
============================================ */

/* ---------- Tokens ---------- */
:root {
  --cream: #F7F2EB;
  --cream-soft: #FBF7F1;
  --blush: #F2E6DC;
  --sage-soft: #ECEFE5;
  --ink: #1A1A1A;
  --ink-soft: #2D2A28;
  --muted: #6E665E;
  --line: #E6DFD3;

  --accent: #C66B4F;        /* terracota */
  --accent-dark: #A85638;
  --sage: #8A9A7A;           /* verde sage */
  --gold: #C9A86A;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(26,26,26,0.06);
  --shadow-md: 0 14px 40px rgba(26,26,26,0.10);

  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);

  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-med: 360ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(72px, 10vw, 130px);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
}
.section__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144;
  color: var(--accent);
}
.section__lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  margin-top: 18px;
  max-width: 560px;
}
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Brand mark ---------- */
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 14px;
  background: rgba(247, 242, 235, 0);
  backdrop-filter: blur(0);
  transition: background var(--t-med), backdrop-filter var(--t-med), padding var(--t-med), box-shadow var(--t-med);
}
.nav.is-scrolled {
  background: rgba(247, 242, 235, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  padding-block: 10px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.nav__brand:hover { color: var(--ink); }
.nav.is-hero .nav__brand,
.nav.is-hero .nav__links a {
  color: var(--cream);
}
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__links a {
  color: var(--ink);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  color: var(--cream);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--t-fast);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 10px 22px;
  font-size: 14px;
}
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 18px var(--pad) 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.nav__mobile a {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 90% at 30% 55%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 55%, transparent 80%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.85) 100%);
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 820px;
}
.hero .eyebrow { color: var(--gold); }
.hero__title {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.3);
}
.hero__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144;
  color: var(--gold);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(247, 242, 235, 0.92);
  max-width: 560px;
  margin: 0 0 36px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero .btn--ghost {
  border-color: rgba(247, 242, 235, 0.6);
  color: var(--cream);
}
.hero .btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(247,242,235,0.5);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 2px; height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--cream-soft);
  padding-block: 40px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.trust__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--ink);
}
.trust__num small {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 400;
}
.trust__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.service-card:hover .service-card__img img {
  transform: scale(1.05);
}
.service-card__body {
  padding: 32px 30px 36px;
}
.service-card__tag {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  margin: 0 0 16px;
}
.service-card ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

/* ---------- About ---------- */
.about { background: var(--blush); }
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--cream);
  padding: 16px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.about__badge strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--accent);
}
.about__badge span {
  font-size: 13px;
  color: var(--ink);
}
.about__text p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 16px 0;
}
.about__list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.about__list span {
  color: var(--accent);
  font-size: 14px;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream-soft); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  isolation: isolate;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.3,1);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.72) 0%, rgba(26,26,26,0.15) 45%, rgba(26,26,26,0) 65%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: 1;
}
.gallery__cap {
  position: absolute;
  left: 22px;
  bottom: 18px;
  right: 22px;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-med), transform var(--t-med);
  pointer-events: none;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__cap {
  opacity: 1;
  transform: translateY(0);
}
.gallery__item--hero {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item--hero .gallery__cap { font-size: 26px; }
.gallery__item--wide { grid-column: span 2; }

.gallery__note {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
}
.gallery__note a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--sage-soft);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
}
.t-card__stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 18px;
}
.t-card p {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.t-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.t-card footer strong {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.t-card footer span {
  font-size: 13px;
  color: var(--muted);
}
.testimonials__cta {
  text-align: center;
  margin-top: 48px;
}
.testimonials__cta a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__block {
  margin-top: 32px;
}
.contact__block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact__block p { margin: 0; color: var(--ink); }
.hours {
  display: grid;
  gap: 6px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--muted); }
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.contact__map {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.contact__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(0.85);
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(64px, 10vw, 120px);
  text-align: center;
}
.cta-final h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  margin-bottom: 16px;
}
.cta-final h2::after {
  content: '';
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 24px auto 0;
}
.cta-final p {
  color: rgba(247, 242, 235, 0.7);
  margin-bottom: 32px;
  font-size: 18px;
}
.cta-final .btn--primary {
  background: var(--accent);
  color: #fff;
}
.cta-final .btn--primary:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--cream-soft);
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.footer h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer a { color: var(--ink-soft); font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer__social a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer__bottom small { font-size: 13px; }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.float-wa:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet y móvil (≤ 900px) */
@media (max-width: 900px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .nav.is-open { background: var(--cream); }
  .nav.is-open .nav__brand { color: var(--ink); }
  .nav.is-open .nav__toggle span { background: var(--ink); }

  /* Hero CTAs apilados y a ancho completo */
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Grids principales colapsan a una columna */
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 4; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery__item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__cap { opacity: 1; transform: none; font-size: 16px; }
  .gallery__item--hero .gallery__cap { font-size: 20px; }
  .gallery__item::after { opacity: 0.55; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .contact__cta { flex-direction: column; align-items: stretch; }
  .contact__cta .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Móvil estándar (≤ 640px) */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* Tipografía más ajustada */
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: clamp(30px, 8vw, 44px); }
  .section__lead { font-size: 16px; }

  /* Hero */
  .hero__content { padding-top: 100px; padding-bottom: 80px; }
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .hero__sub { font-size: 16px; margin-bottom: 28px; }
  .hero__scroll { display: none; }

  /* Trust bar más compacta */
  .trust { padding-block: 32px; }
  .trust__grid { gap: 18px 12px; }
  .trust__num { font-size: 26px; }
  .trust__label { font-size: 12px; }

  /* Service cards */
  .service-card__body { padding: 24px 22px 28px; }
  .service-card h3 { font-size: 24px; }
  .service-card p { font-size: 15px; }

  /* About */
  .about__text p { font-size: 16px; }
  .about__badge { padding: 12px 18px; bottom: 16px; left: 16px; }
  .about__badge strong { font-size: 18px; }
  .about__badge span { font-size: 12px; }

  /* Galería: bento un poco más cuadrado */
  .gallery__grid { grid-auto-rows: 170px; gap: 10px; }
  .gallery__cap { left: 14px; bottom: 12px; right: 14px; }

  /* Testimonios */
  .t-card { padding: 28px 24px; }
  .t-card p { font-size: 18px; }

  /* Contacto */
  .contact__block { margin-top: 24px; }
  .hours li { font-size: 14px; }

  /* CTA final */
  .cta-final { padding-block: 72px; }
  .cta-final h2 { font-size: clamp(28px, 8vw, 40px); }
  .cta-final p { font-size: 16px; }
  .cta-final .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }

  /* WhatsApp flotante respeta el safe area de iOS */
  .float-wa {
    width: 54px; height: 54px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Móvil pequeño (≤ 400px) */
@media (max-width: 400px) {
  :root { --pad: 16px; }
  .nav__brand .brand-name { display: none; }
  .hero__title { font-size: 38px; line-height: 1.05; }
  .hero__sub { font-size: 15px; }
  .section__title { font-size: 28px; }
  .gallery__grid { grid-auto-rows: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { transform: none !important; }
  html { scroll-behavior: auto; }
}
