:root {
  --primary: #e8172f;
  --primary-dark: #b90d21;
  --brandblue: #222189;
  --brandblue-deep: #15115f;
  --ink: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.glass-nav {
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .14);
  backdrop-filter: blur(24px);
}

.header-hidden {
  transform: translateY(-120%);
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  border-radius: 999px;
  background: var(--primary);
  transition: transform .25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  content: "";
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

body.menu-open .hamburger {
  transform: rotate(45deg);
}

body.menu-open .hamburger::before {
  transform: translateY(7px) rotate(90deg);
}

body.menu-open .hamburger::after {
  opacity: 0;
}

.mobile-panel {
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .16);
  backdrop-filter: blur(24px);
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-panel a:not(:last-child) {
  border-radius: 1rem;
  padding: .8rem 1rem;
}

.mobile-panel a:not(:last-child):hover {
  background: rgba(232, 23, 47, .08);
  color: var(--primary);
}

body.menu-open .mobile-panel {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  background: var(--brandblue-deep);
}

.hero-pattern {
  opacity: .65;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .22), transparent 11rem);
  background-size: 44px 44px, auto;
}

.metric-card {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .13);
  padding: 1rem;
  color: white;
  backdrop-filter: blur(20px);
}

.metric-card span {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.metric-card strong {
  display: block;
  margin-top: .65rem;
  font-size: 1rem;
  line-height: 1.3;
}

.hero-card {
  animation: floatCard 6s ease-in-out infinite;
}

.section-pad {
  padding: 6.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.section-title {
  margin-top: .9rem;
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .98;
}

.value-card,
.service-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 1.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68)),
    rgba(255, 255, 255, .76);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .09);
  backdrop-filter: blur(22px);
}

.value-card {
  min-height: 238px;
  padding: 2rem;
}

.value-card span {
  color: rgba(232, 23, 47, .22);
  font-size: 4rem;
  font-weight: 950;
  line-height: 1;
}

.value-card h3,
.service-card h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
}

.value-card p,
.service-card p {
  margin-top: .85rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.service-card {
  min-height: 430px;
  padding: 2.4rem 2rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 23, 47, .26);
  box-shadow: 0 28px 90px rgba(232, 23, 47, .14);
}

.service-card ul {
  display: grid;
  gap: .6rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.service-card li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #334155;
  font-size: .95rem;
  font-weight: 750;
}

.service-card li::before {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(232, 23, 47, .1);
  content: "";
}

.text-primary,
.text-primary-DEFAULT {
  color: var(--primary);
}

.feature-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 2rem;
  background: #e2e8f0;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .15);
}

.feature-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.feature-badge {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(320px, calc(100% - 2.5rem));
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, .18);
  padding: 1.15rem 1.25rem;
  color: white;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px);
}

.feature-badge span {
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}

.feature-badge strong {
  display: block;
  margin-top: .4rem;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.15;
}

.mini-info-card,
.step-card,
.benefit-panel,
.faq-shell {
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 1.5rem;
  background: rgba(248, 250, 252, .8);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .07);
}

.mini-info-card {
  min-height: 150px;
  padding: 1.35rem;
}

.mini-info-card span {
  display: block;
  color: var(--brandblue);
  font-size: 1.04rem;
  font-weight: 950;
}

.mini-info-card p {
  margin-top: .65rem;
  color: #475569;
  line-height: 1.65;
}

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

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  padding: 1.35rem;
}

.step-card span {
  grid-row: span 2;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brandblue);
  color: white;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 16px 35px rgba(34, 33, 137, .25);
}

.step-card h3 {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 950;
}

.step-card p {
  margin-top: .35rem;
  color: #475569;
  line-height: 1.65;
}

.benefit-panel {
  align-self: stretch;
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .88), rgba(239, 246, 255, .84)),
    rgba(255, 255, 255, .84);
}

.benefit-panel h3 {
  margin-top: .85rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 950;
  line-height: 1.04;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.category-pills span {
  border: 1px solid rgba(34, 33, 137, .13);
  border-radius: 999px;
  background: white;
  padding: .78rem 1rem;
  color: #334155;
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.faq-shell {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(248, 250, 252, .92), rgba(255, 241, 242, .74));
}

.faq-list {
  display: grid;
  gap: .85rem;
}

.faq-item {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 1.2rem;
  background: white;
  padding: 1.1rem 1.2rem;
  text-align: left;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.faq-item span {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.faq-item strong {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(232, 23, 47, .1);
  color: var(--primary);
  font-size: 1.25rem;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq-item p {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  color: #475569;
  line-height: 1.65;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}

.faq-item.is-open strong {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-item.is-open p {
  max-height: 180px;
  margin-top: .7rem;
  opacity: 1;
}

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

.gallery-item {
  min-height: 260px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #e2e8f0;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .12);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.contact-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #fff1f2 100%);
}

.contact-card {
  padding: 1.5rem;
}

.contact-card dl > div {
  display: grid;
  gap: .28rem;
  border-bottom: 1px solid rgba(148, 163, 184, .24);
  padding-bottom: 1rem;
}

.contact-card dt {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-card dd {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.45;
}

.map-wrap {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 1.75rem;
  background: white;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .12);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  box-shadow: 0 18px 45px rgba(22, 163, 74, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 24px 60px rgba(22, 163, 74, .48);
}

.modal.flex {
  display: flex;
}

.modal-box {
  animation: modalIn .24s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}

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

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .22s;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1023px) {
  .feature-photo {
    min-height: 520px;
  }

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

  .gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 4.75rem 0;
  }

  .section-title {
    font-size: 2.35rem;
  }

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

  .gallery-large {
    grid-column: span 1;
  }

  .gallery-item {
    min-height: 270px;
  }

  .feature-photo {
    min-height: 430px;
  }

  .faq-shell {
    padding: 1.2rem;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .step-card span {
    grid-row: auto;
  }

  .hero-card {
    animation: none;
  }
}

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

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