:root {
  --navy: #061a2f;
  --navy-soft: #0d2a49;
  --lime: #8fd400;
  --blue: #00aeef;
  --gray: #f5f7fa;
  --text: #102033;
  --muted: #657386;
  --line: #dfe7ef;
  --white: #ffffff;
  --danger: #b42318;
  --success: #147a45;
  --shadow: 0 18px 40px rgba(6, 26, 47, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--lime);
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--navy);
}

.brand-name {
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--navy);
  background: var(--lime);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(143, 212, 0, 0.26);
}

.btn-primary {
  background: var(--lime);
  color: var(--navy);
}

.btn-outline,
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-page .btn-outline,
.thanks-page .btn-outline,
.site-nav .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn-tiny {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.hero {
  min-height: calc(88vh - var(--header-height));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(6, 26, 47, 0.95) 0%, rgba(6, 26, 47, 0.82) 46%, rgba(6, 26, 47, 0.22) 100%),
    url("../img/hero-bitefit.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-content {
  color: var(--white);
  padding: 96px 0 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.96;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 8px;
  color: var(--lime);
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.section {
  padding: 86px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 2.55rem;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.benefits-section,
.ingredients-section,
.contact-section {
  background: var(--gray);
}

.benefit-grid,
.product-grid,
.ingredient-grid,
.contact-actions,
.stats-grid,
.product-admin-grid {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.benefit-card,
.product-card,
.contact-card,
.stat-card,
.admin-panel,
.admin-product-card,
.login-card,
.thanks-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefit-card {
  padding: 26px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 40px;
  margin-bottom: 22px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--lime);
  font-weight: 900;
}

.benefit-card p,
.product-card p,
.split-grid p,
.notice-box p,
.order-copy p,
.contact-card span,
.muted {
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  overflow: hidden;
}

.product-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--gray);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 22px;
}

.product-meta,
.card-actions,
.panel-heading,
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price,
.detail-price {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(0, 174, 239, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-actions {
  margin-top: 20px;
}

.split-section {
  background: var(--navy);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.split-grid h2,
.split-grid p {
  color: var(--white);
}

.split-grid p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
}

.ingredient-grid {
  grid-template-columns: repeat(5, 1fr);
}

.ingredient-pill {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(6, 26, 47, 0.08);
  font-weight: 900;
  text-align: center;
}

.notice-section {
  padding: 52px 0;
}

.notice-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(6, 26, 47, 0.1);
  border-radius: var(--radius);
  background: #fff9e8;
}

.notice-box h2 {
  font-size: 1.7rem;
}

.order-section {
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.88), rgba(255, 255, 255, 1));
}

.order-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.mini-proof {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.mini-proof span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(143, 212, 0, 0.16);
  font-weight: 800;
}

.order-form,
.admin-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label,
legend {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.14);
}

textarea {
  resize: vertical;
}

.payment-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-field input {
  width: auto;
}

.form-alert {
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--radius);
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
}

.form-alert.success {
  border-color: rgba(20, 122, 69, 0.22);
  color: var(--success);
  background: rgba(20, 122, 69, 0.08);
}

.form-alert p {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-actions {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 24px;
}

.contact-card strong {
  color: var(--navy);
}

.site-footer {
  padding: 50px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--white);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.product-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-copy h1 {
  margin: 0 0 18px;
  font-size: 3.4rem;
}

.compact-order {
  padding-top: 52px;
}

.thanks-section,
.login-section {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
}

.thanks-card,
.login-card {
  max-width: 640px;
  padding: 38px;
}

.login-card {
  max-width: 460px;
}

.order-reference {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(143, 212, 0, 0.18);
  font-weight: 900;
}

.admin-section {
  background: var(--gray);
  min-height: calc(100vh - var(--header-height));
}

.admin-heading {
  margin-bottom: 26px;
}

.admin-heading h1 {
  margin: 0;
  font-size: 2.4rem;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 26px;
}

.stat-card {
  padding: 24px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 2.4rem;
}

.admin-panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.wide-table table {
  min-width: 1120px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td a,
td .muted {
  display: block;
}

.status,
.status-form select {
  border-radius: 999px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  background: var(--gray);
}

.status-pendiente {
  color: #8a5a00;
  background: #fff2cc;
}

.status-confirmado {
  color: #075985;
  background: #dff4ff;
}

.status-entregado {
  color: #166534;
  background: #dcfce7;
}

.status-cancelado {
  color: #991b1b;
  background: #fee2e2;
}

.status-form {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.product-admin-grid {
  grid-template-columns: repeat(2, 1fr);
}

.admin-product-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-product-card img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray);
}

.empty-state {
  min-height: 60vh;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .benefit-grid,
  .product-grid,
  .ingredient-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid,
  .order-grid,
  .contact-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .stats-grid,
  .product-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    background-position: 60% center;
  }

  .hero-content {
    padding: 76px 0 82px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-lead {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 64px 0;
  }

  .benefit-grid,
  .product-grid,
  .ingredient-grid,
  .two-columns,
  .footer-grid,
  .notice-box {
    grid-template-columns: 1fr;
  }

  .order-form,
  .admin-form,
  .thanks-card,
  .login-card {
    padding: 22px;
  }

  .product-detail-copy h1 {
    font-size: 2.5rem;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-actions,
  .card-actions,
  .product-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
