:root {
  --bg: #f4faff;
  --bg-soft: #eef6ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0e2f4f;
  --muted: #4f6682;
  --primary: #1d75bd;
  --primary-dark: #0f4f88;
  --accent-purple: #5b43b1;
  --border: #cfe3f5;
  --shadow-sm: 0 10px 26px rgba(19, 83, 140, 0.1);
  --shadow-md: 0 18px 40px rgba(14, 76, 132, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 184, 217, 0.3), transparent 34%),
    radial-gradient(circle at 100% 6%, rgba(113, 192, 85, 0.17), transparent 30%),
    linear-gradient(180deg, #f2f9ff 0%, #f7fbff 48%, #f6fcff 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.08;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

section {
  scroll-margin-top: 130px;
}

.site-header {
  width: min(1160px, 92%);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 227, 245, 0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0.7rem;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
  padding: 0.35rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #d6e8f8;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.brand-logo {
  width: 182px;
  height: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  text-decoration: none;
  color: #315171;
  font-weight: 600;
  font-size: 0.87rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--primary-dark);
  border-color: #c8ddf1;
  background: #f1f8ff;
}

.header-cta {
  padding: 0.58rem 0.9rem;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.menu-btn {
  display: none;
}

.menu-optional {
  opacity: 0.9;
}

main {
  width: min(1160px, 92%);
  margin: 1.9rem auto 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
}

.hero-content,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.65s ease both;
}

.hero-content {
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 184, 217, 0.22), transparent 68%);
  top: -75px;
  right: -65px;
  pointer-events: none;
}

.hero-logo-wrap {
  margin-bottom: 1rem;
  min-height: 124px;
  border-radius: 18px;
  border: 1px solid #d6e8f8;
  background: linear-gradient(145deg, #ffffff, #f1f9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
}

.hero-logo {
  width: min(370px, 84%);
  height: auto;
  object-fit: contain;
}

.hero-fallback {
  font-size: clamp(1rem, 3vw, 1.4rem);
}

body.logo-missing .brand-logo,
body.logo-missing .hero-logo {
  display: none;
}

body.logo-missing .logo-fallback {
  display: inline-flex;
}

.kicker {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent-purple);
}

.hero-content h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  margin: 0.58rem 0 0.95rem;
  max-width: 16ch;
}

.hero-content p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.18rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--primary) 0%, var(--accent-purple) 100%);
  box-shadow: 0 12px 24px rgba(27, 95, 160, 0.24);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: #fff;
}

.hero-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.hero-info {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(204, 224, 240, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.hero-info h2 {
  margin: 0;
  font-size: 1.18rem;
}

.hero-info p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-info ul {
  margin: 0.78rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.section {
  margin-top: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.1rem;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.8s ease both;
}

.section-alt {
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 67, 177, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.section-catalogo {
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 192, 85, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}

.section-head h2 {
  margin-top: 0.38rem;
  font-size: clamp(1.52rem, 3.1vw, 2.25rem);
}

.lead,
.card p,
.product-card p,
.stats span,
.wellness-card p {
  color: var(--muted);
}

.lead {
  font-size: 1rem;
  line-height: 1.62;
}

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

.card {
  background: var(--bg-soft);
  border: 1px solid #cde3f6;
  border-radius: 18px;
  padding: 1.18rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(34, 92, 146, 0.12);
}

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

.list-columns {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-card {
  background: var(--surface-soft);
  border: 1px solid #d2e4f4;
  border-radius: 18px;
  padding: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.careers-form {
  margin-top: 1rem;
}

.instagram-feed {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.instagram-post {
  display: block;
  text-decoration: none;
  border: 1px solid #d2e4f4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(18, 81, 137, 0.15);
}

.instagram-post img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.instagram-post span {
  display: block;
  padding: 0.68rem 0.75rem;
  font-weight: 700;
  color: #1d4f7b;
  font-size: 0.92rem;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c6dcf1;
  background: #f2f8ff;
  color: #1a588f;
  font-weight: 700;
  font-size: 0.86rem;
}

.catalogo-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

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

.wellness-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wellness-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(16, 81, 137, 0.14);
}

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

.wellness-card div {
  padding: 0.9rem;
}

.brand-block + .brand-block {
  margin-top: 1.2rem;
}

.brand-title {
  font-size: 1.26rem;
  margin-top: 0.35rem;
}

.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.brand-tab {
  border: 1px solid #c8ddf0;
  background: #f2f8ff;
  color: #1f5a90;
  border-radius: 999px;
  padding: 0.48rem 0.86rem;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--primary), var(--accent-purple));
}

.brand-block.is-hidden {
  display: none;
}

.products-toolbar {
  margin-top: 0.8rem;
  margin-bottom: 0.45rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.65rem;
}

.toolbar-field {
  display: grid;
  gap: 0.3rem;
  color: #194a75;
  font-size: 0.82rem;
  font-weight: 700;
}

.toolbar-field input,
.toolbar-field select,
.quote-form textarea,
.quote-form input {
  width: 100%;
  border: 1px solid #c5dff3;
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.toolbar-field input:focus,
.toolbar-field select:focus,
.quote-form textarea:focus,
.quote-form input:focus {
  outline: 2px solid rgba(29, 117, 189, 0.16);
  border-color: #8ebde2;
}

.products-empty {
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  display: none;
}

.products-pagination {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.page-btn {
  border: 1px solid #c9def0;
  border-radius: 999px;
  padding: 0.44rem 0.8rem;
  background: #f3f9ff;
  color: #1f5e95;
  font-weight: 700;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.84rem;
  color: #345c83;
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1rem;
}

.products-grid-10 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  border: 1px solid #d2e4f4;
  border-radius: 18px;
  padding: 0.9rem;
  background: var(--surface-soft);
}

.product-link {
  text-decoration: none;
  display: block;
}

.product-thumb {
  height: 142px;
  border-radius: 14px;
  border: 1px solid #d1e5f6;
  overflow: hidden;
  background: #fff;
}

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

.product-thumb img.is-fallback {
  object-fit: contain;
  padding: 0.9rem;
  opacity: 0.86;
}

.product-card h3 {
  margin-top: 0.72rem;
  font-size: 0.98rem;
  line-height: 1.32;
  min-height: 3.1em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card p {
  margin-top: 0.34rem;
  font-size: 0.9rem;
}

.quote-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quote-form label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
  color: #133f67;
  font-size: 0.9rem;
}

.quote-form label:nth-child(4),
.quote-form label:nth-child(5),
.quote-form button {
  grid-column: 1 / -1;
}

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

.stats div {
  background: linear-gradient(180deg, #f3f9ff 0%, #edf6ff 100%);
  border: 1px solid #cde3f7;
  padding: 1.05rem;
  border-radius: 16px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0 2.4rem;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(130deg, #1fbe5f, #129347);
  border-radius: 999px;
  padding: 0.72rem 0.9rem;
  box-shadow: 0 16px 26px rgba(17, 135, 62, 0.32);
}

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

.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .header-cta,
  .menu-optional {
    display: none;
  }

  .menu a {
    padding: 0.42rem 0.62rem;
    font-size: 0.83rem;
  }

  .products-grid-10 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid,
  .stats,
  .products-grid,
  .products-grid-10,
  .wellness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institutional-grid,
  .list-columns,
  .instagram-feed {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .product-thumb {
    height: 136px;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .brand-mark {
    min-width: 146px;
    min-height: 48px;
    padding: 0.28rem 0.52rem;
  }

  .brand-logo {
    width: 126px;
  }

  .menu-btn {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
  }

  .menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.4rem;
  }

  .header-right {
    width: 100%;
    display: block;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    width: 100%;
    padding: 0.72rem 0.78rem;
    border: 1px solid #d9e9f7;
    background: #f8fcff;
    font-size: 0.92rem;
  }

  .grid,
  .stats,
  .products-grid,
  .products-grid-10,
  .wellness-grid,
  .products-toolbar {
    grid-template-columns: 1fr;
  }

  .products-pagination {
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .hero-photo {
    min-height: 300px;
  }

  .hero-content,
  .hero-card,
  .section {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .hero-content p,
  .lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .product-thumb {
    height: 156px;
  }

  .product-card {
    padding: 0.85rem;
  }

  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.68rem 0.82rem;
    font-size: 0.8rem;
  }
}
