/* ==========================================================================
   SM Suministros & Publicidad — Landing page
   ========================================================================== */

:root {
  --bg: #0E0E0E;
  --bg-2: #0A0A0A;
  --bg-3: #141414;
  --bg-card: #161616;
  --border: rgba(255, 255, 255, .08);
  --text: #F4F3F1;
  --text-dim: #B9B9B9;
  --text-mute: #9A9A9A;
  --text-mute-2: #6a6a6a;
  --accent: #E20613;
  --accent-hover: #ff2a36;
  --accent-soft: rgba(226, 6, 19, .12);
  --light-bg: #F4F3F1;
  --light-text: #0E0E0E;
  --light-text-dim: #4A4A4A;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --container-w: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }

.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-sm { font-size: 14.5px; padding: 11px 20px; }
.btn-lg { font-size: 16px; padding: 16px 28px; box-shadow: 0 12px 40px -12px rgba(226, 6, 19, .7); }
.btn-outline.btn-lg { box-shadow: none; }

/* ---------- animations ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes gridpan { from { background-position: 0 0; } to { background-position: 64px 64px; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #fff; padding: 3px; }
.header-row .brand-logo { width: 54px; height: 54px; }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a:not(.btn) { color: #C9C9C9; font-weight: 600; font-size: 14.5px; }
.nav-desktop a:not(.btn):hover { color: #fff; }

.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

.nav-mobile {
  padding: 8px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { color: #E8E8E8; font-weight: 600; padding: 10px 0; }
.nav-mobile .btn { justify-content: center; padding: 13px; margin-top: 6px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridpan 8s linear infinite;
  opacity: .6;
}
.hero-slider { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 14, 14, .97) 0%, rgba(14, 14, 14, .93) 62%, rgba(14, 14, 14, .4) 95%),
    linear-gradient(180deg, transparent 60%, rgba(14, 14, 14, .9) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 28px 88px; }

.hero-dots { display: flex; gap: 9px; margin-top: 44px; }
.hero-dot {
  width: 26px; height: 4px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .25); cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .45); }
.hero-dot.is-active { background: var(--accent); width: 40px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  background: var(--accent-soft);
  border: 1px solid rgba(226, 6, 19, .4);
  color: #ff6a83;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.badge-dot { flex-shrink: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.8s infinite; }
.badge-text { min-width: 0; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .98;
  margin: 26px 0 0;
  max-width: 16ch;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: .82em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .highlight { position: relative; white-space: nowrap; }
.hero .highlight::before {
  content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 10px;
  background: rgba(226, 6, 19, .35); z-index: -1;
}
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--text-dim); max-width: 60ch; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .1); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: #fff; }
.stat-label { color: var(--text-mute); font-size: 13.5px; font-weight: 600; }

.marquee-wrap {
  position: relative; z-index: 3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #8a8a8a; padding: 0 26px; white-space: nowrap; }
.marquee-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: 100px 0; }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-dark2 { background: var(--bg-3); border-top: 1px solid rgba(255, 255, 255, .06); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
}
.section h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; margin: 16px 0 0; }
.section-desc { font-size: 18px; line-height: 1.6; color: var(--light-text-dim); margin: 22px 0 0; max-width: 52ch; }
.section-light .section-desc { color: var(--light-text-dim); }
.section:not(.section-light) .section-desc { color: var(--text-mute); font-size: 17px; max-width: none; }
.section-head { max-width: 640px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-note { color: #8a8a8a; font-size: 14px; max-width: 32ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- IA panel ---------- */
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; margin-top: 2px;
}
.check-title { font-weight: 700; font-size: 16.5px; color: var(--light-text); }
.check-desc { font-size: 14.5px; color: #6a6a6a; margin-top: 2px; line-height: 1.45; }

.ia-panel-wrap { position: relative; }
.ia-panel { background: var(--bg); border-radius: 24px; padding: 32px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .5); }
.ia-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dots { display: flex; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.dots span:first-child { background: var(--accent); }
.ia-panel-title { color: #6a6a6a; font-family: var(--font-display); font-size: 12px; font-weight: 600; }

.flow-list { display: flex; flex-direction: column; gap: 10px; }
.flow-item { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid #262626; border-radius: 12px; padding: 13px 15px; }
.flow-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(226, 6, 19, .15); color: #ff6a83;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.flow-t { color: #fff; font-weight: 600; font-size: 14.5px; }
.flow-d { color: #7a7a7a; font-size: 12.5px; }

.ia-panel-highlight {
  margin-top: 22px; background: rgba(226, 6, 19, .1); border: 1px solid rgba(226, 6, 19, .3);
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.hl-title { color: #fff; font-weight: 700; font-size: 15px; }
.hl-sub { color: #8a8a8a; font-size: 12.5px; font-weight: 600; }
.hl-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); }

.floating-badge {
  position: absolute; top: -22px; right: -14px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 12px;
  animation: floaty 4s ease-in-out infinite;
  box-shadow: 0 16px 40px -14px rgba(226, 6, 19, .8);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  transition: transform .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(226, 6, 19, .5); }
.service-icon-sm { font-family: var(--font-display); font-size: 26px; color: var(--accent); margin-top: auto; margin-bottom: 16px; font-weight: 700; }
.service-card h3 { font-weight: 700; font-size: 20px; color: #fff; line-height: 1.1; }
.service-card p { font-size: 14.5px; line-height: 1.5; color: #9a9a9a; margin-top: 12px; }

.service-card-feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--accent); border: none;
  padding: 34px;
}
.service-card-feature:hover { transform: translateY(-6px); }
.service-tag {
  align-self: flex-start; background: rgba(0, 0, 0, .25); color: #fff;
  font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: auto;
}
.service-icon { font-family: var(--font-display); font-size: 34px; color: #fff; margin-bottom: 16px; font-weight: 700; }
.service-card-feature h3 { font-size: clamp(26px, 3vw, 36px); color: #fff; line-height: 1.05; }
.service-card-feature p { font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.service-link { margin-top: auto; padding-top: 26px; color: #fff; font-weight: 700; font-size: 15px; }
.service-link:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   PORTAFOLIO
   ========================================================================== */
.portfolio-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portfolio-tab {
  flex: 0 0 auto;
  background: var(--bg-card); border: 1px solid var(--border); color: #b9b9b9;
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.portfolio-tab:hover { border-color: rgba(226, 6, 19, .5); color: #fff; }
.portfolio-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.portfolio-item {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 6, 19, .4);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .7);
}
.portfolio-item[hidden] { display: none; }

.portfolio-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-slot {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 12px, #181818 12px, #181818 24px);
  color: #7a7a7a; font-weight: 600; font-size: 12.5px;
}
.portfolio-tag {
  position: absolute; top: 9px; left: 9px;
  background: rgba(14, 14, 14, .78);
  color: #fff; font-weight: 700; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}

.portfolio-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.portfolio-body h3 { font-size: 14px; color: #fff; letter-spacing: -.01em; line-height: 1.3; }
.portfolio-body p {
  font-size: 12px; line-height: 1.45; color: #9a9a9a; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.portfolio-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 7px; color: var(--accent); font-weight: 700; font-size: 12px;
}
.portfolio-link:hover { color: var(--accent-hover); }

.portfolio-empty {
  margin-top: 28px; color: #7a7a7a; font-size: 14.5px; text-align: center;
}
.portfolio-empty:not([hidden]) { display: block; }

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.process-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.process-n { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: rgba(226, 6, 19, .9); line-height: 1; }
.process-card h3 { font-size: 19px; color: #fff; margin: 14px 0 8px; letter-spacing: -.01em; }
.process-card p { font-size: 14.5px; line-height: 1.5; color: #9a9a9a; }

/* ==========================================================================
   CTA / CONTACTO
   ========================================================================== */
.section-cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 96px 0; }
.cta-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5; animation: none;
}
.cta-grid { position: relative; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.cta-title { font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: .98; max-width: 14ch; }
.cta-lead { font-size: 19px; line-height: 1.55; margin: 22px 0 34px; max-width: 46ch; color: rgba(255, 255, 255, .92); }

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon span { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.contact-k { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-v { font-size: 17px; font-weight: 700; color: #fff; }
.contact-v a { color: #fff; }
.contact-v a:hover { color: rgba(255, 255, 255, .8); }

.contact-form {
  background: var(--bg); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #1c1c1c; border: 1px solid #2a2a2a; color: #fff;
  padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 15px;
}
.contact-form select { color: #c9c9c9; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #7a7a7a; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form button {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 15px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit;
}
.contact-form button:hover { background: var(--accent-hover); }
.form-success { color: #8bd48b; font-size: 13.5px; font-weight: 600; text-align: center; }
.form-error { color: #ff8a8a; font-size: 13.5px; font-weight: 600; text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-2); padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 44px; height: 44px; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px; }
.footer-tag { color: #7a7a7a; font-size: 13px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #9a9a9a; font-weight: 600; font-size: 14px; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: #666; font-size: 12.5px;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #9a9a9a; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .grid-2, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-feature { grid-column: span 2; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .service-card-feature { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
