/* =============================================================
   Dalia TV — demo comercial
   Paleta inspirada en la identidad real de la marca (Instagram
   @daliatv1): logo azul + gráfica de campaña en azul marino y dorado.
   ============================================================= */

:root {
  --navy-950: #060E1C;
  --navy-900: #0A1830;
  --navy-800: #102341;
  --navy-700: #17335A;
  --navy-600: #21456F;
  --blue-500: #2F5CF0;
  --gold-500: #F0B429;
  --gold-600: #D89A1A;
  --gold-100: #FCEFCB;

  --bg: #F6F8FB;
  --bg-alt: #FFFFFF;
  --text: #101828;
  --text-muted: #5B6478;
  --border: #E4E9F1;

  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE5A;

  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10, 24, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 24, 48, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 14, 28, 0.28);
  --container-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

a { color: var(--blue-500); }

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

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}
.icon-solid { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-large { padding: 15px 26px; font-size: 15.5px; }
.btn-small { padding: 9px 16px; font-size: 13.5px; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 24, 48, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), #1B3FC4);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 92, 240, 0.4);
}
.logo-badge-sm { width: 28px; height: 28px; font-size: 10px; }
.logo-word {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  letter-spacing: -0.01em;
}
.logo-word strong { color: var(--gold-500); font-weight: 800; }

.main-nav { display: none; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  margin-right: 28px;
  transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 18px;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 64px;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(circle at 30% 20%, rgba(240, 180, 41, 0.22), transparent 60%),
              radial-gradient(circle at 80% 10%, rgba(47, 92, 240, 0.28), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(240, 180, 41, 0.14);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}
.text-gold { color: var(--gold-500); }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 480px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-family: var(--font-heading); font-size: 22px; color: var(--gold-500); }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,0.62); }

.hero-visual {
  position: relative;
  display: none;
}

@media (min-width: 700px) {
  .hero { padding: 96px 0 80px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 19px; }
}

@media (min-width: 980px) {
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { flex: 1.05; }
  .hero-visual {
    flex: 0.95;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    padding: 20px;
  }
  .hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
  }
  .hero-card .icon { color: var(--gold-500); }
  .hero-card-1 { transform: translateY(10px); }
  .hero-card-3 { transform: translateY(-6px); }
  .hero-card-4 { transform: translateY(14px); }
  .hero-badge-year {
    position: absolute;
    right: -14px;
    top: -18px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--navy-950);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
    line-height: 1.1;
  }
  .badge-year-num { font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
  .badge-year-txt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
}

/* Scroll reveal */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Section shared */
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--gold-500); }

.section-title {
  font-size: 27px;
  color: var(--navy-900);
  font-weight: 800;
}
.section-title-light { color: #fff; }
.section-sub {
  color: var(--text-muted);
  max-width: 60ch;
}

.categorias, .nosotros, .contacto { padding: 64px 0; }
.nosotros { background: var(--navy-950); }

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
.cat-card {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(47, 92, 240, 0.25); }
.cat-card:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-500);
}
.cat-link .icon { width: 12px; height: 12px; }
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 92, 240, 0.12), rgba(240, 180, 41, 0.14));
  color: var(--blue-500);
  margin-bottom: 16px;
}
.cat-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--navy-900); }
.cat-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.cat-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
}
.cat-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  background: rgba(47, 92, 240, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.cat-cta {
  margin-top: 36px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-cta p { margin: 0; font-size: 15px; font-weight: 600; max-width: 32ch; }

/* Nosotros */
.nosotros-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 860px) {
  .nosotros-inner { flex-direction: row; align-items: center; }
  .nosotros-text { flex: 1.3; }
}

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  color: rgba(255,255,255,0.68);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list strong { color: #fff; display: block; margin-bottom: 2px; }
.icon-check {
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(240, 180, 41, 0.14);
  border-radius: 50%;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.nosotros-badge-card { flex: 1; display: flex; justify-content: center; }
.badge-ring {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px dashed rgba(240, 180, 41, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 20px;
}
.badge-year {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--gold-500);
}
.badge-text { font-size: 13.5px; color: rgba(255,255,255,0.6); max-width: 22ch; }

/* Contacto */
.contacto-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
@media (min-width: 940px) {
  .contacto-layout { flex-direction: row; align-items: stretch; }
  .contacto-grid { flex: 1.1; }
  .contacto-map { flex: 0.9; }
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .contacto-grid { grid-template-columns: repeat(2, 1fr); }
}

.contacto-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contacto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(47, 92, 240, 0.1);
  color: var(--blue-500);
  flex-shrink: 0;
}
.contacto-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.contacto-card p { margin: 0 0 4px; font-size: 14px; }
.muted { color: var(--text-muted); font-style: italic; font-size: 13.5px; }
.link-inline { font-weight: 600; text-decoration: none; color: var(--blue-500); }
.link-inline:hover { text-decoration: underline; }

.contacto-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 260px;
}
.contacto-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

.social-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  font-size: 13.5px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}
.footer-inner p { margin: 0 0 4px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.footer-demo-note { opacity: .7; }

/* =============================================================
   Widget del asistente de IA
   ============================================================= */
.agent-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  font-family: var(--font-body);
}

.agent-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--whatsapp);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.agent-toggle:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5); }

.agent-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 380px;
  margin-left: auto;
  height: min(74vh, 640px);
  background: var(--bg-alt);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.agent-panel:not([hidden]) { display: flex; }

@media (min-width: 480px) {
  .agent-panel { left: auto; width: 384px; }
}

.agent-panel-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  flex-shrink: 0;
}
.agent-panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.agent-avatar {
  color: var(--gold-500);
  background: rgba(240, 180, 41, 0.16);
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-panel-title strong { display: block; font-size: 14.5px; }
.agent-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .78; }
.agent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); display: inline-block; }
.agent-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .85;
}
.agent-close:hover { opacity: 1; background: rgba(255,255,255,0.16); }

.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.agent-msg {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.agent-msg.bot {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.agent-msg.user {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.agent-msg.error {
  background: var(--gold-100);
  border: 1px solid rgba(216, 154, 26, 0.4);
  color: #8A6414;
  align-self: flex-start;
}

.agent-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: transform .15s ease, background .15s ease;
}
.agent-cta:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

.agent-typing {
  padding: 0 18px 10px;
  display: none;
  gap: 4px;
  background: var(--bg);
}
.agent-typing:not([hidden]) { display: flex; }
.agent-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: .5;
  animation: agent-blink 1.2s infinite ease-in-out;
}
.agent-typing span:nth-child(2) { animation-delay: .2s; }
.agent-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes agent-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.agent-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.agent-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  color: var(--text);
}
.agent-form input:focus { border-color: var(--blue-500); }

.agent-mic, .agent-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.agent-mic {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--navy-800);
}
.agent-mic:hover { background: #EDF1F8; }
.agent-mic.listening {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
  animation: agent-pulse 1.1s infinite;
}
@keyframes agent-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 35, 65, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(16, 35, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 35, 65, 0); }
}
.agent-send { background: var(--whatsapp); color: #fff; }
.agent-send:hover { background: var(--whatsapp-dark); }

.agent-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding: 8px 10px 12px;
  background: #fff;
}

/* =============================================================
   Modal de catálogo por categoría
   ============================================================= */
body.no-scroll { overflow: hidden; }

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.catalog-modal[hidden] { display: none; }

.catalog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.6);
  backdrop-filter: blur(2px);
}

.catalog-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 28px;
  animation: catalog-pop .22s ease;
}
@keyframes catalog-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.catalog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.catalog-modal-close:hover { background: var(--border); }

.catalog-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-right: 30px;
}
.catalog-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 92, 240, 0.12), rgba(240, 180, 41, 0.14));
  color: var(--blue-500);
  flex-shrink: 0;
}
.catalog-modal-header h3 { margin: 0; font-size: 20px; color: var(--navy-900); }

.catalog-modal-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.shop-panel { max-width: 460px; }
@media (min-width: 640px) {
  .shop-panel { max-width: 620px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 14px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 0 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
}
.product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 20px);
  height: 88px;
  margin: 0 -10px 10px;
  background: linear-gradient(135deg, rgba(47, 92, 240, 0.14), rgba(240, 180, 41, 0.18));
  color: var(--blue-500);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-name { font-size: 13px; font-weight: 600; color: var(--navy-900); min-height: 2.6em; }
.product-price { font-size: 14.5px; font-weight: 800; color: var(--navy-900); font-family: var(--font-heading); }
.product-ref { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; }
.product-actions { width: 100%; }

.btn-add {
  width: 100%;
  background: var(--navy-900);
  color: #fff;
  padding: 8px 10px;
  font-size: 12.5px;
  gap: 5px;
}
.btn-add:hover { background: var(--navy-800); }

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--border); }
.qty-value { font-size: 13.5px; font-weight: 700; min-width: 14px; text-align: center; }

.catalog-modal-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 4px;
}

@media (min-width: 480px) {
  .catalog-modal-panel { padding: 36px 32px 32px; }
}

/* =============================================================
   Carrito
   ============================================================= */
.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-toggle:hover { background: rgba(255,255,255,0.14); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
}
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.5);
}
.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: cart-slide-in .22s ease;
}
@keyframes cart-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer-header .catalog-modal-close { position: static; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty { color: var(--text-muted); font-size: 14px; text-align: center; margin-top: 40px; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row-photo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 92, 240, 0.14), rgba(240, 180, 41, 0.18));
  color: var(--blue-500);
}
.cart-row-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-row-name { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.cart-row-price { font-size: 12px; color: var(--text-muted); }
.cart-row-remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-row-remove:hover { background: #FCEBE9; color: #8A2E22; }

.cart-drawer-footer {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.cart-total-row strong { font-family: var(--font-heading); font-size: 19px; }
.cart-drawer-note { font-size: 11px; color: var(--text-muted); text-align: center; margin: 10px 0 0; }

.btn-checkout {
  width: 100%;
  background: var(--navy-900);
  color: #fff;
  padding: 14px;
}
.btn-checkout:hover:not(:disabled) { background: var(--navy-800); }
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; }

/* =============================================================
   Checkout (demo)
   ============================================================= */
.checkout-panel { max-width: 440px; }

.demo-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(216, 154, 26, 0.4);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

#checkout-step-form h3, #checkout-step-success h3 { color: var(--navy-900); margin-bottom: 16px; }

.checkout-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text);
  padding: 5px 0;
}
.checkout-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy-900);
}

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-900); margin-bottom: 5px; }
.form-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.form-row input:focus { outline: none; border-color: var(--blue-500); }

.payment-methods {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 14px;
}
.payment-methods legend { font-size: 12.5px; font-weight: 700; color: var(--navy-900); padding: 0 4px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}
.payment-option input { accent-color: var(--blue-500); }

.checkout-demo-note {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 18px;
}

#checkout-step-success { text-align: center; padding: 8px 0 4px; }
.checkout-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 16px;
}
.checkout-order-number { font-size: 14px; color: var(--text); margin-bottom: 10px; }
#checkout-step-success .muted { font-size: 12.5px; margin-bottom: 22px; }
