:root {
  --bg: #0f2341;
  --bg-soft: #173257;
  --card: #fffaf0;
  --text: #22314b;
  --muted: #55647b;
  --primary: #d7bd76;
  --primary-dark: #b99c55;
  --border: #d5c8aa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(980px 320px at 50% -90px, rgba(225, 197, 129, 0.38), transparent 64%),
    linear-gradient(90deg, #0c1f3a 0%, #173257 10%, #ecd49a 22%, #fffdf8 50%, #ecd49a 78%, #173257 90%, #0c1f3a 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #f3deb0;
  color: #3a2f14;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.topbar {
  background: #173257;
  border-bottom: 1px solid #2f4f7b;
  font-size: 0.92rem;
}

.topbar-wrap {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar p {
  margin: 0;
  color: #f2dfae;
}

.topbar a {
  text-decoration: none;
  color: #f9e7bb;
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 35, 64, 0.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header.is-scrolled {
  background: rgba(12, 29, 54, 0.98);
  box-shadow: 0 10px 22px rgba(4, 10, 20, 0.35);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f7eccc;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #dacb9f;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

.nav a.is-active {
  color: #f2dcaa;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: #f5e6bd;
  padding: 8px 12px;
  border-radius: 8px;
}

.hero {
  padding: 72px 0 48px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 20, 35, 0.35), rgba(10, 20, 35, 0.62)),
    #0f2341;
  border-bottom: 1px solid #2f4c75;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left top, rgba(215, 189, 118, 0.22), transparent 48%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-content {
  background: rgba(14, 28, 49, 0.62);
  border: 1px solid rgba(236, 217, 169, 0.35);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(2px);
}

.badge {
  display: inline-block;
  font-size: 0.9rem;
  color: #2f260e;
  background: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.2;
  max-width: 16ch;
  color: #fff8e3;
}

.hero-text {
  color: #e5d7b3;
  margin-bottom: 22px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #34280c;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  border-color: var(--border);
  color: #2e3c59;
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-card,
.card,
.steps,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 24px rgba(39, 49, 72, 0.07);
}

.hero-card:hover,
.card:hover,
.steps:hover,
.contact-form:hover {
  transform: translateY(-4px);
  border-color: #c8b27a;
  box-shadow: 0 14px 28px rgba(35, 46, 70, 0.12);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.hero-card li {
  margin-bottom: 8px;
}

.hero-highlights {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-highlights span {
  border: 1px solid #e1d6bc;
  background: #f7efd9;
  color: #5f4a20;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-contact-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.trust-pill {
  border: 1px solid #d7dfef;
  background: #ffffff;
  border-radius: 10px;
  padding: 11px 12px;
  text-align: center;
  font-weight: 600;
  color: #425371;
  box-shadow: 0 8px 18px rgba(16, 33, 63, 0.08);
}

.section {
  padding: 64px 0;
}

.section-white {
  background: #ffffff;
  color: #1a2540;
  position: relative;
}

.section-white::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.8) 0%, transparent 22%, transparent 78%, rgba(236, 206, 128, 0.2) 100%);
}

.section-white h2,
.section-white h3 {
  color: #1a2540;
}

.section-white .section-text,
.section-white p,
.section-white li {
  color: #3e4a65;
}

.section-white .card,
.section-white .steps,
.section-white .contact-form,
.section-white .showcase-item,
.section-white .stat-card {
  background: #ffffff;
  border-color: #dfcfaa;
  box-shadow: 0 10px 24px rgba(122, 95, 32, 0.14);
}

.section-white .showcase-item {
  background: linear-gradient(150deg, #ffffff 0%, #f5f8ff 100%);
}

.section-white .showcase-item p,
.section-white .card p,
.section-white .stat-label,
.section-white .steps ol {
  color: #51607e;
}

.section-white h2::after {
  background: linear-gradient(90deg, #9f8350, transparent);
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid #e4e8f0;
  border-bottom: 1px solid #e4e8f0;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  width: 56%;
  height: 3px;
  border-radius: 999px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-text {
  color: var(--muted);
  margin-top: -2px;
}

.section-alt .section-text,
.section-alt p,
.section-alt li,
.section-alt h2,
.section-alt h3 {
  color: #3e4a65;
}

.section-alt .contact-list li,
.section-alt .stat-label,
.section-alt .steps ol {
  color: #51607e;
}

.section-alt .card,
.section-alt .steps,
.section-alt .contact-form,
.section-alt .stat-card {
  background: #ffffff;
  border-color: #dfcfaa;
  box-shadow: 0 10px 24px rgba(122, 95, 32, 0.14);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.refs span {
  border: 1px solid #ddcca4;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  color: #4d5b74;
  font-size: 0.95rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.refs span:hover {
  transform: translateY(-3px);
  border-color: #cfb47a;
}

.stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #ddcca4;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.stat-value {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.stat-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.showcase-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #ffffff 0%, #f5f8ff 52%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  min-height: 170px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 24px rgba(122, 95, 32, 0.14);
}

.showcase-item::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  top: -55px;
  background: radial-gradient(circle, rgba(215, 189, 118, 0.28), transparent 70%);
}

.showcase-item:hover {
  transform: translateY(-4px);
  border-color: #c6af75;
  box-shadow: 0 16px 26px rgba(35, 46, 70, 0.12);
}

.showcase-item h3 {
  position: relative;
  margin-top: 0;
  margin-bottom: 8px;
}

.showcase-item p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-filters {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filter {
  border: 1px solid #ddcca4;
  background: #fffaf0;
  color: #4d5b74;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #34280c;
}

.gallery-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.gallery-item {
  min-height: 170px;
  border-radius: 14px;
  border: 1px solid #ddcca4;
  background: #ffffff;
  color: #2d3b57;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 24px rgba(122, 95, 32, 0.14);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 33, 0.66), rgba(10, 18, 33, 0.08) 58%);
  pointer-events: none;
}

.gallery-item span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px;
  color: #f8f3e3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: #cfb47a;
  box-shadow: 0 16px 28px rgba(35, 46, 70, 0.14);
}


.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #f8efdc;
  border: 1px solid #d9cba9;
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #2d3a55;
}

.faq-item[open] {
  border-color: #c8ae71;
  box-shadow: 0 10px 20px rgba(36, 44, 62, 0.09);
}

.faq-item p {
  margin: 10px 0 2px;
  color: #52617a;
}

.info-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: #fff8eb;
  border: 1px solid #d8c7a2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(40, 47, 65, 0.08);
}

.info-card h3 {
  margin: 0 0 10px;
  color: #293751;
}

.zone-list,
.hours-list {
  margin: 0;
  padding-left: 18px;
  color: #52617a;
  display: grid;
  gap: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 24, 0.52);
  backdrop-filter: blur(4px);
  padding: 18px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #d8c7a1;
  background: #fff9ef;
  padding: 20px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  position: relative;
}

.lightbox-image {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #f3ead6;
}

.lightbox-panel h3 {
  margin: 0 0 8px;
  color: #24324b;
}

.lightbox-panel p {
  margin: 0;
  color: #596884;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #ddceab;
  background: #fff4da;
  color: #5f4a20;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.steps ol {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.contact-list li {
  margin-bottom: 8px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-quick-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #c0a769;
  box-shadow: 0 0 0 3px rgba(215, 189, 118, 0.2);
}

label {
  font-size: 0.92rem;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  background: #fffaf0;
  color: var(--text);
  border: 1px solid #d8deeb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.toast {
  min-height: 22px;
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--primary);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: #173257;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  padding-top: 8px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  color: #f0ddac;
}

.footer p {
  color: #d9cda8;
}

.footer h3 {
  margin: 0 0 8px;
  color: #f2e5c1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #d7cbab;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #385882;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cta-band {
  background: linear-gradient(165deg, #ead9b1 0%, #e4cd98 100%);
  border-top: 1px solid #cdb27a;
  border-bottom: 1px solid #cdb27a;
}

.cta-band-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: #2f250e;
}

.cta-band p {
  margin: 0;
  color: #5d4a22;
}

.cta-band-actions {
  display: flex;
  gap: 10px;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: #25d366;
  color: #072718;
  text-decoration: none;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.33);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 50;
  border: 1px solid #d0ba85;
  background: #f2dfa9;
  color: #4b3a16;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal.from-left {
  transform: translate(-28px, 16px);
}

.reveal.from-right {
  transform: translate(28px, 16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }


  .info-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .mobile-menu-btn {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4%;
    background: #163257;
    border: 1px solid #2f4f7b;
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    min-width: 180px;
  }

  .nav.is-open {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .topbar-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .btn {
    width: 100%;
    text-align: center;
  }

  .whatsapp-fab {
    display: none;
  }

  .back-to-top {
    right: 12px;
    bottom: 122px;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #ccb27a;
    background: #ead29f;
  }

  .mobile-cta a {
    text-align: center;
    text-decoration: none;
    color: #3f3013;
    font-weight: 800;
    padding: 12px 8px;
  }

  body {
    padding-bottom: 52px;
  }
}
