:root {
  --navy: #0d3b66;
  --navy-dark: #082a4a;
  --teal: #1f9d94;
  --teal-dark: #17766f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb356;
  --bg: #ffffff;
  --bg-alt: #f5f9fa;
  --text: #1c2b36;
  --text-muted: #56707d;
  --border: #e1eaec;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 59, 102, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0;
}

p { margin: 0; }

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; fill: currentColor; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost { background: rgba(13,59,102,0.06); color: var(--navy); padding: 10px 16px; }
.btn-ghost:hover { background: rgba(13,59,102,0.12); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-flip {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  perspective: 700px;
}
.logo-flip-inner {
  display: block;
  position: relative;
  width: 46px;
  height: 46px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo.is-flipped .logo-flip-inner {
  transform: rotateY(180deg);
}
.logo-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: filter 0.7s ease;
}
.logo.is-flipped .logo-face {
  filter: drop-shadow(0 4px 10px rgba(13, 59, 102, 0.35));
}
@media (hover: hover) and (pointer: fine) {
  .logo:hover .logo-flip-inner {
    transform: rotateY(180deg);
  }
  .logo:hover .logo-face {
    filter: drop-shadow(0 4px 10px rgba(13, 59, 102, 0.35));
  }
}
.logo-back {
  transform: rotateY(180deg);
  object-fit: cover;
  background: #fff;
}

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #f5f9fa 0%, #eaf6f5 60%, #ffffff 100%);
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.hero-visual { display: flex; justify-content: center; }
.hero-product-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section.about, .section.why-us { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.center { text-align: center; }

.section-lead {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 1.02rem;
}
.section-lead.center { text-align: center; }

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: center;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}


/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card--wide { grid-column: span 2; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.product-card--wide .product-icon { margin: 0 0 14px; }

.product-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--teal-dark);
}
.product-icon svg { width: 100%; height: 100%; }

.product-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.product-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.products-note {
  text-align: center;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.products-note a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Why Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 44px 0 56px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-card > div { min-width: 0; }
.contact-card h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; }
.contact-card p { font-size: 0.88rem; color: var(--text-muted); overflow-wrap: anywhere; }
.contact-card--static:hover { transform: none; box-shadow: var(--shadow); }
.contact-card--static p { margin: 2px 0; }
.contact-card--static a { color: var(--text-muted); }
.contact-card--static a:hover { color: var(--teal-dark); text-decoration: underline; }

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.form-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }

.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-card input,
.form-card select,
.form-card textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 400;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #cfe0e6;
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { color: #fff; margin-bottom: 14px; }
.footer-logo .logo-mark { background: var(--teal); }
.site-footer p { color: #a9c1cb; font-size: 0.9rem; }

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.footer-links a, .footer-contact a {
  color: #a9c1cb;
  font-size: 0.9rem;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #7f9aa6;
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }
.floating-whatsapp .icon { width: 30px; height: 30px; fill: #fff; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-visual { max-width: 260px; margin: 8px auto 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-column: span 2; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .forms-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .header-call span, .header-whatsapp span { display: none; }
  .header-call, .header-whatsapp { padding: 10px; }
  .hamburger { display: flex; }
  .logo-text { font-size: 1.15rem; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: span 1; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-contact { align-items: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
