:root {
  --navy: #18266e;
  --navy-700: #25347f;
  --blue: #3c5bbf;
  --blue-600: #2a47a8;
  --sky: #eaeffb;
  --ink: #14223a;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --bg: #f6f9fd;
  --white: #ffffff;
  --wa: #25d366;
  --shadow: 0 10px 30px rgba(11, 36, 71, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}
.brand { display: inline-flex; align-items: baseline; font-size: 1.5rem; min-width: 0; line-height: 1; }
.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.brand-text strong { color: var(--navy); font-weight: 800; }
.brand-text em {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}
.nav { display: flex; align-items: center; gap: 26px; flex: 0 0 auto; }
.nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--wa);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(0.95); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--sky) 100%);
  padding: 0 0 48px;
  overflow: hidden;
}
.hero .hero-inner { width: 100%; max-width: 100%; padding: 0; text-align: center; }
.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: rgba(24, 38, 110, 0.06); }

/* Section basics */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
}
.section-lead, .contact-lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 0 36px; }

/* About */
.about { background: var(--white); }
.mission {
  font-size: 1.18rem;
  color: var(--ink);
  max-width: 880px;
  margin: 0 0 44px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.value-card p { margin: 0; color: var(--muted); }

/* Products */
.products { background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.product-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.product-card figcaption::after {
  content: "View details →";
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 36, 71, 0.14); }
.product-media {
  aspect-ratio: 4 / 3;
  background: #f0f4fa;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-card figcaption { padding: 18px 20px 22px; }
.product-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.product-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.products-note { margin: 36px 0 0; color: var(--muted); }
.products-note a { color: var(--blue); font-weight: 600; }

/* Contact */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sky);
  transition: transform .15s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card.whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.contact-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.contact-value { font-size: 1.3rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.contact-value.email { font-size: 0.98rem; overflow-wrap: break-word; word-break: normal; }
.contact-value.address-value { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.contact-card.address { grid-column: 1 / -1; }

/* Footer */
.site-footer { background: var(--navy); color: #c8d6ec; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: #aebff0; }
.site-footer p { margin: 0; font-size: 0.92rem; }

/* Product modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 36, 71, 0.62);
  backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(11, 36, 71, 0.35);
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.modal-close:hover { background: #fff; }
.modal-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal-media { background: #f0f4fa; display: grid; place-items: center; }
.modal-media img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; display: block; }
.modal-info { padding: 34px 32px; }
.modal-info h3 { margin: 0 0 12px; font-size: 1.5rem; color: var(--navy); }
.modal-info > p { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; }
.modal-contact { border-top: 1px solid var(--line); padding-top: 20px; }
.modal-contact-title { margin: 0 0 14px; font-weight: 600; color: var(--ink); }
.modal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
  transition: transform .12s, box-shadow .2s;
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.modal-btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.modal-btn.email { word-break: break-all; }

@media (max-width: 720px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { max-height: 42vh; }
  .modal-media img { max-height: 42vh; }
  .modal-info { padding: 24px 22px; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 14px; }
  .value-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 76px; }
  section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .header-inner { height: 60px; }
  .brand { font-size: 1.2rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.9rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 1.04rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}
