/* ═══════════════════════════════════════════════════════════════
   Javier Muñoz — estilos de la página
   Una sola maqueta responsive (móvil primero). La ventana de descarga y
   las historias están en overlays.css.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Identidad de marca (se mantiene la paleta existente) */
  --bg-base:        #e2e2df;
  --bg-card:        #f7f6f2;
  --bg-card-hover:  #ececE5;
  --accent:         #fc5000;
  --accent-glow:    rgba(252, 80, 0, 0.28);
  --accent-dim:     rgba(252, 80, 0, 0.10);
  --accent-text:    #a83300;            /* naranja oscuro para texto pequeño (contraste AA) */
  --accent-2:       #524ae9;
  --highlight:      #f5f28e;
  --ink:            #111111;
  --text-primary:   #070607;
  --text-secondary: rgba(7, 6, 7, 0.6);
  --border:         rgba(7, 6, 7, 0.14);
  --on-dark:        #ffffff;
  --on-dark-2:      rgba(255, 255, 255, 0.72);
  --font-display:   'Bebas Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --gutter: 16px;
  --section-gap: 52px;
  --shadow-hover: 0 10px 28px rgba(7, 6, 7, 0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -8%, rgba(252, 80, 0, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 24% at 85% 60%, rgba(82, 74, 233, 0.06) 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }

.ic { width: 20px; height: 20px; flex-shrink: 0; }
.container { width: min(100% - (var(--gutter) * 2), 1120px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Foco visible en todo */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark-panel :focus-visible, .store-card:focus-visible { outline-color: #fff; }

/* ── Barra superior ──────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand-mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.brand-mark span { color: var(--accent); }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--accent-dim); color: var(--text-primary); }
.top-cta { padding: 9px 16px; min-height: 40px; font-size: 0.88rem; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-align: center;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--text-primary); }
.btn-primary:hover { box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.btn .ic { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(7, 6, 7, 0.07); color: var(--text-secondary); vertical-align: middle;
}
.pill-accent { background: var(--accent-dim); color: var(--accent-text); border: 1px solid rgba(252, 80, 0, 0.3); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 500; border: 1px solid var(--border); color: var(--text-secondary); }
.tag-dark { border-color: rgba(255, 255, 255, 0.25); color: var(--on-dark-2); }

/* ── Secciones ───────────────────────────────────────────── */
.section { margin-top: var(--section-gap); }
.section-head { margin-bottom: 18px; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 5.5vw, 2.6rem); line-height: 1.02; letter-spacing: 0.015em; text-transform: uppercase; }
.section-sub { color: var(--text-secondary); margin-top: 8px; max-width: 62ch; font-size: 0.95rem; }
.subhead { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin: 26px 0 12px; }

/* ── Cabecera / perfil ───────────────────────────────────── */
.hero { padding: 28px 0 0; display: grid; gap: 28px; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }

.avatar-ring { width: 108px; height: 108px; border-radius: 50%; padding: 3px; position: relative; cursor: pointer; flex-shrink: 0; }
.avatar-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--accent) 0deg, var(--accent) 150deg, var(--accent-2) 210deg, var(--accent) 250deg, var(--highlight) 300deg, var(--accent) 360deg);
  animation: ring-spin 8s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.avatar { display: block; position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: var(--bg-card); overflow: hidden; border: 3px solid var(--bg-base); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1.name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 9vw, 3.4rem); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; margin-top: 16px; }
.role { color: var(--accent-text); font-weight: 700; font-size: 1rem; margin-top: 6px; }
.bio { color: var(--text-secondary); max-width: 46ch; margin-top: 10px; font-size: 0.98rem; }
.stats { display: flex; gap: 26px; margin-top: 18px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.02em; }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }

.socials-wrap .subhead { margin-top: 0; text-align: center; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-card {
  display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 64px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.social-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.social-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.social-ic .ic { width: 19px; height: 19px; }
.social-txt { min-width: 0; display: flex; flex-direction: column; }
.social-name { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.social-channel { display: block; font-size: 0.74rem; font-weight: 700; color: var(--accent-text); }
.social-desc { font-size: 0.74rem; color: var(--text-secondary); line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Recurso destacado ───────────────────────────────────── */
.feature-card {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center;
  background: var(--bg-card); border: 1px solid rgba(252, 80, 0, 0.45); border-radius: var(--r-lg); padding: 18px;
  box-shadow: 0 10px 32px rgba(252, 80, 0, 0.10);
}
.feature-cover img { width: 100%; height: auto; aspect-ratio: 380 / 538; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(7, 6, 7, 0.16); background: #fff; }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.feature-title { font-size: 1.12rem; line-height: 1.25; font-weight: 700; }
.feature-desc { font-size: 0.88rem; color: var(--text-secondary); }
.feature-body .btn { margin-top: 6px; }

.mini-grid { display: grid; gap: 10px; }
.mini-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; min-height: 76px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.mini-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mini-thumb { width: 44px; height: auto; aspect-ratio: 380 / 538; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-title { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.mini-sub { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.3; }
.mini-go { color: var(--accent-text); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-dim); flex-shrink: 0; }
.mini-go .ic { width: 16px; height: 16px; }

/* ── Tienda ──────────────────────────────────────────────── */
.store-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; align-items: center;
  background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 20px;
  transition: transform .15s, box-shadow .2s;
}
.store-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7, 6, 7, 0.28); }
.store-ic { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: #fff; }
.store-ic img { width: 100%; height: 100%; object-fit: cover; }
.store-title { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.store-desc { display: block; font-size: 0.88rem; color: var(--on-dark-2); margin-top: 4px; }
.store-cta {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: var(--text-primary); font-weight: 700; font-size: 0.92rem;
}
.store-cta .ic { width: 18px; height: 18px; transition: transform .2s; }
.store-card:hover .store-cta .ic { transform: translateX(4px); }

/* ── Carrusel de productos ───────────────────────────────── */
.carousel { margin-top: 22px; }
.carousel-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.carousel-bar .subhead { margin: 0; }
.carousel-arrows { display: none; gap: 8px; }
.arrow-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: background .15s, border-color .15s, opacity .15s;
}
.arrow-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-dim); }
.arrow-btn:disabled { opacity: 0.35; cursor: default; }

.carousel-track {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; scroll-behavior: auto; }
.product-slide { flex: 0 0 76%; max-width: 300px; scroll-snap-align: start; }
.product-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border); margin-bottom: 6px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.product-img-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-secondary); background: var(--bg-base); }
.product-img-empty .ic { width: 40px; height: 40px; }
.product-name { font-weight: 700; font-size: 0.98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--accent-text); }
.product-more .ic { width: 15px; height: 15px; transition: transform .2s; }
.product-card:hover .product-more .ic { transform: translateX(3px); }

.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.carousel-dot { width: 24px; height: 24px; display: grid; place-items: center; }
.carousel-dot span { width: 8px; height: 8px; border-radius: 50%; background: rgba(7, 6, 7, 0.22); transition: background .2s, width .2s; }
.carousel-dot.is-active span { background: var(--accent); width: 20px; border-radius: 6px; }

/* ── Proyectos ───────────────────────────────────────────── */
.proj-grid { display: grid; gap: 12px; }
.proj-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
a.proj-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.proj-head { display: flex; align-items: center; gap: 12px; }
.proj-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.proj-title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.proj-desc { font-size: 0.88rem; color: var(--text-secondary); }
.proj-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.84rem; color: var(--accent-text); }
.proj-link .ic { width: 15px; height: 15px; }
.portfolio-cta { margin-top: 16px; }
.portfolio-cta:empty { display: none; }

/* ── Blog ────────────────────────────────────────────────── */
.post-grid { display: grid; gap: 12px; }
.post-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, transform .15s, box-shadow .2s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.post-title { padding: 12px 14px 14px; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.blog-cta { margin-top: 16px; }

/* ── Servicios ───────────────────────────────────────────── */
.svc-grid { display: grid; gap: 10px; }
.svc-card { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); }
.svc-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-dim); color: var(--accent-text); display: grid; place-items: center; }
.svc-title { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.svc-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.35; }
.cta-row { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.copy-email { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 2px; font-size: 0.84rem; color: var(--text-secondary); border-radius: 6px; }
.copy-email:hover { color: var(--text-primary); }
.copy-email .ic { width: 15px; height: 15px; }
.copy-email .copy-msg { color: var(--accent-text); font-weight: 700; }
.copy-email.on-dark { color: var(--on-dark-2); }
.copy-email.on-dark:hover { color: #fff; }
.copy-email.on-dark .copy-msg { color: var(--accent); }

/* ── Colaboraciones (panel oscuro) ───────────────────────── */
.dark-panel { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 24px 20px; }
.dark-panel .eyebrow { color: var(--accent); }
.dark-panel .section-sub { color: var(--on-dark-2); }
.collab-grid { display: grid; gap: 22px; margin-top: 22px; }
.collab-areas { display: grid; gap: 14px; }
.collab-area { display: flex; gap: 14px; align-items: flex-start; }
.collab-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(252, 80, 0, 0.16); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.collab-area-title { display: block; font-weight: 700; font-size: 0.96rem; }
.collab-area-desc { display: block; font-size: 0.82rem; color: var(--on-dark-2); line-height: 1.4; margin-top: 2px; }
.collab-audience { display: flex; flex-wrap: wrap; gap: 6px; }
.dark-panel .cta-row { margin-top: 22px; }

.prev-collabs { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.prev-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.prev-note { font-size: 0.84rem; color: var(--on-dark-2); margin-top: 6px; max-width: 60ch; }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-logo { width: 100%; height: 64px; border-radius: var(--r-sm); background: #f4f4f6; display: grid; place-items: center; padding: 10px; overflow: hidden; }
.brand-logo img, .brand-logo svg { width: auto; height: auto; max-width: 100%; max-height: 44px; object-fit: contain; }
.brand-logo svg { width: 100%; }
.brand-logo img.invert { filter: brightness(0); }
.brand-name { font-size: 0.7rem; font-weight: 500; color: var(--on-dark-2); text-align: center; line-height: 1.25; }

/* ── Equipo y ofertas (menos peso visual) ────────────────── */
.section-quiet .section-title { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.row-grid { display: grid; gap: 8px; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); min-height: 60px; transition: border-color .2s, background .2s; }
.row-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.row-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 700; font-size: 0.88rem; line-height: 1.25; }
.row-sub { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.3; }
.row-go { width: 16px; height: 16px; color: var(--text-secondary); }
.aff-note { font-size: 0.76rem; color: var(--text-secondary); margin-top: 6px; }

/* ── Pie ─────────────────────────────────────────────────── */
.site-footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--text-secondary); }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-primary); line-height: 1.1; }
.footer-role { margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text-primary); text-decoration: underline; }
.footer-contact a { display: inline-block; padding: 8px 0; color: var(--text-primary); font-weight: 500; }
.footer-legal { margin-top: 20px; font-size: 0.76rem; max-width: 70ch; }

/* ── noscript ────────────────────────────────────────────── */
.noscript-box { margin: 20px auto; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); }
.noscript-box a { color: var(--accent-text); font-weight: 700; text-decoration: underline; }

@media (max-width: 559px) {
  .social-desc { display: none; }
  .post-card { flex-direction: row; align-items: center; }
  .post-img { width: 128px; flex-shrink: 0; align-self: stretch; height: auto; aspect-ratio: auto; min-height: 76px; }
  .post-title { padding: 10px 14px; }
}

/* ═══════════ Tablet ═══════════ */
@media (min-width: 560px) {
  .socials { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .product-slide { flex-basis: calc((100% - 14px) / 2 - 8px); max-width: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .row-grid { grid-template-columns: 1fr 1fr; }
  .brands { grid-template-columns: repeat(6, 1fr); }
  .cta-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-gap: 64px; }
  .carousel-arrows { display: flex; }
  .carousel-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .product-slide { flex-basis: calc((100% - 28px) / 3); }
  .feature-card { grid-template-columns: 170px 1fr; gap: 28px; padding: 26px; }
  .feature-title { font-size: 1.45rem; }
  .feature-desc { font-size: 0.98rem; }
  .store-card { grid-template-columns: 60px 1fr auto; padding: 24px 28px; gap: 16px 20px; }
  .store-ic { width: 60px; height: 60px; }
  .store-title { font-size: 2.1rem; }
  .store-cta { grid-column: auto; margin-top: 0; }
  .proj-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .dark-panel { padding: 40px; }
  .collab-areas { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}

/* ═══════════ Escritorio ═══════════ */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 48px; }
  .profile { align-items: flex-start; text-align: left; }
  .avatar-ring { width: 124px; height: 124px; }
  .socials-wrap .subhead { text-align: left; }
  .stat-value { font-size: 1.9rem; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(4, 1fr); }
  .collab-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; }
  .collab-areas { grid-template-columns: 1fr; }
}

@media (min-width: 1000px) {
  .product-slide { flex-basis: calc((100% - 42px) / 4); }
}

@media (max-width: 359px) {
  .socials { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stat + .stat { padding-left: 18px; }
}

/* ═══════════ Movimiento reducido ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Botón del avatar (abre las historias) */
button.avatar-ring { display: block; border: 0; background: none; }

a.brand { border-radius: var(--r-sm); }
a.brand:hover .brand-logo { box-shadow: 0 0 0 2px var(--accent); }
