:root {
  --color-blue: #1f4e79;
  --color-blue-deep: #163a5b;
  --color-brown: #8b5a2b;
  --color-brown-light: #c9a46a;
  --color-black: #111111;
  --color-warm: #f8f6f2;
  --color-cream: #f1ece3;
  --color-gray: #555555;
  --color-line: #e8e4dd;
  --color-white: #ffffff;
  --shadow-soft: 0 20px 40px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 16px 28px rgba(17, 17, 17, 0.06);
  --radius-soft: 1.5rem;
  --radius-card: 1.25rem;
  --radius-pill: 999px;
  --container: 1200px;
  --transition: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 164, 106, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf9f4 0%, #f8f6f2 60%, #f6f2ea 100%);
  color: var(--color-black);
}

body.menu-open {
  overflow: hidden;
}

main {
  min-height: 70vh;
}

img {
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 78, 121, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.9rem 1.1rem;
  border-radius: 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 20rem;
  height: 20rem;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

.site-shell::before {
  top: 5rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(31, 78, 121, 0.12), transparent 68%);
}

.site-shell::after {
  bottom: 8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(139, 90, 43, 0.12), transparent 68%);
}

.section-label {
  letter-spacing: 0.18em;
}

.page-header {
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 242, 0.94);
  border-bottom: 1px solid transparent;
}

.page-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.06);
}

.site-brand {
  letter-spacing: -0.03em;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn-primary,
.btn-secondary {
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brown) 0%, #a36e39 100%);
  color: var(--color-white);
  box-shadow: 0 14px 24px rgba(139, 90, 43, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #77481f 0%, #8b5a2b 100%);
}

.btn-secondary {
  border: 1px solid rgba(17, 17, 17, 0.18);
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(17, 17, 17, 0.5);
  background: rgba(255, 255, 255, 0.86);
}

.dark-panel {
  background:
    linear-gradient(150deg, rgba(17, 17, 17, 0.92), rgba(22, 58, 91, 0.88)),
    linear-gradient(120deg, rgba(201, 164, 106, 0.1), transparent);
}

.blue-panel {
  background:
    linear-gradient(135deg, rgba(31, 78, 121, 0.97), rgba(22, 58, 91, 0.96)),
    linear-gradient(135deg, rgba(201, 164, 106, 0.14), transparent);
}

.hero-panel,
.feature-card,
.service-card,
.post-card,
.info-card,
.legal-card,
.map-card,
.faq-card,
.process-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-card);
}

.hero-panel--background {
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
}

.hero-panel__media,
.hero-panel__overlay {
  position: absolute;
  inset: 0;
}

.hero-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel__overlay {
  background:
    linear-gradient(90deg, rgba(248, 246, 242, 0.96) 0%, rgba(248, 246, 242, 0.86) 38%, rgba(248, 246, 242, 0.52) 70%, rgba(248, 246, 242, 0.3) 100%);
}

.hero-panel__content {
  position: relative;
  z-index: 1;
  min-height: min(88vh, 760px);
  max-width: 48rem;
}

.hero-image,
.rounded-media img,
.gallery-card img,
.service-media img,
.blog-media img {
  border-radius: var(--radius-soft);
}

.rounded-media,
.gallery-card,
.service-media,
.blog-media {
  overflow: hidden;
}

.rounded-media img,
.gallery-card img,
.service-media img,
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card:hover img,
.service-media:hover img,
.blog-media:hover img,
.rounded-media:hover img {
  transform: scale(1.03);
}

.grain-line {
  background:
    linear-gradient(90deg, rgba(201, 164, 106, 0) 0%, rgba(201, 164, 106, 0.8) 28%, rgba(31, 78, 121, 0.6) 100%);
  height: 2px;
  width: 7rem;
  border-radius: 999px;
}

.metric-pill {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(31, 78, 121, 0.1);
  color: var(--color-blue);
}

.service-card:hover,
.feature-card:hover,
.post-card:hover,
.info-card:hover,
.faq-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(31, 78, 121, 0.15);
}

.gallery-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(17, 17, 17, 0.88) 100%);
}

.number-badge {
  color: rgba(31, 78, 121, 0.15);
  line-height: 1;
}

.highlight-box {
  border-left: 4px solid var(--color-brown-light);
  background: rgba(255, 255, 255, 0.65);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: var(--color-black);
}

.form-textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.error-text {
  color: #8c1d18;
}

.success-box {
  background: rgba(43, 123, 77, 0.12);
  border: 1px solid rgba(43, 123, 77, 0.24);
  color: #1d5f3b;
}

.footer-shell {
  background:
    linear-gradient(180deg, #152433 0%, #111111 100%);
  color: rgba(255, 255, 255, 0.88);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-brown-light);
}

.kit-digital-footer {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.kit-digital-footer img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 18px 28px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1db954;
}

.legal-prose p + p,
.legal-prose ul + p,
.legal-prose h2 + p,
.legal-prose h3 + p {
  margin-top: 1rem;
}

.legal-prose ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.placeholder-note {
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.14);
}

.status-card {
  box-shadow: var(--shadow-card);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.95;
}

.post-content > * + * {
  margin-top: 1.25rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--color-black);
  font-weight: 700;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.9rem;
}

.post-content h3 {
  font-size: 1.45rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.25rem;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: rgba(31, 78, 121, 0.35);
  text-underline-offset: 0.2rem;
}

.post-content img {
  border-radius: var(--radius-soft);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content figure {
  margin: 1.5rem 0;
}

.post-content figcaption {
  color: var(--color-gray);
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .mobile-menu[data-open="false"] {
    display: none;
  }
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  a:hover,
  button:hover,
  .gallery-card:hover img,
  .service-media:hover img,
  .blog-media:hover img,
  .rounded-media:hover img {
    transform: none;
  }
}
