/*
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;
  }
}

/* A partir de 1024px (desktop) */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

/* Full HD */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}

/* 4K Ultra HD */
@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }
}
