/* ==========================================================================
   ROAR Showcase Hub Stylesheet
   Página central de demostración de tiendas y catálogos online
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --hub-orange: #ff7a00;
  --hub-orange-hover: #ff5500;
  --hub-orange-glow: rgba(255, 122, 0, 0.35);
  --hub-bg: #090c15;
  --hub-surface: #101626;
  --hub-card: #151d33;
  --hub-card-hover: #1c2744;
  --hub-border: rgba(255, 255, 255, 0.08);
  --hub-border-glow: rgba(255, 122, 0, 0.3);
  --hub-text: #f8fafc;
  --hub-text-muted: #94a3b8;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--hub-bg);
  color: var(--hub-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 100% 0%, rgba(255, 122, 0, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(56, 189, 248, 0.06) 0px, transparent 50%);
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hub Header */
.hub-header {
  border-bottom: 1px solid var(--hub-border);
  background: rgba(9, 12, 21, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.brand-text h1 span {
  color: var(--hub-orange);
}

.brand-text p {
  font-size: 11px;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-back-main {
  color: var(--hub-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-back-main:hover {
  color: #fff;
}

.btn-contact-hub {
  background: linear-gradient(135deg, var(--hub-orange), var(--hub-orange-hover));
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--hub-orange-glow);
  transition: all 0.2s ease;
}

.btn-contact-hub:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
}

/* Hero */
.hub-hero {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: #ff9d42;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hub-hero h2 {
  font-size: clamp(26px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.hub-hero h2 .highlight {
  background: linear-gradient(135deg, #fff 40%, var(--hub-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 0 auto 35px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--hub-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.stat-box {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  padding: 12px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.stat-box strong {
  color: var(--hub-orange);
  font-size: 16px;
}

/* Demos Grid */
.demos-section {
  padding-bottom: 80px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-title-wrap h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title-wrap p {
  color: var(--hub-text-muted);
  font-size: 16px;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.demo-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.demo-card:hover {
  transform: translateY(-6px);
  border-color: var(--hub-border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 122, 0, 0.15);
}

.demo-card-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: block;
  background: #151d33;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-card:hover .banner-img {
  transform: scale(1.08);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #151d33 0%, rgba(21, 29, 51, 0.3) 60%, transparent 100%);
  pointer-events: none;
}

.demo-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 12, 21, 0.85);
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.demo-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-card-header {
  margin-bottom: 14px;
}

.demo-category-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--hub-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.demo-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.demo-card-desc {
  font-size: 14px;
  color: var(--hub-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.demo-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feat-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hub-border);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.demo-card-action {
  border-top: 1px solid var(--hub-border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-open-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--hub-orange), var(--hub-orange-hover));
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-open-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--hub-orange-glow);
}

/* Why ROAR Section */
.why-roar-section {
  padding: 70px 0;
  background: var(--hub-surface);
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.reason-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 16px;
  padding: 28px;
}

.reason-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.reason-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.reason-card p {
  font-size: 13px;
  color: var(--hub-text-muted);
  line-height: 1.6;
}

/* Big CTA Banner */
.hub-cta-banner {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, #1c152a 0%, #151d33 50%, #201317 100%);
  border: 1px solid var(--hub-border-glow);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-box h3 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.cta-box p {
  font-size: 16px;
  color: var(--hub-text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--hub-orange), var(--hub-orange-hover));
  color: #fff;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 25px var(--hub-orange-glow);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hub-border);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.hub-footer {
  padding: 40px 0;
  border-top: 1px solid var(--hub-border);
  text-align: center;
  font-size: 13px;
  color: var(--hub-text-muted);
}

.hub-footer a {
  color: var(--hub-orange);
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-links .link-back-main {
    display: none;
  }
  .hub-hero {
    padding: 45px 0 30px;
  }
  .cta-box {
    padding: 30px 20px;
  }
  .demos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .demo-card-content {
    padding: 20px 16px;
  }
  .demo-card-banner {
    height: 170px;
  }
  .stat-box {
    width: 100%;
    justify-content: center;
  }
  .cta-actions {
    flex-direction: column;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    text-align: center;
  }
}
