/* =========================
   VARIABLES
========================= */

:root {
  --primary: #6366f1;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --border: #e5e7eb;
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}


/* =========================
   LINKS
========================= */

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.header a,
.footer a {
  font-weight: 500;
}

.footer a:hover,
.product:hover {
  color: var(--primary);
}


/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}


/* =========================
   HEADER
========================= */

.header {
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* =========================
   BRAND / LOGO
========================= */

.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* separación entre bloques */
  font-weight: 600;
  font-size: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-text {
  display: inline-flex;
  gap: 0; /* evita "Theme Ally" separado */
  letter-spacing: -0.2px;
}

.brand-accent {
  color: var(--primary);
}

.separator {
  color: var(--muted);
}

.product {
  color: var(--muted);
  font-weight: 500;
}


/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 80px 0;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   BUTTONS
========================= */

.btn {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.9;
}


/* =========================
   GRID / CARDS
========================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: inherit;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}


/* =========================
   CTA SECTION
========================= */

.cta {
  padding: 80px 20px;
}

.cta .container {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
}

.cta .btn {
  background: #fff;
  color: #111827 !important;
}


/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  color: var(--muted);
  padding-bottom: 40px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .container {
    padding: 30px 20px;
  }
}

/* =========================
   BUTTON DISABLED
========================= */

.btn.disabled {
  background: #e0e7ff;
  color: #6366f1 !important;
  cursor: default;
  pointer-events: none;
  border: 1px dashed #c7d2fe;
}


/* =========================
   CARD HEADER (TITLE + DEMO BUTTON)
========================= */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
}


/* =========================
   CARD LINK OVERLAY
========================= */

.card {
  position: relative;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card .btn {
  position: relative;
  z-index: 2;
}


/* =========================
   SMALL BUTTON
========================= */

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}


/* =========================
   OUTLINE BUTTON (DEMO)
========================= */

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  opacity: 1;
}


/* =========================
   HERO ACTIONS
========================= */

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.card-main img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 a {
  text-decoration: none;
  color: var(--text);
}

.card h3 a:hover {
  color: var(--primary);
}