/*
Theme Name: 23ky Theme
Author: Tu nombre
Version: 1.0
*/

/* 1. Reset o normalización */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* 2. Layout base */
:root {
  --primary-color: #00bfff;
  --secondary-color: #0077b6;
  --accent-color: #0affd2;
  --background-color: #0e0e0e;
  --surface-color: #1a1a1a;
  --card-bg: #1b1b1b;
  --text-color: #ffffff;
  --heading-color: #ffffff;
  --muted-text-color: #b0b8c1;
  --border-color: #2c2f34;
  --dark-bg-color: #0a0a0a;
  --darker-bg-color: #000000;
  --border-radius: 8px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --font-heading: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-text: 'Inter', sans-serif;
}

/* Use Google Noto Sans for headings */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title,
.elementor-heading-title {
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}

body {
  font-family: var(--font-text);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

/* 3. Componentes */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

/* Logo WordPress Override */
.site-header .custom-logo {
  max-height: 40px;
  width: auto;
  height: auto;
}

.site-header .custom-logo-link {
  display: block;
  max-height: 40px;
}

.site-header .custom-logo-link img {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

/* Footer Widget Styles */
.site-footer {
  background: #1a1d21;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 40px;
}

.footer-widget {
  flex: 1 1 200px;
}

.footer-widget h2 {
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* 4. Media Queries */
/* Desktop first */
@media (max-width: 1024px) {
  /* tablets */
}

@media (max-width: 768px) {
  .site-header .custom-logo,
  .site-header .custom-logo-link img {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .site-header .custom-logo,
  .site-header .custom-logo-link img {
    max-height: 50px;
  }
}

/* Clients and Partners Section */
.hero,
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2em;
  color: #666;
}

.hero-buttons {
  margin-bottom: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 10px 20px;
  background: #0073aa;
  color: #ffffff;
  border: none;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.hero-buttons .btn-outline {
  background: transparent;
  border: 2px solid #0073aa;
  color: #0073aa;
}

.grid-clientes,
.grid-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  margin-top: 2em;
}

.cliente-logo img,
.partner-logo img {
  max-width: 100px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.cliente-logo img:hover,
.partner-logo img:hover {
  filter: grayscale(0%);
}

/* Mobile first - 360px y hasta tablets */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding: 0 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 40px 16px;
  text-align: center;
}

/* A partir de 768px (tablets) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 24px;
  }
}

/* Blog */
.blog-list {
  padding: 80px 0 40px;
}

.blog-list__header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.blog-subtitle {
  color: var(--color-text-muted, #a1a1aa);
  font-size: 1rem;
}

.posts-grid {
  display: grid;
  gap: 32px;
}

.post-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.post-card__thumbnail,
.post-card__thumbnail img,
.post-card__thumbnail--placeholder {
  display: block;
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(102, 0, 255, 0.2));
}

.post-card__thumbnail--placeholder {
  min-height: 220px;
}

.post-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted, #a1a1aa);
}

.post-card__categories a {
  color: var(--accent, #00ffff);
  text-decoration: none;
  font-weight: 600;
}

.post-card__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__excerpt {
  color: var(--color-text-secondary, #d1d1d6);
  line-height: 1.6;
}

.post-card .btn {
  align-self: flex-start;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: var(--accent, linear-gradient(135deg, #00ffff, #0066ff));
  color: #0a0a0a;
}

.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  margin: 0 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--accent, linear-gradient(135deg, #00ffff, #0066ff));
  color: #0a0a0a;
  font-weight: 700;
}

.blog-empty {
  text-align: center;
  font-size: 1.125rem;
}

.single-post {
  padding: 80px 0;
}

.single-post-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.post-header {
  text-align: center;
  margin-bottom: 32px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text-muted, #a1a1aa);
}

.post-meta a {
  color: var(--accent, #00ffff);
  text-decoration: none;
}

.post-thumbnail {
  margin: 32px -28px 32px;
  border-radius: 24px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  display: block;
  height: auto;
}

.post-content {
  color: var(--color-text-secondary, #d1d1d6);
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.post-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 0.875rem;
}

.post-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-share__list {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 16px 0 0;
}

.post-share__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.post-cta {
  margin-top: 56px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(102, 0, 255, 0.24));
  text-align: center;
  display: grid;
  gap: 20px;
}

.post-cta .btn {
  justify-self: center;
}

.post-cta__shortcode {
  margin-top: 12px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 24px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card__thumbnail,
  .post-card__thumbnail--placeholder {
    min-height: 240px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-post-content {
    padding: 56px 72px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }
}
