/* ============================================
   TUPILACTEOS - styles.css
   Diseno profesional - 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Paleta principal */
  --cream: #FFF8F0;
  --light: #FFF3E6;
  --deep: #1A0A00;
  --gold: #D4A853;
  --gold-light: rgba(212,168,83,0.15);
  --coral: #E8634A;
  --mint: #2C6E5A;
  --text: #2D1A0E;
  --muted: #7A5542;
  --border: rgba(212,168,83,0.25);

  /* Legado (para admin/customer/forms) */
  --ink: #2b1b21;
  --line: #eadde1;
  --paper: #fff8f3;
  --white: #ffffff;
  --blue: #0c5c78;
  --green: #008f5a;
  --navy: #702c3d;
  --pink: #e8afe3;
  --sky: #8dd1ed;
  --wafer: #f3c690;
  --shadow: 0 18px 48px rgba(109,42,59,0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  background: rgba(255,248,240,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 78px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--deep);
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Legado brand-dot para compatibilidad */
.brand-dot {
  align-items: center;
  background: var(--navy);
  color: white;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
  border-radius: 50%;
}

.brand small, .eyebrow {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-nav a:not(.nav-pedido):not(.btn-orion) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-nav a:not(.nav-pedido):not(.btn-orion):hover { opacity: 1; }

.nav-pedido {
  background: var(--deep);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-pedido:hover { background: var(--coral) !important; }

.btn-orion {
  background: transparent;
  border: 1.5px solid var(--deep);
  color: var(--deep) !important;
  opacity: 1 !important;
  padding: 0.5rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-orion:hover { background: var(--deep); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--deep);
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.7;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-button:hover { opacity: 1; }

/* ============================================
   BOTONES GLOBALES
   ============================================ */
.btn-primary {
  background: var(--deep);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--deep);
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover { background: var(--coral); border-color: var(--coral); }

.btn-secondary {
  background: transparent;
  color: var(--deep);
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(26,10,0,0.25);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--deep); }

.btn-secondary-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.35);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary-light:hover { background: rgba(255,255,255,0.25); }

/* Legado .button */
.button, button.button {
  background: var(--navy);
  border: 0;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  font-size: 13px;
  min-height: 31px;
  padding: 6px 12px;
}

.button-small { min-height: 29px; padding: 5px 10px; }
.button-muted { background: white; border: 1px solid var(--line); color: var(--navy); }
.button-orion { background: var(--blue); }

/* ============================================
   HERO
   ============================================ */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--cream) 55%, rgba(212,168,83,0.07));
  min-height: 72vh;
}

.hero-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(212,168,83,0.3);
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--deep);
  margin-bottom: 1.25rem;
}

.hero-section h1 em {
  color: var(--coral);
  font-style: normal;
}

.hero-section > .hero-content > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1;
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  max-width: 460px;
  justify-self: center;
}

.hero-img-wrap {
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(26,10,0,0.18);
}

.hero-badge {
  position: absolute;
  background: var(--mint);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(44,110,90,0.3);
}

.badge-top { top: 24px; right: -16px; }
.badge-bottom { bottom: 60px; left: -20px; background: var(--gold); color: var(--deep); }

/* ============================================
   VALORES
   ============================================ */
.valores-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--deep);
  padding: 3.5rem 2.5rem;
  gap: 0;
}

.valores-intro {
  grid-column: 1 / -1;
  margin: 0 auto 2.5rem;
  max-width: 820px;
  text-align: center;
}

.valores-intro h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}

.valores-intro p {
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
}

.valor-item {
  padding: 2rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.valor-item:last-child { border-right: none; }

.valor-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.valor-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.valor-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   PRODUCTOS
   ============================================ */
.productos-section {
  padding: 5rem 2.5rem;
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.eyebrow-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.producto-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,168,83,0.15);
  transition: all 0.3s;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(212,168,83,0.2);
}

.producto-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.producto-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.producto-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deep);
  margin-bottom: 0.4rem;
}

.producto-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.producto-card-dark {
  background: linear-gradient(135deg, var(--deep), #3A1800);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.producto-card-dark h3 {
  color: #fff !important;
  font-size: 1.3rem;
}

.producto-card-dark p {
  color: rgba(255,255,255,0.6) !important;
}

/* ============================================
   CTA PEDIDOS
   ============================================ */
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  background: var(--deep);
  overflow: hidden;
}

.cta-text {
  padding: 3.5rem 3rem;
  color: #fff;
}

.cta-text .eyebrow-label { color: var(--gold); }

.cta-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.cta-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 420px;
}

.cta-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-section {
  padding: 5rem 2.5rem;
  background: var(--cream);
}

.contacto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info .eyebrow-label { margin-bottom: 0.75rem; }

.contacto-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contacto-info > p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contacto-detalles { display: grid; gap: 0.85rem; }

.contacto-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contacto-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-icon svg {
  fill: var(--deep);
  height: 18px;
  width: 18px;
}

.contacto-icon.whatsapp-mark {
  background: #1fa855;
}

.contacto-icon.whatsapp-mark svg {
  fill: #fff;
  height: 21px;
  width: 21px;
}

.contacto-form { display: grid; gap: 1.25rem; }

.form-group { display: grid; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(212,168,83,0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { height: 110px; resize: none; }

.btn-submit {
  width: 100%;
  background: var(--deep);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.btn-submit:hover { background: var(--coral); }

.whatsapp-button {
  background: #1fa855;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
}

.whatsapp-button:hover { background: #168643; }

.contacto-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.contacto-result h3 {
  font-family: var(--font-display);
  color: var(--deep);
  margin-bottom: 0.75rem;
}

.floating-whatsapp {
  align-items: center;
  background: #1fa855;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 14px 34px rgba(31,168,85,0.3);
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.45rem;
  height: 64px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  width: 64px;
  z-index: 200;
}

.floating-whatsapp:hover { background: #168643; }

.floating-whatsapp svg {
  fill: #fff;
  height: 36px;
  width: 36px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.5);
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo-img {
  width: 118px;
  height: 62px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 6px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  max-width: 100%;
}

/* ============================================
   ADMIN / CUSTOMER (estilos legado sin cambios)
   ============================================ */
.page-heading-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.section { padding: 72px 32px; }

.section-title { margin: 0 auto; max-width: 1120px; }

.section-title p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 680px; }

.section h2, .page-heading h1, .auth-card h1 { font-size: 26px; line-height: 1.1; margin: 6px 0 12px; }

.product-grid, .metric-grid, .flow-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px auto 0; max-width: 1120px;
}

.product-grid article, .metric, .panel, .auth-card, .flow-grid article {
  background: white; border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(112,44,61,0.08); padding: 14px;
}

.split {
  margin: 0 auto; max-width: 1120px;
  align-items: start; border-top: 1px solid var(--line);
  display: grid; gap: 48px; grid-template-columns: 0.9fr 1.1fr;
}

.auth-page { display: grid; min-height: calc(100vh - 136px); padding: 48px 18px; place-items: center; }

.auth-card { max-width: 460px; width: 100%; }

.auth-page-split {
  background: linear-gradient(135deg, var(--cream), #fff);
}

.auth-card-featured {
  border-radius: 18px;
  padding: 28px;
}

.login-note {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 12px;
}

.login-note strong {
  color: var(--navy);
  font-size: 13px;
}

.login-note span {
  color: var(--muted);
  font-size: 12px;
}

.auth-secondary-link {
  color: var(--blue);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.login-switch {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  padding: 4px;
}

.login-switch a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
}

.login-switch a.active {
  background: var(--navy);
  color: #fff;
}

.stack-form { display: grid; gap: 16px; margin-top: 24px; }

label { color: var(--muted); display: grid; font-size: 11px; font-weight: 700; gap: 5px; }

input {
  border: 1px solid var(--line); font: inherit; font-size: 13px;
  min-height: 31px; padding: 5px 8px; width: 100%;
}

select {
  background: white; border: 1px solid var(--line); font: inherit;
  font-size: 13px; min-height: 31px; padding: 5px 8px; width: 100%;
}

textarea { border: 1px solid var(--line); font: inherit; font-size: 13px; padding: 6px 8px; resize: vertical; width: 100%; }

.alert { background: #fff3f0; border: 1px solid #ffd2c9; color: #9c2f22; margin-top: 16px; padding: 12px; }
.alert small { display: block; font-size: 11px; font-weight: 800; margin-top: 6px; }
.notice { background: #eefaf3; border: 1px solid #bfe8ce; color: #116338; margin-top: 16px; padding: 12px; }

.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 136px); }

.admin-sidebar {
  background: linear-gradient(180deg, var(--navy), #0d5d7a);
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
}

.admin-sidebar a { color: rgba(255,255,255,0.78); padding: 12px 14px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,0.12); color: white; }

.admin-content { padding: 16px; }

.admin-form { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-form.compact-form { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-form.parameters-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-wide { grid-column: 1 / -1; }

.check-row { align-items: center; align-self: end; display: flex; gap: 10px; min-height: 31px; }
.check-row input { width: auto; }

.table-actions { align-items: center; display: flex; gap: 6px; white-space: nowrap; }
.icon-actions { gap: 5px; }

.icon-button {
  align-items: center; background: #fff8f3; border: 1px solid var(--line);
  color: var(--navy); cursor: pointer; display: inline-flex; font: inherit;
  font-size: 13px; height: 27px; justify-content: center; padding: 0; width: 27px;
}
.icon-button:hover { background: var(--cream); border-color: #d8a5b3; }
.icon-danger { color: #b4233c; }
.text-link { color: var(--blue); font-weight: 800; }

.price-editor { border-top: 1px solid var(--line); display: grid; gap: 10px; padding-top: 10px; }
.price-row { align-items: center; border: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 180px; padding: 8px; }
.price-row-wide { grid-template-columns: minmax(0, 1fr) 80px 95px 135px; }
.price-row small { color: var(--muted); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.price-row span { color: var(--muted); display: block; font-size: 13px; }

.customer-shell { margin: 0 auto; max-width: 1120px; min-height: calc(100vh - 136px); padding: 32px; }
.order-form { display: grid; gap: 18px; }
.order-lines { display: grid; gap: 12px; }
.order-line { align-items: center; border: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 120px 150px; padding: 14px; }
.order-line span { color: var(--muted); display: block; }
.price { color: var(--navy); font-weight: 800; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.metric strong { display: block; font-size: 42px; line-height: 1; margin-top: 12px; }
.panel { margin-top: 12px; overflow-x: auto; }
.admin-content .panel:has(table) { padding: 10px; }

.results-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin: -1px 0 6px; padding-bottom: 6px; }
.results-heading h2 { font-size: 15px; margin: 0; }
.results-heading span { color: var(--muted); font-size: 11px; font-weight: 800; }

.clean-list { margin: 0; padding-left: 20px; }

table { border-collapse: collapse; font-size: 12px; min-width: 720px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 5px 7px; text-align: left; }
th { color: var(--navy); font-size: 10px; text-transform: uppercase; }

.flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow-grid span { color: var(--muted); display: block; margin-top: 8px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1.5rem; text-align: center; }
  .hero-section > .hero-content > p { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-img-wrap { max-width: 400px; margin: 0 auto; }
  .badge-top { right: 0; }
  .valores-section { grid-template-columns: 1fr; }
  .valores-intro { text-align: left; }
  .valor-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .valor-item:last-child { border-bottom: none; }
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { grid-template-columns: 1fr; }
  .cta-img { display: none; }
  .contacto-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 1.25rem; flex-wrap: wrap; }
  .top-nav { display: none; flex-direction: column; width: 100%; padding: 1rem 0; gap: 0.75rem; }
  .top-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .productos-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form, .admin-form.compact-form, .admin-form.parameters-form, .price-row { grid-template-columns: 1fr; }
  .order-line { grid-template-columns: 1fr; }
  .page-heading-row { align-items: flex-start; flex-direction: column; }
  .product-grid, .metric-grid, .flow-grid { grid-template-columns: 1fr; }
}
