:root {
  --primary: #0d1b2a;
  --primary-soft: #1b263b;
  --accent: #d4af37;
  --accent-soft: #f4e4b3;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #0f766e;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(13, 27, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.topbar a {
  color: #e5e7eb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  position: relative;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 60;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--primary);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(13, 27, 42, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.site-header.nav-is-open .nav-backdrop {
  display: block;
}

@media (min-width: 769px) {
  .primary-nav {
    margin-left: auto;
  }
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
  justify-content: flex-end;
}

.primary-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.35rem 0.15rem;
  border-radius: 6px;
}

.primary-nav a.active,
.primary-nav a:hover {
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .site-nav {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5.25rem 1.35rem 2rem;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(13, 27, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 55;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.nav-is-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
  }

  .primary-nav a {
    padding: 0.85rem 0.65rem;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .primary-nav li:last-child a {
    border-bottom: 0;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  border: 1px solid #cbd5e1;
  color: var(--primary);
  background: var(--white);
}

.hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(120deg, #0d1b2a 0%, #1b263b 45%, #415a77 100%);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: #e2e8f0;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.hero-card h3 {
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hero-figure img {
  width: 100%;
  display: block;
  height: clamp(200px, 32vw, 360px);
  object-fit: cover;
}

.hero-media .hero-card {
  margin: 0;
}

.card-thumb {
  margin: -1.2rem -1.2rem 1rem -1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-alt {
  background: #eef2f7;
}

.testimonial {
  align-items: center;
}

.testimonial-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.testimonial-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.testimonial-quote {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary-soft);
  font-weight: 600;
  line-height: 1.55;
}

.testimonial-quote footer {
  margin-top: 1rem;
  padding: 0;
  background: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

section {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 1.3rem;
}

.section-title h2 {
  color: var(--primary);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.section-title p {
  color: var(--text-light);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.list {
  padding-left: 1rem;
}

.list li {
  margin-bottom: 0.45rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #fff7d6;
  color: #7c5b00;
  margin-bottom: 0.6rem;
}

form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.notice {
  margin-top: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

details {
  background: var(--white);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-soft);
}

footer {
  background: var(--primary);
  color: #e5e7eb;
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer-title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 40;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    height: min(280px, 52vw);
  }

  .topbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 94%);
  }

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

  .logo-img {
    height: 40px;
    max-width: min(200px, 62vw);
  }

  .hero {
    padding: 3rem 0 2.75rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 2.05rem);
  }

  section {
    padding: 2.75rem 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }

  .testimonial-quote {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav,
  .nav-toggle-bar,
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
