:root {
  --navy: #2c3c86;
  --navy-soft: #3d4d9a;
  --red: #c44536;
  --coral: #e14d4d;
  --text: #3d4450;
  --muted: #5d6672;
  --line: #e4e7ee;
  --soft: #e8f4f7;
  --card: #f6f8fb;
  --white: #fff;
  --shadow: 0 12px 32px rgba(36, 49, 110, 0.12);
  --header: 92px;
  --font: "Roboto", "Segoe UI", sans-serif;
  --display: "Krona One", "Roboto", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header);
  padding: 10px 0;
}
.wordmark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.wordmark img {
  width: 220px;
  height: auto;
  display: block;
}
.site-footer .wordmark img { width: 190px; }
.header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #4a5160;
}
.header-contact a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.header-contact a:hover { color: var(--red); }
.wa-icon { width: 16px; height: 16px; min-width: 16px; fill: #25D366; flex: 0 0 16px; display: block; }
.contact-list .wa-icon { width: 18px; height: 18px; min-width: 18px; flex-basis: 18px; }
.header-contact li { display: flex; align-items: center; gap: 6px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
}
.site-nav a, .menu-btn {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-nav a:hover, .menu-btn:hover, .site-nav a[aria-current="page"] {
  background: var(--soft);
}
.menu { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 5;
}
.menu:hover .dropdown, .menu:focus-within .dropdown, .menu.open .dropdown { display: grid; }
.dropdown a {
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
}
.dropdown a[aria-current="page"] { color: var(--red); background: #fff4f2; }

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy);
  background: #79c4d4;
}
.hero video, .page-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-inner, .page-hero-inner { position: relative; z-index: 1; text-align: center; padding: 72px 0; }
.typing-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.3;
}
.typing-bar .lead { color: var(--red); }
.typing-bar .word { color: var(--navy-soft); min-width: 12ch; text-align: left; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(225, 77, 77, 0.28);
}
.btn:hover { background: #cf3d3d; }
.hero .btn { margin-top: 22px; }

.services { padding: 42px 0 20px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-link {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(44, 60, 134, 0.08);
  border: 1px solid #f0f2f6;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--navy);
}
.service-link strong { color: var(--red); font-weight: 400; }
.service-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-grid .wide { grid-column: 1 / -1; }

.about { padding: 28px 0 10px; }
.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  background: #f4f6f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.features {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.72);
}
.feature { padding: 28px 22px 8px; text-align: center; }
.feature .icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  color: var(--navy-soft);
}
.feature .icon svg { width: 100%; height: 100%; }
.feature h2 {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.fachada {
  grid-column: 3;
  grid-row: 1;
  min-height: 280px;
  background: #d7e3ea url("../img/fachada.png") center/cover no-repeat;
}
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 18px 12px 22px;
  background: #fff;
  border-top: 1px solid #e6ebf0;
}
.stats strong {
  display: block;
  color: var(--navy-soft);
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}
.stats span { color: var(--navy-soft); font-size: 14px; }

.values { padding: 36px 0; background: linear-gradient(#fff, var(--soft)); }
.values-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}
.values-brand { text-align: center; }
.values-brand .wordmark { display: block; margin-top: 18px; }
.values-brand .wordmark img { width: 240px; margin-inline: auto; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #d5dde3; }
.tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--navy-soft);
  font-weight: 700;
}
.tabs button[aria-selected="true"] {
  background: #fff;
  border-color: #d5dde3;
  border-radius: 8px 8px 0 0;
}
.tab-panel {
  background: #fff;
  border: 1px solid #d5dde3;
  border-top: 0;
  padding: 16px 18px;
  min-height: 140px;
  color: #4c5562;
}
.tab-panel ul { margin: 0; padding-left: 18px; }
.tab-panel[hidden] { display: none; }

.contact {
  position: relative;
  padding: 64px 0;
  background: #5d6e86 center/cover no-repeat;
  color: #fff;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(73, 86, 120, 0.72);
}
.contact .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
}
.kicker {
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: #ffd0c8;
}
.rule { width: 54px; height: 3px; background: var(--coral); margin: 10px 0 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { color: #fff; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.map {
  margin-top: 18px;
  border: 0;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: #dfe6ee;
}

.form {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px 8px 16px;
}
.form p { margin: 6px 8px 14px; }
.form label { display: block; margin: 0 8px 12px; color: #f4f7fb; font-size: 14px; text-align: right; }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  padding: 12px 10px;
  background: #fff;
  color: #333;
  text-align: left;
}
.form textarea { min-height: 90px; resize: vertical; }
.form .btn { width: calc(100% - 16px); margin: 4px 8px 0; }
.form-note, .form-status { margin: 10px 8px 0; font-size: 13px; }
.hp { position: absolute; left: -9999px; }

.page-hero { position: relative; min-height: 220px; display: grid; place-items: center; overflow: hidden; background: #79c4d4; }
.page-hero h1 {
  margin: 0;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 32px);
}
.prose { padding: 36px 0 8px; }
.prose p { margin: 0 0 14px; font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0 48px; }
.gallery button {
  padding: 0;
  border: 0;
  background: #eef2f5;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.04); }

.lightbox {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1000px, 94vw);
}
.lightbox::backdrop { background: rgba(10, 16, 28, 0.86); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; background: #111; }
.lightbox form { position: absolute; top: 10px; right: 10px; margin: 0; }
.lightbox button {
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.site-footer {
  background: #f7f8fa;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-footer p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; }
.credit {
  margin-left: auto;
  flex: 0 0 auto;
  line-height: 0;
  opacity: 0.85;
}
.credit:hover { opacity: 1; }
.credit img { width: 72px; height: auto; display: block; }

.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(20, 120, 60, 0.35);
}
.wa:hover { background: #1ebe5b; }
.wa svg { width: 30px; height: 30px; fill: currentColor; }

@media (max-width: 900px) {
  .wordmark img, .values-brand .wordmark img, .site-footer .wordmark img { width: 180px; }
  .site-footer { padding-bottom: 88px; }
  .credit img { width: 64px; }
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }
  .site-nav.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; }
  .menu.open .dropdown { display: grid; }
  .service-grid, .gallery, .contact .wrap, .values-grid, .features, .stats {
    grid-template-columns: 1fr;
  }
  .footer-grid { align-items: flex-start; }
  .features, .fachada, .stats { grid-column: auto; grid-row: auto; }
  .service-grid .wide { grid-column: auto; }
  .fachada { min-height: 220px; }
  .typing-bar {
    flex-direction: column;
    border-radius: 28px;
    padding: 16px 18px;
    max-width: calc(100% - 8px);
  }
  .typing-bar .word { min-width: 0; width: 100%; min-height: 1.4em; text-align: center; }
  .form label { text-align: left; }
}
