:root {
  --ink-950: #0f1720;
  --ink-800: #203243;
  --ink-700: #31506a;
  --sea-500: #0d6a7d;
  --teal-400: #18a3a6;
  --sand-300: #f2ddba;
  --warm-50: #fffdfa;
  --alert-500: #ff8f3d;
  --white: #ffffff;
  --shadow-lg: 0 24px 60px rgba(15, 23, 32, 0.14);
  --shadow-md: 0 14px 34px rgba(15, 23, 32, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: 0.32s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink-950);
  background:
    radial-gradient(circle at top left, rgba(24, 163, 166, 0.12), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 143, 61, 0.16), transparent 30%),
    linear-gradient(180deg, #fffefb 0%, #f6f6f1 100%);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.page-leaving {
  opacity: 0.92;
  transform: translateY(6px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.7;
}

.page-shell {
  min-height: 100vh;
}

.site-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(32, 50, 67, 0.08);
}

.navbar-brand img,
.footer-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: rgba(32, 50, 67, 0.7);
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2832,50,67,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  font-weight: 700;
  color: var(--ink-800);
  transition: color var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--sea-500);
  transform: translateY(-1px);
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-brand {
  background: linear-gradient(135deg, var(--sea-500), var(--teal-400));
  border: 0;
  color: var(--white);
  box-shadow: 0 16px 28px rgba(13, 106, 125, 0.24);
  padding: 0.9rem 1.4rem;
}

.btn-brand:hover,
.btn-brand:focus {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(13, 106, 125, 0.3);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-950);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.82rem 1.25rem;
}

.btn-soft:hover,
.btn-soft:focus {
  color: var(--ink-950);
  transform: translateY(-2px);
}

.btn-outline-brand {
  background: transparent;
  color: var(--sea-500);
  border: 1px solid rgba(13, 106, 125, 0.24);
  padding: 0.9rem 1.4rem;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: var(--sea-500);
  background: rgba(13, 106, 125, 0.08);
  transform: translateY(-2px);
}

.section-space {
  padding: 1.25rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(13, 106, 125, 0.05));
}

.bg.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 3.5rem;
  display: flex;
  align-items: center;
  background-color: #16465a;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.bg.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 29, 0.22), rgba(7, 19, 29, 0.62)),
    linear-gradient(120deg, rgba(11, 39, 55, 0.92), rgba(13, 106, 125, 0.68));
}

.bg.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -100px -5%;
  height: 170px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 253, 250, 0.98));
}

.hero-copy,
.hero-media,
.surface-card,
.surface-panel,
.service-card,
.post-card,
.map-frame,
.config-table,
.contact-form-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.5rem;
}

.hero-copy h1,
.display-heading {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 0.98;
  margin: 0.8rem 0 1rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.hero-tags {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-tags span {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media {
  overflow: hidden;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.76rem;
}

.eyebrow {
  color: var(--alert-500);
}

.chip {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.h-section {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0.65rem 0 0.75rem;
}

.section-heading p {
  color: rgba(32, 50, 67, 0.82);
  max-width: 62ch;
}

.surface-card,
.contact-form-card,
.config-table,
.surface-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 50, 67, 0.08);
  padding: 1.35rem;
}

.quote-card {
  background:
    linear-gradient(145deg, rgba(255, 143, 61, 0.14), rgba(13, 106, 125, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.feature-list,
.footer-links,
.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li,
.footer-links li,
.sitemap-links li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-list li::before,
.footer-links li::before,
.sitemap-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal-400);
}

.service-card,
.post-card {
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.service-card:hover,
.service-card:focus-within,
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(15, 23, 32, 0.16);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 18, 28, 0.92) 0%, rgba(6, 18, 28, 0.7) 48%, rgba(6, 18, 28, 0.18) 100%);
}

.service-card .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 1.5rem;
}

.service-card .card-title,
.service-card p {
  color: var(--white);
}

.service-card p {
  margin: 0.9rem 0 1.25rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 50, 67, 0.08);
}

.card-cover {
  min-height: 220px;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.post-card .card-body {
  padding: 1.4rem;
}

.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0.8rem 0 0.7rem;
}

.form-control,
.form-select {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(32, 50, 67, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 106, 125, 0.42);
  box-shadow: 0 0 0 0.24rem rgba(13, 106, 125, 0.12);
}

textarea.form-control {
  min-height: 170px;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 380px;
}

.config-table .form-control {
  font-family: monospace;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(24, 163, 166, 0.14), transparent 30%),
    linear-gradient(180deg, #071622 0%, #0f2433 100%);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
}

.footer-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link__icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
}

.social-link__icon svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-panel {
  display: grid;
  gap: 1rem;
  background: rgba(7, 22, 34, 0.96);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.cookie-panel p,
.cookie-panel a {
  color: rgba(255, 255, 255, 0.88);
}

.cookie-actions {
  display: grid;
  gap: 0.75rem;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1070;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(18, 140, 74, 0.34);
}

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

.whatsapp-float.is-attention {
  animation: pulseWhats 1.35s ease-in-out 3;
}

.anim-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

.stat-box {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 50, 67, 0.08);
}

.stat-box strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--sea-500);
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
}

.table-clean td,
.table-clean th {
  padding: 0.95rem;
  border-bottom: 1px solid rgba(32, 50, 67, 0.08);
  vertical-align: top;
}

.table-clean th {
  width: 34%;
  color: var(--ink-800);
}

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

.alert {
  border-radius: 18px;
}

@keyframes pulseWhats {
  0% {
    transform: scale(1);
    box-shadow: 0 18px 38px rgba(18, 140, 74, 0.34);
  }

  40% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0.18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 18px 38px rgba(18, 140, 74, 0.34);
  }
}

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

  body,
  .btn,
  .anim-item,
  .service-card,
  .post-card,
  .whatsapp-float {
    transition: none;
  }

  .anim-item {
    opacity: 1;
    transform: none;
  }

  .whatsapp-float.is-attention {
    animation: none;
  }
}

@media (min-width: 768px) {
  .section-space {
    padding: 2rem 0;
  }

  .bg.hero {
    min-height: 88vh;
    padding: 8.5rem 0 5rem;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .cookie-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

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

@media (min-width: 1200px) {
  .sitemap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
