/*
Theme Name: Tecno Experts Soporte
Theme URI: https://www.tecno-experts.com/
Author: Tecno Experts
Author URI: https://www.tecno-experts.com/
Description: Tema corporativo responsive para el WordPress independiente de la Mesa de Servicios en /soporte.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tecnoexperts-soporte
*/

:root {
  --tes-navy: #0f2445;
  --tes-navy-soft: #173d77;
  --tes-blue: #1668e3;
  --tes-yellow: #f9b215;
  --tes-text: #14243d;
  --tes-muted: #64748b;
  --tes-border: #e4ebf4;
  --tes-surface: #ffffff;
  --tes-background: #f5f8fc;
  --tes-content: 1240px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  background: var(--tes-background);
  color: var(--tes-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  min-width: 320px;
}

body.admin-bar .tes-site-header {
  top: 32px;
}

a {
  color: var(--tes-blue);
}

img,
svg {
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

.screen-reader-text:focus {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(22, 104, 227, .25);
  clip: auto !important;
  clip-path: none;
  color: var(--tes-navy);
  display: block;
  font-weight: 700;
  height: auto;
  left: 16px;
  padding: 12px 16px;
  top: 16px;
  width: auto;
  z-index: 100000;
}

.tes-site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--tes-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tes-header-inner,
.tes-footer-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--tes-content);
  padding: 17px 22px;
}

.tes-brand,
.tes-brand-fallback {
  align-items: center;
  color: var(--tes-navy);
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.tes-brand .custom-logo {
  display: block;
  max-height: 58px;
  width: auto;
}

.tes-brand-name {
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.03em;
}

.tes-brand-tagline {
  color: var(--tes-blue);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .045em;
  margin-top: 7px;
}

.tes-navigation {
  align-items: center;
  display: flex;
  gap: 22px;
}

.tes-navigation ul {
  align-items: center;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tes-navigation a {
  border-radius: 8px;
  color: var(--tes-navy);
  display: block;
  font-size: .875rem;
  font-weight: 750;
  padding: 10px 12px;
  text-decoration: none;
}

.tes-navigation a:hover,
.tes-navigation a:focus-visible,
.tes-navigation .current-menu-item > a {
  background: #edf4ff;
  color: var(--tes-blue);
}

.tes-navigation .tes-main-site-link {
  background: var(--tes-yellow);
  color: #263d5f;
  padding-inline: 16px;
}

.tes-menu-toggle {
  align-items: center;
  background: var(--tes-navy);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: .875rem;
  font-weight: 750;
  min-height: 44px;
  padding: 9px 14px;
}

.tes-main {
  min-height: calc(100vh - 174px);
}

.tes-main--portal {
  min-height: 100vh;
}

.tes-content {
  margin: 44px auto 70px;
  max-width: 980px;
  padding: 0 22px;
}

.tes-article {
  background: var(--tes-surface);
  border: 1px solid var(--tes-border);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(15, 36, 69, .07);
  padding: clamp(26px, 5vw, 54px);
}

.tes-article + .tes-article {
  margin-top: 24px;
}

.tes-entry-header {
  border-bottom: 1px solid var(--tes-border);
  margin-bottom: 30px;
  padding-bottom: 22px;
}

.tes-entry-title {
  color: var(--tes-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}

.tes-entry-meta {
  color: var(--tes-muted);
  font-size: .875rem;
  margin-top: 9px;
}

.tes-entry-content > :first-child {
  margin-top: 0;
}

.tes-entry-content > :last-child {
  margin-bottom: 0;
}

.tes-entry-content h2,
.tes-entry-content h3 {
  color: var(--tes-navy);
  line-height: 1.2;
}

.tes-site-footer {
  background: var(--tes-navy);
  color: #dbe7f7;
}

.tes-footer-inner {
  min-height: 88px;
}

.tes-footer-inner p {
  font-size: .875rem;
  margin: 0;
}

.tes-footer-inner a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tes-footer-inner a:hover,
.tes-footer-inner a:focus-visible {
  color: var(--tes-yellow);
}

.tes-empty-state {
  color: var(--tes-muted);
  padding: 30px;
  text-align: center;
}

/* La portada de /soporte conserva íntegramente la estructura del plugin. */
.tex-support-portal {
  background: var(--tes-background);
}

.tex-support-portal .wp-site-blocks,
.tex-support-portal .site-content,
.tex-support-portal .entry-content {
  margin: 0;
  max-width: none;
  padding: 0;
}

@media (max-width: 782px) {
  body.admin-bar .tes-site-header {
    top: 46px;
  }

  .tes-menu-toggle {
    display: inline-flex;
  }

  .tes-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tes-navigation {
    align-items: stretch;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .tes-navigation.is-open {
    display: flex;
  }

  .tes-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }

  .tes-navigation a {
    padding: 12px 14px;
  }

  .tes-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .tes-header-inner,
  .tes-footer-inner,
  .tes-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tes-content {
    margin-top: 24px;
  }

  .tes-article {
    border-radius: 14px;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
