/*
Theme Name: SetupLabs
Theme URI: https://croco.proyectoswp.com
Author: Novamira
Author URI: https://croco.proyectoswp.com
Description: Tema clásico para SetupLabs. Laboratorio técnico-creativo: dark purple, púrpura marca, turquesa acción y neumorfismo controlado.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: setuplabs
*/

:root {
  --bg: #1d0730;
  --surface: #220a3e;
  --surface-light: #efe4f7;
  --ink: #ffffff;
  --ink-dark: #1d0730;
  --muted: #7d7188;
  --brand: #662d91;
  --brand-light: #8f4cc4;
  --brand-shadow: #32104f;
  --action: #00c2cb;
  --action-light: #00d8e5;
  --signal: #d8d2de;
  --success: #39d98a;
  --warning: #f2b84b;
  --depth: #12041f;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 80px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-sharp: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-neumorphic-dark: -4px -4px 12px rgba(102, 45, 145, 0.18), 6px 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-neumorphic-light: -4px -4px 12px rgba(255, 255, 255, 0.85), 6px 6px 18px rgba(102, 45, 145, 0.18);

  --max-width: 1280px;
  --line-body: 1.6;
}

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

:where(html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd) {
  margin: 0;
}

:where(ul, ol) {
  list-style: none;
  padding: 0;
}

:where(img, picture, video, canvas, svg) {
  display: block;
  max-width: 100%;
}

:where(input, button, textarea, select) {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--line-body);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 2.2rem + 4vw, 6.25rem);
}

h2 {
  font-size: clamp(2rem, 1.45rem + 2.6vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 2rem);
}

a {
  color: var(--action);
  text-decoration: none;
}

a:hover {
  color: var(--action-light);
}

p, ul, ol {
  max-width: 70ch;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid rgba(102, 45, 145, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-md);
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-brand__mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--action) 100%);
  border-radius: var(--radius-md);
}

.primary-nav ul {
  display: flex;
  gap: var(--space-md);
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: var(--space-sm);
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--action);
}

.hero {
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, var(--bg) 0%, var(--depth) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__title {
  max-width: 14ch;
}

.hero__title em {
  font-style: normal;
  color: var(--action);
}

.hero__text {
  font-size: 1.125rem;
  color: var(--signal);
  max-width: 55ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.hero__visual {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-md);
  aspect-ratio: 4 / 3;
}

.hero__panel {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neumorphic-dark);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-md);
}

.hero__panel--main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__panel--accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-shadow) 100%);
}

.hero__chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--action);
  background-color: rgba(0, 194, 203, 0.1);
  border: 1px solid rgba(0, 194, 203, 0.25);
  border-radius: var(--radius-full);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--action);
  color: var(--ink-dark);
  box-shadow: 0 4px 14px rgba(0, 194, 203, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--action) 0%, var(--action-light) 100%);
  color: var(--ink-dark);
  box-shadow: 0 6px 20px rgba(0, 194, 203, 0.4);
}

.btn--secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.section {
  padding-block: var(--space-xl);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__title {
  max-width: 20ch;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.post-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neumorphic-dark);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neumorphic-dark), var(--shadow-soft);
}

.post-card:nth-child(1) {
  grid-column: span 7;
}

.post-card:nth-child(2) {
  grid-column: span 5;
}

.post-card:nth-child(3) {
  grid-column: span 5;
}

.post-card:nth-child(4) {
  grid-column: span 7;
}

.post-card__title {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 2rem);
  line-height: 1.15;
}

.post-card__title a {
  color: var(--ink);
}

.post-card__title a:hover {
  color: var(--action);
}

.post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__excerpt {
  color: var(--signal);
}

.read-more {
  font-weight: 600;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.single-hero {
  padding-block: var(--space-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--depth) 100%);
  border-bottom: 1px solid rgba(102, 45, 145, 0.25);
}

.single-hero__title {
  font-size: clamp(3rem, 2.2rem + 4vw, 6.25rem);
  max-width: 20ch;
  margin-bottom: var(--space-md);
}

.single-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
}

.single-content {
  padding-block: var(--space-lg);
}

.single-content .container {
  max-width: 75ch;
}

.single-content h2,
.single-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.single-content p,
.single-content ul,
.single-content ol {
  margin-bottom: var(--space-md);
  color: var(--signal);
}

.single-content ul,
.single-content ol {
  list-style: disc;
  padding-left: 1.5em;
}

.single-content ol {
  list-style: decimal;
}

.single-content blockquote {
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-lg);
  border-left: 4px solid var(--action);
  background-color: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.single-content img {
  margin-block: var(--space-lg);
  border-radius: var(--radius-md);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  list-style: none;
  padding: 0;
}

.post-tag {
  display: inline-flex;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--action);
  background-color: rgba(0, 194, 203, 0.08);
  border: 1px solid rgba(0, 194, 203, 0.2);
  border-radius: var(--radius-full);
  transition: background-color 150ms ease-out;
}

.post-tag:hover {
  background-color: rgba(0, 194, 203, 0.15);
  color: var(--action-light);
}

.post-nav {
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(102, 45, 145, 0.25);
}

.post-nav__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.post-nav a {
  font-weight: 600;
}

.site-footer {
  padding-block: var(--space-lg);
  background-color: var(--depth);
  border-top: 1px solid rgba(102, 45, 145, 0.25);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}


.slider-section {
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid rgba(102, 45, 145, 0.25);
  border-bottom: 1px solid rgba(102, 45, 145, 0.25);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neumorphic-dark);
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.slider__track {
  display: flex;
  transition: transform 500ms ease-out;
  will-change: transform;
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.slider__image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background-color: var(--depth);
}

.slider__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: none;
  border-radius: 0;
}

.slider__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background-color: var(--surface);
}

.slider__title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  color: var(--ink);
  max-width: 20ch;
}

.slider__excerpt {
  color: var(--signal);
  max-width: 50ch;
}

.slider__link {
  align-self: flex-start;
}

.slider__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: var(--shadow-neumorphic-dark);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

.slider__button:hover {
  background-color: var(--action);
  color: var(--ink-dark);
  transform: translateY(-50%) scale(1.05);
}

.slider__button:active {
  transform: translateY(-50%) scale(0.98);
}

.slider__button--prev {
  left: var(--space-md);
}

.slider__button--next {
  right: var(--space-md);
}

.slider__dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-sm);
}

.slider__dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.slider__dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.slider__dot.is-active {
  background-color: var(--action);
  transform: scale(1.15);
}

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

  .slider__image {
    min-height: 240px;
  }

  .slider__content {
    padding: var(--space-md);
  }

  .slider__button {
    width: 40px;
    height: 40px;
  }

  .slider__button--prev {
    left: var(--space-sm);
  }

  .slider__button--next {
    right: var(--space-sm);
  }
}

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

  .hero__visual {
    aspect-ratio: 1 / 1;
  }

  .post-card,
  .post-card:nth-child(1),
  .post-card:nth-child(2),
  .post-card:nth-child(3),
  .post-card:nth-child(4) {
    grid-column: span 12;
  }

  .primary-nav {
    display: none;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}