/* =========================================================
   FullPack SA — Estilos globales
   ========================================================= */
:root {
  --brand: #6b2fb3;
  --brand-600: #5a24a0;
  --brand-700: #471a82;
  --brand-300: #b48ee6;
  --brand-100: #ece3f8;
  --brand-50: #f6f1fc;
  --ink: #15101f;
  --ink-2: #2a2338;
  --muted: #5f5873;
  --line: #e6e1ee;
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --dark: #120c1d;
  --dark-2: #1c1430;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 16, 31, .06), 0 2px 8px rgba(21, 16, 31, .04);
  --shadow: 0 10px 30px -10px rgba(40, 20, 80, .18), 0 2px 6px rgba(21, 16, 31, .05);
  --shadow-lg: 0 30px 60px -20px rgba(60, 25, 120, .35);
  --container: 1200px;
  --header-h: 76px;
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; border-radius: 6px; }

.hero-grid > *, .split > *, .grid > *, .contact-block > *, .calc > *, .stats > * { min-width: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.text-brand { color: var(--brand); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(107, 47, 179, .7); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 14px 28px -10px rgba(107, 47, 179, .8); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--wa { background: var(--wa); color: #06361a; }
.btn--wa:hover { background: #1fbd5a; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21, 16, 31, .4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand-logo img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand); }
.nav-link svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(560px, 90vw); padding: 12px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s; }
.dropdown a:hover { background: var(--brand-50); }
.dropdown .dd-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); }
.dropdown .dd-icon svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.dropdown span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.dropdown .dd-all { grid-column: 1 / -1; justify-content: center; font-family: var(--font-head); font-weight: 600; color: var(--brand); background: var(--bg-alt); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), top .25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: #fff; padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.mobile-nav .m-label { margin: 24px 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mobile-nav .m-sub { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-weight: 500; color: var(--ink-2); }
.mobile-nav .m-sub svg { width: 20px; height: 20px; color: var(--brand); }
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(107, 47, 179, .16), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(107, 47, 179, .08), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  background: var(--brand-100); border-radius: 4px;
}
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-badge { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.hero-badge img { height: 28px; width: auto; }
.hero-badge b { color: var(--ink); font-family: var(--font-head); font-weight: 600; display: block; line-height: 1.2; }

.hero-media { position: relative; }
.hero-media .frame { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 744 / 470; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 12, 29, .45)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.float-card .fc-icon svg { width: 22px; height: 22px; }
.float-card b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.float-card span { font-size: .82rem; color: var(--muted); }
.float-card--a { left: -28px; bottom: 36px; }
.float-card--b { right: -20px; top: 28px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hero de páginas internas */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--dark); padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 100px); isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18, 12, 29, .96) 30%, rgba(71, 26, 130, .75) 100%); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: rgba(255, 255, 255, .78); max-width: 640px; }
.page-hero .eyebrow { color: var(--brand-300); }
.page-hero .hero-ctas { margin-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .6); margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }
.partner-pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; margin-bottom: 24px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; }
.partner-pill img { height: 26px; width: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--dark); border-radius: var(--radius); overflow: hidden; color: #fff; }
.stat { padding: 28px 24px; display: flex; gap: 16px; align-items: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat .s-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(180, 142, 230, .14); color: var(--brand-300); }
.stat .s-icon svg { width: 24px; height: 24px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.2; }
.stat span { font-size: .88rem; color: rgba(255, 255, 255, .62); }
.stats-wrap { margin-top: -48px; position: relative; z-index: 2; }

.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.number { padding: 28px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.number b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.number span { font-size: .92rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card .c-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 20px; transition: background .3s, color .3s; }
.card:hover .c-icon { background: var(--brand); color: #fff; }
.card .c-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card h3 { margin-bottom: 8px; }
.card .link-arrow { margin-top: 18px; }
.card--link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .num { position: absolute; top: 24px; right: 26px; font-family: var(--font-head); font-weight: 700; color: var(--brand-100); font-size: 1.6rem; }

/* Tarjetas de partner (distribuidor oficial) */
.partner-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 24px; background: #fff; border: 1px solid var(--line); min-height: 340px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner-card .pc-body { padding: 36px; display: flex; flex-direction: column; }
.partner-card .pc-logo { height: 34px; width: auto; margin-bottom: 24px; align-self: flex-start; }
.partner-card .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.partner-card h3 { font-size: 1.6rem; }
.partner-card p { color: var(--muted); }
.partner-card .link-arrow { margin-top: auto; }
.partner-card .pc-media { background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); display: grid; place-items: center; padding: 24px; }
.partner-card .pc-media img { max-height: 280px; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.partner-card:hover .pc-media img { transform: scale(1.05); }
.partner-card a.cover { position: absolute; inset: 0; z-index: 1; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }
.split-media .float-card { animation: none; }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* ---------- Por qué elegirnos ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why { background: #fff; padding: 28px 22px; transition: background .25s; }
.why:hover { background: var(--brand-50); }
.why .w-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.why .w-icon svg { width: 22px; height: 22px; }
.why h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Marcas (marquee) ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-chip { flex: none; height: 92px; padding: 0 28px; display: grid; place-items: center; background: #fafafa; border: 1px solid var(--line); border-radius: 16px; }
.brand-chip img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brand-chip:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark); box-shadow: var(--shadow); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(107, 47, 179, .25); transition: transform .25s var(--ease); }
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Productos / equipos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-head); font-weight: 500; transition: all .2s; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product[hidden] { display: none !important; }
.product .p-media { aspect-ratio: 4 / 3; background: linear-gradient(180deg, #f4f2f8, #fff); display: grid; place-items: center; padding: 20px; position: relative; }
.product .p-media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.product:hover .p-media img { transform: scale(1.05); }
.product .p-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product .p-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--brand-100); color: var(--brand-700); }
.product .p-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product .p-model { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.product h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product p { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.product .p-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.adhesive { text-align: center; }
.adhesive .p-media { aspect-ratio: 1; padding: 0; background: var(--brand-100); }
.adhesive .p-media img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.adhesive .chip { display: inline-block; align-self: center; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); margin-bottom: 10px; }

/* ---------- Comparación ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 20px; }
.compare-col h3 .badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.compare-col h3 .badge svg { width: 20px; height: 20px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); font-weight: 500; }
.compare-col li svg { width: 20px; height: 20px; flex: none; }
.compare-col--bad h3 .badge { background: #fdecec; color: #c0392b; }
.compare-col--bad li svg { color: #c0392b; }
.compare-col--good { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-50), #fff); box-shadow: var(--shadow); }
.compare-col--good h3 .badge { background: var(--brand); color: #fff; }
.compare-col--good li { background: #fff; }
.compare-col--good li svg { color: var(--brand); }
.compare-note { margin-top: 28px; padding: 24px 28px; border-left: 4px solid var(--brand); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 20px; border-top: 3px solid var(--brand); }
.step .step-n { font-family: var(--font-head); font-size: .95rem; color: var(--brand); font-weight: 600; margin-bottom: 10px; display: block; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.calc-form { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.calc-form .full { grid-column: 1 / -1; }
.calc-form h4 { grid-column: 1 / -1; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 8px 0 -4px; }
.calc-result { padding: 36px; background: var(--dark); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.calc-result h3 { color: #fff; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc-row span { color: rgba(255, 255, 255, .65); font-size: .92rem; }
.calc-row b { font-family: var(--font-head); font-size: 1.3rem; }
.calc-total { margin-top: auto; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); }
.calc-total span { display: block; font-size: .85rem; opacity: .85; }
.calc-total b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin-top: 4px; }
.calc-total small { display: block; margin-top: 6px; opacity: .85; }
.calc-disclaimer { font-size: .8rem; color: rgba(255, 255, 255, .5); margin: 0; }
.calc-total.is-negative { background: linear-gradient(135deg, #3a2f4f, #2a2338); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5873' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.textarea { min-height: 130px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfc7dc; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(107, 47, 179, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #d64545; }
.field .error { font-size: .8rem; color: #c0392b; min-height: 0; display: none; }
.field.has-error .error { display: block; }
.input-addon { position: relative; }
.input-addon .input { padding-right: 52px; }
.input-addon em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .85rem; color: var(--muted); pointer-events: none; }

.contact-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-aside { position: relative; padding: clamp(28px, 4vw, 48px); background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.contact-aside::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; bottom: -160px; z-index: -1; background: radial-gradient(circle, rgba(107, 47, 179, .65), transparent 65%); }
.contact-aside h2 { color: #fff; }
.contact-aside p { color: rgba(255, 255, 255, .7); }
.contact-aside .eyebrow { color: var(--brand-300); }
.contact-lines { display: grid; gap: 12px; margin-top: 24px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .2s, border-color .2s; }
.contact-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.contact-line .cl-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(37, 211, 102, .15); color: var(--wa); flex: none; }
.contact-line .cl-icon svg { width: 20px; height: 20px; }
.contact-line small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.contact-line b { font-family: var(--font-head); font-weight: 600; color: #fff; }
.contact-line .arrow { margin-left: auto; width: 18px; height: 18px; color: rgba(255, 255, 255, .4); }
.contact-form { padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.contact-form .form-foot small { color: var(--muted); font-size: .84rem; max-width: 320px; }
.form-success { grid-column: 1 / -1; display: none; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #e9f9ef; color: #13633a; font-weight: 500; }
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* Tarjetas de contacto por área */
.area-card { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area-card .c-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 14px; }
.area-card .c-icon svg { width: 26px; height: 26px; }
.area-card small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.area-card .phone { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.area-card p { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.area-card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Bandas CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 5vw, 64px); background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #8a4fd1); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 1.08rem; max-width: 620px; }
.cta-band .hero-ctas { justify-content: flex-end; }

.goal { display: flex; align-items: center; gap: 18px; padding: 22px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 40px; font-size: 1.12rem; }
.goal svg { width: 34px; height: 34px; color: var(--brand); flex: none; }
.goal b { color: var(--brand); }

/* Bloque de niveles de codificación */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.level .l-head { padding: 22px 24px; background: var(--dark); color: #fff; }
.level .l-head small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-300); font-weight: 600; }
.level .l-head h3 { color: #fff; margin: 4px 0 0; }
.level .l-body { padding: 22px 24px; flex: 1; }
.level .l-body p { color: var(--muted); font-size: .94rem; }
.level ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.level li { font-size: .8rem; padding: 5px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-weight: 500; }

.figure-card { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.figure-card img { width: 100%; }

/* ---------- Páginas internas: extras ---------- */
.sol-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sol-nav a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-family: var(--font-head); font-weight: 500; transition: background .2s, color .2s; }
.sol-nav a:hover { background: var(--brand-50); color: var(--brand); }
.sol-nav svg { width: 18px; height: 18px; color: var(--brand); }
.product-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.split-media .product-trio img { border-radius: 18px; box-shadow: var(--shadow-sm); }
.product-trio img:nth-child(2) { transform: translateY(-24px); }
.icon-panel { aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; align-content: center; gap: 20px; color: #fff; text-align: center; background: radial-gradient(circle at 30% 20%, #8a4fd1, var(--brand-700) 55%, var(--dark)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.icon-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 40px 40px; }
.icon-panel svg { width: 120px; height: 120px; position: relative; stroke-width: 1.25; }
.icon-panel span { position: relative; font-family: var(--font-head); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; opacity: .85; }
.media-panel { aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--brand-50) 55%, var(--brand-100) 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-media .media-panel img { max-height: 100%; width: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 18px 24px rgba(40, 20, 80, .18)); }
.video-single { max-width: 880px; margin-inline: auto; }
.partners-3 .partner-card { grid-template-columns: 1fr; }
.partners-3 .partner-card .pc-media { order: -1; height: 240px; padding: 20px; }
.partners-3 .partner-card .pc-media img { max-height: 200px; }
.partners-3 .partner-card .pc-media--photo { padding: 0; }
.partners-3 .partner-card .pc-media--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.partners-3 .partner-card .pc-body { padding: 28px; }
.partners-3 .partner-card h3 { font-size: 1.4rem; }
.brand-grid .brand-chip { height: 96px; padding: 0 16px; background: #fafafa; }
.brand-grid .brand-chip img { max-width: 100%; }
.mini { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg-alt); }
.mini svg { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 2px; }
.mini b { display: block; font-family: var(--font-head); color: var(--ink); }
.mini span { font-size: .9rem; color: var(--muted); }
.location { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--brand-300); }
.location svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
.location b { display: block; font-family: var(--font-head); color: var(--ink); }
.location span { font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding-top: 80px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-logo img { height: 42px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .f-contact svg { width: 18px; height: 18px; color: var(--brand-300); flex: none; margin-top: 3px; }
.site-footer .f-contact small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer-partners { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.footer-partners span { font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem; color: rgba(255, 255, 255, .5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 999px;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease), padding .25s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-weight: 600; transition: max-width .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); padding-right: 20px; }
.wa-float:hover span { max-width: 160px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.to-top { position: fixed; right: 26px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 59; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top svg { width: 20px; height: 20px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); transition: all .3s var(--ease); max-width: calc(100% - 32px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-card .pc-media { order: -1; min-height: 240px; }
  .partner-card .pc-media img { max-height: 220px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid, .split, .contact-block, .calc { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-media { max-width: 640px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .grid-3, .grid-4, .levels, .steps { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-ctas { justify-content: flex-start; }
}
@media (min-width: 961px) { .mobile-nav { display: none; } }
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .brand-logo img { height: 34px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .levels, .steps, .video-grid, .numbers { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why { padding: 22px 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .stat:last-child { border-bottom: 0; }
  .contact-form, .calc-form { grid-template-columns: 1fr; }
  .float-card--a { left: 8px; bottom: 12px; }
  .float-card--b { right: 8px; top: 12px; }
  .float-card { padding: 10px 14px; }
  .float-card b { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .partner-card .pc-body { padding: 26px; }
  .goal { flex-direction: column; text-align: center; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .brand-chip { height: 76px; padding: 0 20px; }
  .brand-chip img { max-height: 44px; }
}


/* =========================================================
   Compatibilidad Safari / iOS
   - Las imágenes dentro de cajas con aspect-ratio se posicionan
     en absoluto (Safari no resuelve bien max-height:100% ahí).
   - Respaldo de "inset" para Safari < 14.1.
   - Respaldo de aspect-ratio con padding-top para Safari < 15.
   ========================================================= */
.page-hero .bg, .hero::before, .hero::after, .page-hero::before,
.video button, .video img, .video iframe, .partner-card a.cover,
.card--link::after, .wa-float::before, .icon-panel::before, .cta-band::after {
  top: 0; right: 0; bottom: 0; left: 0;
}
.page-hero .bg { overflow: hidden; }
.page-hero .bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.product .p-media, .media-panel, .hero-media .frame { position: relative; overflow: hidden; }
.product .p-media { display: block; padding: 0; }
.product .p-media img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-height: none;
  padding: 20px; box-sizing: border-box; object-fit: contain;
}
.product .p-tags { z-index: 2; }
.adhesive .p-media img { padding: 0; object-fit: cover; }

.media-panel { display: block; padding: 0; }
.split-media .media-panel img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-height: none;
  padding: 32px; box-sizing: border-box; object-fit: contain;
}

.hero-media .frame img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.partner-card .pc-media img { max-width: 100%; height: auto; }
.product-trio img { width: 100%; height: auto; }

@supports not (aspect-ratio: 1 / 1) {
  .product .p-media { height: 0; padding-top: 75%; }
  .adhesive .p-media { padding-top: 100%; }
  .media-panel { height: 0; padding-top: 75%; }
  .hero-media .frame { height: 0; padding-top: 63.2%; }
  .video { height: 0; padding-top: 56.25%; }
  .icon-panel { height: 0; padding-top: 75%; }
}

/* Distintivos "Distribuidor oficial" del inicio: centrados en celular */
@media (max-width: 640px) {
  .hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; justify-items: center; text-align: center; }
  .hero-badge { flex-direction: column; justify-content: flex-start; gap: 8px; font-size: .78rem; line-height: 1.3; }
  .hero-badge img { height: 24px; max-width: 100%; object-fit: contain; }
  .hero-badge b { font-size: .8rem; }
}

/* Carrusel de fotos del inicio */
.hero-carousel .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform 6s ease; transform: scale(1.04); }
.hero-carousel .slide.is-active { opacity: 1; transform: scale(1); }
.hero-carousel .slide--deposito { object-position: center 60%; }
.hero-carousel .slide--taller { object-position: center 18%; }
.hero-carousel::after { z-index: 1; pointer-events: none; }
.carousel-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(18, 12, 29, .35); }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s ease, background .3s; }
.carousel-dots button.is-active { width: 24px; background: #fff; }
@media (max-width: 640px) { .carousel-dots { bottom: auto; top: 12px; left: 16px; transform: none; } }
/* Recuadro "Taller propio" abajo a la derecha para no tapar el cartel de las fotos */
.hero-media .float-card--b { top: auto; bottom: -22px; right: -20px; }
@media (max-width: 640px) { .hero-media .float-card--b { top: auto; bottom: -18px; right: 8px; } .hero-media .float-card--a { bottom: 28px; } }
/* Celular: foto del carrusel limpia (los datos ya están en la franja de abajo) */
@media (max-width: 640px) {
  .hero-media .float-card { display: none; }
  .carousel-dots { top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); }
}
/* Carrusel más grande */
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 4vw, 56px); }
  .hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
}
.hero-media .frame { aspect-ratio: 4 / 3; }
@supports not (aspect-ratio: 1 / 1) { .hero-media .frame { padding-top: 75%; } }
/* "Taller propio" arriba a la derecha, asomando del borde */
.hero-media .float-card--b { top: -22px; bottom: auto; right: -20px; }
/* Recuadros flotantes con transparencia (efecto vidrio) */
.hero-media .float-card {
  z-index: 3;
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.hero-media .float-card--b { top: 14px; right: -20px; }

/* Crédito webmaster */
.footer-bottom .webmaster { color: rgba(255, 255, 255, .75); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .webmaster:hover { color: #fff; }

/* =========================================================
   Catálogo: Aplicadores de hotmelt y repuestos + carrito
   ========================================================= */
.no-scroll, .no-scroll body { overflow: hidden; }
.toast { z-index: 100; }
button.btn { font: inherit; cursor: pointer; }
.btn--outline-light { background: transparent; }
.btn--ghost { background: #fff; }
#catalogo { padding-top: clamp(40px, 5vw, 56px); }
/* Buscador y filtros (mismo estilo que formularios y filtros del sitio) */
.cat-search { position: relative; max-width: 640px; margin-bottom: 20px; }
.cat-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cat-search .input { padding-left: 48px; }
.cat-filters { margin-bottom: 16px; }
.cat-filters .filter-btn small { margin-left: 4px; font-size: .78rem; opacity: .6; }
.cat-count { margin: 0 0 24px; color: var(--muted); font-size: .92rem; }

/* Tarjetas: usan .product (igual que Codificación), de a 3 por fila */
.product-grid.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { min-width: 0; }
.pcard .p-media { width: 100%; border: 0; border-bottom: 1px solid var(--line); cursor: zoom-in; font: inherit; }
.pcard .p-media img { padding: 28px; }
.pcard .p-body { padding: 22px; }
.pcard .p-model { word-break: break-word; }
.pcard h3 { line-height: 1.3; }
.pc-name { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pc-name:hover { color: var(--brand); }
.pc-cat { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.pc-code { margin: -4px 0 8px !important; font-size: .82rem !important; color: var(--muted); word-break: break-word; }
.pc-code b { color: var(--ink); font-weight: 600; }
.pc-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-actions { display: grid; gap: 10px; margin-top: auto; }
.pc-variant { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.pc-variant .select { padding-top: 10px; padding-bottom: 10px; font-size: .95rem; }
.pc-buy { display: flex; gap: 8px; }
.pc-add { flex: 1; padding-inline: 14px; }
@media (max-width: 960px) { .product-grid.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .product-grid.cat-grid { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.qty button { width: 34px; height: 40px; border: 0; background: none; font-size: 1.15rem; color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--brand-50); color: var(--brand); }
.qty input { width: 38px; height: 40px; border: 0; text-align: center; font: 600 .95rem var(--font-body); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 30px; height: 32px; }
.qty--sm input { width: 34px; height: 32px; font-size: .88rem; }
.cat-more { display: flex; justify-content: center; margin-top: 36px; }
.cat-empty { max-width: 460px; margin: 24px auto 0; text-align: center; color: var(--muted); }
.cat-empty > svg { width: 44px; height: 44px; color: var(--brand-300); }
.cat-empty h3 { margin: 12px 0 6px; color: var(--ink); }
.cat-empty .btn { margin-top: 16px; }

/* Botón flotante del pedido (arriba del de WhatsApp) */
.cart-fab { position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 61; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .95rem var(--font-head); box-shadow: 0 14px 30px -10px rgba(107, 47, 179, .8); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.cart-fab:hover { background: var(--brand-600); transform: translateY(-3px); }
.cart-fab svg { width: 22px; height: 22px; }
.cart-badge { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--brand); font-size: .82rem; font-weight: 700; }
.cart-fab.is-bump { animation: cartBump .45s var(--ease); }
@keyframes cartBump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }

.cart-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(18, 12, 29, .5); opacity: 0; transition: opacity .25s; }
.cart-overlay.is-open { opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; display: flex; flex-direction: column; width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; outline: 0; }
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.cart-head-n { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .9rem; }
.cart-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg-alt); color: var(--ink); cursor: pointer; }
.cart-x:hover { background: var(--brand-50); color: var(--brand); }
.cart-x svg { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; }
.ci-info { display: grid; gap: 4px; min-width: 0; }
.ci-info strong { font-size: .92rem; line-height: 1.3; }
.ci-info span { font-size: .8rem; color: var(--muted); word-break: break-word; }
.ci-info .qty { justify-self: start; margin-top: 4px; }
.ci-del { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.ci-del:hover { background: #fdecec; color: #c0392b; }
.ci-del svg { width: 18px; height: 18px; }
.cart-empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.cart-empty svg { width: 44px; height: 44px; color: var(--brand-300); margin-bottom: 8px; }
.cart-empty.is-sent { color: var(--ink); }
.cart-empty.is-sent svg { color: #1fa855; }
.cart-empty.is-sent ~ .cart-form { display: none; }
.cart-form { margin-top: 20px; }
.cart-form h3 { font-size: 1.05rem; margin: 0 0 12px; }
.cart-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-fields label { display: grid; gap: 4px; font-size: .8rem; font-weight: 500; color: var(--muted); min-width: 0; }
.cart-fields .full { grid-column: 1 / -1; }
.cart-fields input, .cart-fields textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; resize: vertical; }
.cart-fields input:focus, .cart-fields textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.cart-fields .is-invalid { border-color: #d64545; box-shadow: 0 0 0 3px #fbe3e3; }
.cart-foot { display: grid; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-alt); }
.cart-foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-foot .btn:disabled { opacity: .45; pointer-events: none; }
.cart-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--muted); }
.cart-note svg { width: 16px; height: 16px; flex: none; }
.cart-clear { justify-self: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.cart-clear:disabled { visibility: hidden; }

/* Ventana de detalle de producto */
.pmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(18, 12, 29, .55); opacity: 0; transition: opacity .2s; }
.pmodal.is-open { opacity: 1; }
.pmodal[hidden] { display: none; }
.pmodal-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .25s var(--ease); }
.pmodal.is-open .pmodal-box { transform: none; }
.pmodal-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pmodal-img { display: grid; place-items: center; padding: 28px; background: #fff; border-right: 1px solid var(--line); }
.pmodal-img img { max-width: 100%; max-height: 460px; object-fit: contain; }
.pmodal-info { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; }
.pmodal-info h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; padding-right: 36px; }
.pmodal-info p { margin: 0; color: var(--muted); }
.pmodal-info .pc-actions { margin-top: 12px; }

@media (max-width: 640px) {
  .cat-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; padding-bottom: 4px; }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filters .filter-btn { flex: none; }
  .cat-search .input, .pc-variant .select { font-size: 16px; }
  .cart-fab { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding: 13px 15px; }
  .cart-fab-label { display: none; }
  .cart-fields { grid-template-columns: 1fr; }
  .cart-fields input, .cart-fields textarea { font-size: 16px; }
  .pmodal { padding: 0; place-items: end stretch; }
  .pmodal-box { grid-template-columns: 1fr; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; }
  .pmodal-img { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .pmodal-img img { max-height: 260px; }
  .pmodal-info { padding: 20px 18px 28px; }
  .pmodal-info .pc-buy { flex-direction: row; }
  .pmodal-info .pc-buy .qty { width: auto; }
}
