:root {
  --brand-red: #d94452;
  --brand-red-dark: #c73e4a;
  --ink: #0f172a;
  --soft-rose: #fff4f6;
  --soft-gray: #f8fafc;
  --line: rgba(217, 68, 82, 0.16);
}

body {
  overflow-x: hidden;
}

.App {
  position: relative;
}

.App::before,
.App::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(217, 68, 82, 0.18), transparent 62%),
    radial-gradient(circle at 65% 65%, rgba(15, 23, 42, 0.08), transparent 58%);
  filter: blur(2px);
}

.App::before {
  width: 360px;
  height: 360px;
  top: 160px;
  left: -200px;
}

.App::after {
  width: 420px;
  height: 420px;
  right: -220px;
  bottom: 18%;
}

header,
.App > div:first-child,
body:has(.App) header {
  border-bottom: 3px solid var(--brand-red) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

header::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), #e85d75, var(--brand-red-dark));
}

section {
  position: relative;
}

main > section {
  overflow: hidden;
  padding-top: clamp(2.2rem, 3.7vw, 3.9rem) !important;
  padding-bottom: clamp(2.2rem, 3.7vw, 3.9rem) !important;
}

main > section:first-child {
  padding-top: clamp(5rem, 7vw, 6.2rem) !important;
  padding-bottom: clamp(2rem, 3vw, 3rem) !important;
  min-height: auto !important;
}

main h1 {
  font-size: clamp(2rem, 4vw, 3.4rem) !important;
  line-height: 1.02 !important;
}

main h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.4rem) !important;
  line-height: 1.08 !important;
}

main h3 {
  line-height: 1.15 !important;
}

p {
  line-height: 1.55 !important;
}

.container {
  max-width: 1180px !important;
}

.py-20,
.lg\:py-28 {
  padding-top: clamp(2.2rem, 3.7vw, 3.9rem) !important;
  padding-bottom: clamp(2.2rem, 3.7vw, 3.9rem) !important;
}

.mb-16 {
  margin-bottom: 1.85rem !important;
}

.mb-8 {
  margin-bottom: 1.4rem !important;
}

.mt-24 {
  margin-top: 3.25rem !important;
}

.gap-12 {
  gap: 1.75rem !important;
}

.gap-8 {
  gap: 1.35rem !important;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.1rem !important;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.85rem !important;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem !important;
}

.p-8 {
  padding: 1.25rem !important;
}

.p-6 {
  padding: 1.15rem !important;
}

.rounded-2xl,
.rounded-3xl {
  border-radius: 1rem !important;
}

.shadow-lg,
.shadow-xl {
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09) !important;
}

.border-2.border-gray-100,
.border-2.border-\[\#D94452\]\/20 {
  border-color: rgba(217, 68, 82, 0.18) !important;
}

main > section:not(:first-child)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 68, 82, 0.3), transparent);
}

main > section:nth-child(2) {
  background: linear-gradient(170deg, #f5f8fc 0%, #ffffff 55%, #eef2f7 100%);
}

main > section:nth-child(3) {
  background:
    linear-gradient(170deg, #fff0f3 0%, #fff 45%, #f5f8fc 100%),
    repeating-linear-gradient(90deg, rgba(217, 68, 82, 0.04) 0 1px, transparent 1px 22px);
}

main > section:nth-child(4) {
  background: linear-gradient(170deg, #f8f9fb 0%, #ffffff 40%, #eef4f0 100%);
}

main > section:nth-child(5) {
  background:
    linear-gradient(170deg, #fff6f8 0%, #fff 45%, #fce8ec 100%),
    radial-gradient(circle at 85% 30%, rgba(217, 68, 82, 0.09), transparent 35%);
}

section[id] > .container::before {
  content: "";
  position: absolute;
  left: max(1rem, calc((100vw - 1180px) / 2));
  top: 1.15rem;
  width: 42px;
  height: 42px;
  border-top: 3px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 14px 0 0 0;
  pointer-events: none;
}

section[id] > .container::after {
  content: "";
  position: absolute;
  right: max(1rem, calc((100vw - 1180px) / 2));
  bottom: 1.1rem;
  width: 76px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(217, 68, 82, 0.32) 0 8px,
    transparent 8px 15px
  );
  opacity: 0.65;
  pointer-events: none;
}

section[id="servicios"]::before,
section[id="contacto"]::before {
  content: "";
  position: absolute;
  left: max(1rem, calc((100vw - 1180px) / 2));
  top: 1.4rem;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), #f2a0aa);
}

section[id="nosotros"]::after {
  content: "";
  position: absolute;
  right: max(1rem, calc((100vw - 1180px) / 2));
  top: 2rem;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(217, 68, 82, 0.18);
  border-radius: 50%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(217, 68, 82, 0.08) 0 2px,
    transparent 2px 10px
  );
}

section[id="servicios"] .grid > *,
section[id="contacto"] .grid > *,
section[id="nosotros"] .grid > * {
  position: relative;
}

section[id="servicios"] .grid > *::after,
section[id="contacto"] .grid > *::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(217, 68, 82, 0.14);
  background: radial-gradient(circle, rgba(217, 68, 82, 0.1) 0 2px, transparent 3px);
  pointer-events: none;
}

section[id="nosotros"] h2::after,
section[id="contacto"] h2::after,
section[id="servicios"] h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin: 0.8rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), #f1a0aa);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #20c766, #128c4a);
  box-shadow: 0 18px 35px rgba(18, 140, 74, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 22px 45px rgba(18, 140, 74, 0.38);
}

.whatsapp-float svg {
  width: 21px;
  height: 21px;
}

.contact-send-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-send-options button {
  min-height: 52px;
  border-radius: 0.8rem;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.contact-send-options .send-whatsapp {
  background: linear-gradient(135deg, #20c766, #128c4a);
}

.contact-send-options .send-email {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
}

.final-instagram-section {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 4vw, 3.6rem) 1rem !important;
  background:
    linear-gradient(135deg, #111827, #283143 48%, var(--brand-red)),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18), transparent 28%);
  color: #fff;
  text-align: center;
}

.final-instagram-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.08) 0 1px,
    transparent 1px 14px
  );
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.final-instagram-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
}

.final-instagram-inner span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd6dc;
  font-weight: 900;
}

.final-instagram-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1 !important;
}

.final-instagram-inner p {
  margin: 0.8rem auto 1.2rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
}

.final-instagram-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-red);
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

.is-gated {
  overflow: hidden;
}

.construction-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 68, 82, 0.18), transparent 26%),
    radial-gradient(circle at 82% 82%, rgba(217, 68, 82, 0.14), transparent 28%),
    linear-gradient(135deg, #fff, #f8fafc 52%, #fff4f6);
}

.construction-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(217, 68, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 68, 82, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.construction-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(217, 68, 82, 0.22);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  text-align: center;
  backdrop-filter: blur(18px);
}

.construction-logo-wrap {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 35px rgba(217, 68, 82, 0.18);
}

.construction-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.construction-kicker {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(217, 68, 82, 0.1);
  color: var(--brand-red);
  font-weight: 900;
}

.construction-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
}

.construction-card > p:not(.construction-error):not(.construction-kicker) {
  margin: 0.9rem auto 1.1rem;
  max-width: 390px;
  color: #4b5563;
}

.construction-form {
  display: flex;
  gap: 0.6rem;
}

.construction-form input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(217, 68, 82, 0.24);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
}

.construction-form button {
  height: 48px;
  padding: 0 1rem;
  border-radius: 0.8rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 900;
}

.construction-error {
  min-height: 1.2rem;
  margin-top: 0.55rem;
  color: var(--brand-red);
  font-weight: 800;
}

.construction-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.construction-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.instagram-gallery-section {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 4vw, 4.2rem) 1rem !important;
  background:
    linear-gradient(135deg, #111827, #1f2937 46%, #d94452),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.16), transparent 28%);
  color: #fff;
}

.instagram-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

.instagram-gallery-section::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.instagram-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.instagram-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.7rem 1rem;
  margin-bottom: 1.2rem;
}

.instagram-heading h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem) !important;
  line-height: 1 !important;
}

.instagram-heading p {
  grid-column: 1;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.instagram-kicker {
  grid-column: 1 / -1;
  width: max-content;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd6dc;
  font-weight: 800;
  font-size: 0.82rem;
}

.instagram-profile-link {
  grid-column: 2;
  grid-row: 2 / 4;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-red);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.instagram-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}

.instagram-filter button {
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.instagram-filter button.active,
.instagram-filter button:hover {
  background: #fff;
  color: var(--brand-red);
}

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

.instagram-card {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  text-align: left;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.instagram-card::before,
.instagram-lightbox-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px);
}

.instagram-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  z-index: -1;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.instagram-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
}

.instagram-card-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 2.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
  letter-spacing: 0;
}

.instagram-card-date {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
}

.instagram-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  line-height: 1.05;
}

.instagram-card p {
  max-width: 92%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.instagram-card-action {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
}

.post-red {
  background: linear-gradient(135deg, #d94452, #801f2a);
}

.post-green {
  background: linear-gradient(135deg, #168a55, #0f3f2b);
}

.post-slate {
  background: linear-gradient(135deg, #334155, #111827);
}

.post-gold {
  background: linear-gradient(135deg, #b87d24, #4a2b0a);
}

.post-blue {
  background: linear-gradient(135deg, #2563eb, #172554);
}

.post-red-soft {
  background: linear-gradient(135deg, #e85d75, #6f1d2f);
}

.instagram-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(10px);
}

.instagram-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(260px, 360px);
  width: min(880px, 100%);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.instagram-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.instagram-lightbox-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  color: #fff;
  isolation: isolate;
}

.instagram-lightbox-visual span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  font-weight: 900;
}

.instagram-lightbox-copy {
  padding: 2rem;
  color: var(--ink);
}

.instagram-lightbox-copy span {
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 900;
}

.instagram-lightbox-copy h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: 2rem;
}

.instagram-lightbox-copy p {
  color: #4b5563;
}

.instagram-lightbox-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 1.2rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 900;
}

/* ==========================================
   SPACING — tighter values override earlier rules
   ========================================== */
main > section {
  padding-top: clamp(1.8rem, 3vw, 3.2rem) !important;
  padding-bottom: clamp(1.8rem, 3vw, 3.2rem) !important;
}

main > section:first-child {
  padding-top: clamp(3.8rem, 5.5vw, 5rem) !important;
  padding-bottom: clamp(1.4rem, 2.2vw, 2.2rem) !important;
}

.py-20,
.lg\:py-28 {
  padding-top: clamp(1.8rem, 3vw, 3.2rem) !important;
  padding-bottom: clamp(1.8rem, 3vw, 3.2rem) !important;
}

footer {
  padding-top: clamp(1rem, 1.8vw, 1.8rem) !important;
  padding-bottom: clamp(1rem, 1.8vw, 1.8rem) !important;
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
/* Base fade — aplica siempre, independiente de preferencia de movimiento */
.sr-section,
.sr-card,
.sr-up {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.sr-section.sr-visible,
.sr-card.sr-visible,
.sr-up.sr-visible {
  opacity: 1;
}

/* Movimiento adicional para usuarios sin preferencia de reducción */
@media (prefers-reduced-motion: no-preference) {
  .sr-section {
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sr-section.sr-visible {
    transform: none;
  }

  .sr-card {
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sr-card.sr-visible {
    transform: none;
  }

  .sr-up {
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sr-up.sr-visible {
    transform: none;
  }
}

/* ==========================================
   DECORATIVE ELEMENTS
   ========================================== */
.deco-orb-a,
.deco-orb-b {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.deco-orb-a {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -220px;
  background: radial-gradient(circle, rgba(217, 68, 82, 0.13), transparent 65%);
  filter: blur(3px);
}

.deco-orb-b {
  width: 380px;
  height: 380px;
  bottom: 15%;
  left: -180px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.09), transparent 65%);
  filter: blur(3px);
}

.deco-num {
  position: absolute;
  font-size: clamp(6rem, 11vw, 10rem);
  font-weight: 900;
  color: rgba(217, 68, 82, 0.045);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  user-select: none;
}

.deco-dots {
  position: absolute;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 4px);
  grid-template-rows: repeat(4, 4px);
  gap: 8px;
  z-index: 0;
}

.deco-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-red);
  opacity: 0.26;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), #f07a88);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}

@media (max-width: 767px) {
  main > section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  main > section:first-child {
    padding-top: 3.8rem !important;
    padding-bottom: 1.1rem !important;
  }

  main h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
  }

  .p-8,
  .p-6 {
    padding: 1rem !important;
  }

  .gap-12,
  .gap-8 {
    gap: 1rem !important;
  }

  .mb-16 {
    margin-bottom: 1.4rem !important;
  }

  section[id] > .container::before,
  section[id] > .container::after {
    opacity: 0.35;
    transform: scale(0.78);
  }

  .whatsapp-float {
    left: auto;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
  }

  footer {
    padding-bottom: 4.75rem !important;
  }

  .contact-send-options {
    grid-template-columns: 1fr;
  }

  .construction-form {
    flex-direction: column;
  }

  .construction-form button {
    width: 100%;
  }

  .instagram-gallery-section {
    padding: 2rem 1rem !important;
  }

  .instagram-heading {
    display: block;
  }

  .instagram-heading h2 {
    margin-top: 0.85rem;
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }

  .instagram-heading p {
    margin: 0.7rem 0 1rem;
  }

  .instagram-profile-link {
    min-height: 40px;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .instagram-card {
    min-height: 205px;
  }

  .instagram-lightbox-panel {
    grid-template-columns: 1fr;
  }

  .instagram-lightbox-visual {
    min-height: 245px;
  }

  .instagram-lightbox-copy {
    padding: 1.35rem;
  }
}

/* ==========================================
   SECTION NAV (índice lateral)
   ========================================== */
.section-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 0;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 5px 0;
  cursor: pointer;
}

.section-nav-label {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--brand-red);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.98), 0 0 10px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.section-nav:hover .section-nav-label,
.section-nav-item.active .section-nav-label {
  opacity: 1;
  transform: none;
}

.section-nav-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(217, 68, 82, 0.4);
  background: transparent;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-nav-item.active .section-nav-dot {
  background: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(217, 68, 82, 0.18);
  width: 9px;
  height: 9px;
}

.section-nav-item:hover .section-nav-dot {
  border-color: var(--brand-red);
  background: rgba(217, 68, 82, 0.2);
}

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

/* ==========================================
   NAV BUTTONS — color y hover
   ========================================== */
header button[class*="font-medium"] {
  padding: 0.28rem 0.72rem !important;
  border-radius: 999px !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

header button[class*="font-medium"]:hover {
  background: rgba(217, 68, 82, 0.09) !important;
  color: var(--brand-red) !important;
}

/* Contactar button — pulse ring */
@keyframes contact-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(217, 68, 82, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(217, 68, 82, 0); }
  100% { box-shadow: 0 0 0 0   rgba(217, 68, 82, 0); }
}

header button[class*="inline-flex"][class*="items-center"] {
  animation: contact-pulse 2.4s ease-out infinite !important;
}

/* ==========================================
   SECTION DECORATIVE ELEMENTS
   ========================================== */
.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sd-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(217, 68, 82, 0.1);
  background: transparent;
}

.sd-dot-grid {
  position: absolute;
  background-image: radial-gradient(circle, rgba(217, 68, 82, 0.22) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.7;
}

.sd-dot-grid.fade-tr {
  -webkit-mask-image: radial-gradient(ellipse at top right, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at top right, black 15%, transparent 72%);
}

.sd-dot-grid.fade-br {
  -webkit-mask-image: radial-gradient(ellipse at bottom right, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at bottom right, black 15%, transparent 72%);
}

.sd-dot-grid.fade-center-out {
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 28%, black 68%);
  mask-image: radial-gradient(ellipse at center, transparent 28%, black 68%);
}

.sd-stripe-block {
  position: absolute;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 12px,
    rgba(217, 68, 82, 0.07) 12px 13px
  );
}

.sd-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 68, 82, 0.1), transparent 68%);
  filter: blur(6px);
}

.sd-cross {
  position: absolute;
  width: 18px;
  height: 18px;
}

.sd-cross::before,
.sd-cross::after {
  content: "";
  position: absolute;
  background: rgba(217, 68, 82, 0.28);
  border-radius: 2px;
}

.sd-cross::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.sd-cross::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================
   CONTACT PREFERENCE TOGGLE
   ========================================== */
.contact-pref {
  margin-bottom: 1rem;
}

.contact-pref-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #6b7280;
}

.contact-pref-options {
  display: flex;
  gap: 0.5rem;
}

.contact-pref-btn {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 700;
  font-size: 0.88rem;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.contact-pref-btn.active[data-pref="email"] {
  border-color: var(--brand-red);
  background: rgba(217, 68, 82, 0.05);
  color: var(--brand-red);
}

.contact-pref-btn.active[data-pref="whatsapp"] {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
  color: #16a34a;
}

.contact-pref-btn:not(.active):hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.wa-submit-btn {
  display: none;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #20c766, #128c4a);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(18, 140, 74, 0.28);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.wa-submit-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.wa-submit-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
