@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&display=swap');

//* <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name */

.advent-pro-nextgen {
  font-family: "Advent Pro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666;
  --card: #fbfbfb;
  --primary: #2563eb;
  --accent: var(--primary);
  --border: var(--card);
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #18181b;
  --primary: #60a5fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html.theme-animate * {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  padding-top: 64px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1.5rem;
}

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

  padding: 0 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
  font-family: "Advent Pro";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted);
}

.services {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card h3 {
  margin-top: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.theme-switch {
  display: inline-flex;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.theme-switch button {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: all .2s ease;
}

.theme-switch button:hover {
  background: rgba(0,0,0,.05);
}

[data-theme="dark"] .theme-switch button:hover {
  background: rgba(255,255,255,.08);
}

.theme-switch button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.card {
  text-align: left;
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reveal base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Cuando entra en pantalla */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accesibilidad: usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.designs {
  margin-top: 5rem;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.design-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.design-card h3 {
  margin: 0.5rem 0;
}

.design-card .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  
  height: 64px;
  z-index: 1000;

  background: var(--bg);
  border-bottom: 1px solid var(--border);

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

/* 🟦 Estado con scroll (desktop + mobile cerrado) */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(10, 10, 10, 0.75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* 🛑 CLAVE: cuando el menú móvil está abierto */
body.menu-open .site-header {
  background: var(--bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.brand a {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

/* nav ya NO limita ancho */
.nav {
  display: flex;
}

/* links pueden crecer sin romper */
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

/* BOTÓN MOBILE */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}

/* MENÚ MOBILE */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  touch-action: pan-y;
  will-change: transform, opacity;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;

  transition:
    transform 0.35s cubic-bezier(.25,.8,.25,1),
    opacity 0.25s ease;

  z-index: 999;
}

.mobile-menu.dragging {
  transition: none !important;
}

/* LINKS */
.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

/* ABIERTO */
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 0;
}

body.menu-open {
  overflow: hidden;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;

  min-height: auto;        /* ← elimina fullscreen */
  display: flex;
  align-items: center;

  background:
    radial-gradient(
      500px circle at 20% 20%,
      rgba(37, 99, 235, 0.12),
      transparent 70%
    ),
    radial-gradient(
      600px circle at 80% 80%,
      rgba(96, 165, 250, 0.12),
      transparent 70%
    );
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.25rem 0.7rem;
  border-radius: 999px;

  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  margin-bottom: 0.8rem;
}

[data-theme="dark"] .hero-badge {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }
}

/* =========================
   HERO — DESIGN PAGES
========================= */

.design-hero {
  padding-top: 120px; /* evita header fixed */
  padding-bottom: 80px;
  background:
    radial-gradient(
      600px circle at 20% 20%,
      rgba(37, 99, 235, 0.12),
      transparent 80%
    ),
    radial-gradient(
      800px circle at 80% 80%,
      rgba(96, 165, 250, 0.12),
      transparent 80%
    );
}

.design-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.design-title {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.design-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.design-hero-media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
}

.design-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* MOBILE */
@media (max-width: 900px) {
  .design-hero-inner {
    grid-template-columns: 1fr;
  }

  .design-hero-media {
    order: -1;
  }
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card */
.portfolio-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* Image */
.portfolio-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

/* Body */
.portfolio-body {
  padding: 1.5rem;
}

.portfolio-body h3 {
  margin: 0 0 0.4rem;
}

.portfolio-body p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.portfolio-card:hover .btn.small {
  filter: brightness(1.1);
}

/* Button */
.btn.small {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--primary)
  );
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* Hover */
.btn.small:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

/* Active */
.btn.small:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.contact {
  text-align: center;
}

.contact-text {
  max-width: 600px;
  margin: 1rem auto 2.5rem;
  color: var(--muted);
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social i {
  font-size: 1.3rem;
}

.social:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* Colores sutiles por red */
.social.github i { color: #333; }
.social.discord i { color: #5865F2; }
.social.linkedin i { color: #0A66C2; }
.social.email i { color: var(--primary); }

[data-theme="dark"] .social.github i {
  color: #e5e7eb;
}

.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .site-footer p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

.design-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.design-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.design-card:hover .design-image img {
  transform: scale(1.06);
}

.design-preview {
  max-width: 880px;
  margin: 3rem auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.design-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bloques de contenido en páginas de diseño */
.design h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Card visual para cada sección */
.design h2 + p,
.design h2 + ul,
.design h2 ~ p,
.design h2 ~ ul {
  background: var(--card);
  padding: 1.5rem 1.8rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

/* Ajustes de texto */
.design p {
  color: var(--text);
  line-height: 1.7;
}

/* Features list */
.design ul {
  list-style: none;
  padding-left: 0;
}

.design ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

/* Check icon elegante */
.design ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Tags container */
.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2.5rem;
}

.design-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.6rem;
}

.contact-cta {
  margin: 2.5rem 0 3rem;
  text-align: center;
}

.btn.large {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* Base tag */
.tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Dark */
.tag-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

[data-theme="dark"] .tag-dark {
  background: #000;
}

/* Responsive */
.tag-responsive {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
}

/* phpBB */
.tag-phpbb,
.tag-phpbb-style {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Performance */
.tag-performance,
.tag-optimized {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.tag.sm {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
}

.recent-commits {
  margin-top: 2rem;
}

.recent-commits h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.commits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.commit-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commit-message {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.commit-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.commit-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}

.commit-link:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .commits-grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Timeline container */
.commit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding-left: 2.5rem;
  border-left: 2px solid var(--border);
}

/* Item */
.commit-item {
  position: relative;
  padding: 0 0 2.5rem 0;
  display: flex;
  gap: 1.2rem;
}

.commit-item:last-child {
  padding-bottom: 0;
}

/* Dot */
.commit-dot {
  position: absolute;
  left: -10px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Content */
.commit-content {
  padding-left: 1.2rem;
  max-width: 700px;
}

.commit-content strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.commit-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Subtle separator */
.commit-item::after {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 1.25rem;
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
}

/* Button */
.commit-toggle {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* Commit link */
.commit-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.commit-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Tooltip hint cursor */
.commit-link[title] {
  cursor: help;
}

/* Better spacing */
.commit-item {
  padding-bottom: 2.25rem;
}

/* Visual hierarchy */
.commit-meta {
  margin-top: 0.2rem;
}

/* Optional subtle hover */
.commit-item:hover .commit-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
  transition: 0.2s ease;
}


.last-update {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.last-update i {
  font-size: 0.85rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.blog-card a {
  color: var(--text);
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Post */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2rem;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.post-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.post-content {
  margin-top: 2.5rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  /* ocultar menú desktop */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* reducir spacing general */
  .header-inner {
    gap: 1rem;
  }
}

.comments {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments h3 {
  margin-bottom: 1.5rem;
}

.comments-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.giscus-frame::after {
  content: "Comment posted — refresh to see it";
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Testimonials */
/* ======================================================
   HERO DE TESTIMONIOS (MISMO ESTILO QUE HOME)
====================================================== */

.hero-testimonials {
  background:
    radial-gradient(
      500px circle at 20% 20%,
      rgba(37, 99, 235, 0.12),
      transparent 70%
    ),
    radial-gradient(
      600px circle at 80% 80%,
      rgba(96, 165, 250, 0.12),
      transparent 70%
    );
}

.hero-testimonials .hero-inner {
  align-items: flex-start;
  text-align: left;
}

.hero-testimonials .hero-title {
  color: var(--text);
}

.hero-testimonials .hero-subtitle {
  color: var(--muted);
}

/* ======================================================
   HERO BADGE
====================================================== */

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 999px;
}

/* ======================================================
   TESTIMONIAL BASE (CARD)
====================================================== */

.testimonial {
  padding: 32px;
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;

  /* 🔑 SIMETRÍA */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ======================================================
   TEXTO
====================================================== */

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  max-height: 8.5em;
  overflow: hidden;
}

/* ======================================================
   FOOTER (rating + meta SIEMPRE ABAJO)
====================================================== */

.testimonial-footer {
  margin-top: auto;
  padding-top: 24px;
}

/* ======================================================
   META
====================================================== */

.testimonial-meta {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--text);
}

/* ======================================================
   RATING
====================================================== */

.testimonial-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.testimonial-rating .stars {
  color: #facc15;
  letter-spacing: 3px;
}

.testimonial-rating .rating-value {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ======================================================
   HERO – TESTIMONIO DESTACADO
====================================================== */

.hero-testimonials .testimonial.featured {
  margin-top: 48px;
  max-width: 900px;
  padding: 48px;
  text-align: center;
}

/* ======================================================
   GRID DE TESTIMONIOS (PÁGINA)
====================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* ======================================================
   SLIDER (HOME)
====================================================== */

.testimonial-slider .testimonial {
  display: none;
}

.testimonial-slider .testimonial.active {
  display: block;
}

/* ======================================================
   CONTROLES SLIDER (HOME)
====================================================== */

.testimonial-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonial-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.testimonial-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ======================================================
   LINK "VER TODAS"
====================================================== */

.testimonials-link {
  margin-top: 28px;
  text-align: center;
  display: block;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-testimonials .testimonial.featured {
    padding: 32px;
  }
}

/* ======================================================
   PLATFORM BADGES
====================================================== */

.platform-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 999px;
  text-transform: uppercase;
}

/* phpBB */
.platform-phpbb {
  background: rgba(0, 90, 156, 0.15);
  color: #5dade2;
}

/* XenForo */
.platform-xenforo {
  background: rgba(222, 86, 25, 0.15);
  color: #f97316;
}

/* vBulletin */
.platform-vbulletin {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.platform-badge {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* SOLO botones dentro de las cards de designs */
.designs .design-card .design-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 1.2rem;
}

/* Base común SOLO para estos botones */
.designs .design-card .design-actions .btn {
  min-width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0 22px;
  line-height: 1;
}

/* Botón principal */
.designs .design-card .design-actions .btn.primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

/* Botón secundario */
.designs .design-card .design-actions .btn.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
@media (max-width: 420px) {
  .designs .design-card .design-actions .btn {
    min-width: 120px;
  }
}

.design-milestones {
  margin: 3rem 0 3.5rem;
}

.milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.milestone-head h3 {
  margin: 0;
}

.milestone-percent {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Barra */
.progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--primary)
  );
  border-radius: inherit;
  transition: width 0.6s ease;
}

/* Lista */
.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.milestone-list li::before {
  content: "○";
  font-size: 0.85rem;
}

.milestone-list li.done {
  color: var(--text);
  font-weight: 500;
}

.milestone-list li.done::before {
  content: "✓";
  color: var(--primary);
}

.design-milestones[data-status="completed"] .progress-fill {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.milestone-updated {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
