/*
Theme Name: iTech Sentinel
Theme URI: https://www.itechsolutionspr.com/
Author: iTech Solutions PR
Author URI: https://www.itechsolutionspr.com/
Description: Tema premium de ciberseguridad para iTech Solutions PR. Portada de una sola página con efectos WebGL-free (canvas de topología de red, aurora CSS, revelados al hacer scroll), formulario de consulta propio que envía a su correo y guarda cada solicitud, tema claro y oscuro, y todo el contenido editable desde el Personalizador. Sin dependencias externas, sin jQuery, accesible (WCAG AA, prefers-reduced-motion, forced-colors).
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itech-solutions
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, full-width-template, editor-style, sticky-post, blog, portfolio

iTech Sentinel is distributed under the terms of the GNU GPL v2 or later.

The design system itself lives in assets/css/theme.css so this file can hold
only the WordPress-specific component styles (archives, comments, editor
alignment, core widget classes) without duplicating the token layer.
*/

/* ==========================================================================
   WordPress-specific components
   Everything here consumes the tokens declared in assets/css/theme.css.
   ========================================================================== */

/* --- Global page shell ---------------------------------------------- */

.site-main {
  position: relative;
  z-index: 2;
  padding-bottom: var(--sec-y);
}

.site-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-top: clamp(40px, 5vw, 70px);
}

@media (min-width: 1000px) {
  .site-main__inner.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* --- Page hero ------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-top: 8px;
}

.page-hero__desc {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--muted);
}

.page-hero__desc p {
  margin-bottom: 0.8em;
}

/* --- Entries --------------------------------------------------------- */

.entry {
  position: relative;
}

.entry__thumb {
  margin-bottom: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.entry__thumb img {
  width: 100%;
  height: auto;
}

.entry-meta {
  color: var(--muted-dim);
  margin-bottom: 14px;
}

.entry-content {
  color: var(--text-soft);
}

.entry-content > * + * {
  margin-top: 1.15em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
}

.entry-content a:not(.btn) {
  color: var(--cyan-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast);
}

.entry-content a:not(.btn):hover {
  color: var(--text);
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.35em;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 0.5em;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--brand-500));
}

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

.entry-content ol li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  padding: 22px 26px;
  border-left: 2px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--glass);
  font-size: 1.06rem;
  color: var(--text);
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan-300);
}

.entry-content pre {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.35);
  overflow-x: auto;
}

.entry-content pre code {
  padding: 0;
  border: 0;
  background: none;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
  border-radius: var(--r-md);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  font-family: var(--font-display);
  color: var(--text);
}

.entry-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.entry__tags a {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.entry__tags a:hover {
  color: var(--cyan-300);
  border-color: rgba(109, 124, 255, 0.5);
}

.page-links {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--font-mono);
}

.page-links a,
.page-links > span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 0.8rem;
}

.page-links > span {
  background: var(--brand-600);
  border-color: transparent;
  color: #fff;
}

/* --- Post grid & cards ---------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
}

.post-card__title {
  font-size: 1.16rem;
}

.post-card__title a {
  transition: color var(--dur-fast);
}

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

.post-card p {
  font-size: 0.93rem;
}

.post-card .link-cta {
  margin-top: auto;
  padding-top: 8px;
}

/* --- Pagination ------------------------------------------------------ */

.pagination {
  margin-top: clamp(40px, 5vw, 64px);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.pagination .page-numbers:hover {
  color: var(--text);
  border-color: rgba(109, 124, 255, 0.5);
}

.pagination .page-numbers.current {
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500));
  border-color: transparent;
  color: #fff;
}

/* --- Post navigation ------------------------------------------------ */

.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.post-nav a {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur) var(--ease-out);
}

.post-nav a:hover {
  color: var(--text);
  border-color: rgba(109, 124, 255, 0.45);
  transform: translateY(-3px);
}

.post-nav__next {
  text-align: right;
}

/* --- Sidebar & widgets ---------------------------------------------- */

.sidebar .widget {
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}

.widget__title,
.sidebar h2,
.footer__col h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 18px;
}

.sidebar ul {
  display: grid;
  gap: 10px;
}

.sidebar ul li a {
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color var(--dur-fast);
}

.sidebar ul li a:hover {
  color: var(--cyan-300);
}

.sidebar .tagcloud a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.82rem !important;
}

/* --- Search form ---------------------------------------------------- */

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--glass);
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.search-form__input::placeholder {
  color: var(--muted-dim);
}

.search-form__input:focus {
  outline: none;
  border-color: rgba(109, 124, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 95, 224, 0.22);
}

/* --- Comments ------------------------------------------------------- */

.comments-area {
  padding: clamp(24px, 3vw, 38px);
}

.comments-title {
  margin-bottom: 26px;
}

.comment-list {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.comment-list .children {
  margin-top: 18px;
  padding-inline-start: clamp(14px, 3vw, 34px);
  border-inline-start: 1px solid var(--line);
}

.comment-body {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  color: var(--text);
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
  margin-bottom: 14px;
}

.comment-metadata a {
  color: inherit;
}

.reply a {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-300);
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--glass);
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(109, 124, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 95, 224, 0.22);
}

.comment-form .submit {
  justify-self: start;
}

.comment-notes,
.logged-in-as,
.form-allowed-tags {
  font-size: 0.84rem;
  color: var(--muted-dim);
}

/* --- WordPress core classes ----------------------------------------- */

.alignleft {
  float: left;
  margin: 0 26px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 26px;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignwide {
  margin-inline: clamp(-60px, -4vw, 0px);
  max-width: none;
  width: auto;
}

.alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted-dim);
  text-align: center;
}

.sticky .post-card__title::after {
  content: "★";
  margin-inline-start: 8px;
  color: var(--amber-400);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--ink-800);
  border-radius: var(--r-xs);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--text);
  display: block;
  font-size: 0.9rem;
  height: auto;
  left: 16px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 16px;
  width: auto;
  z-index: 100000;
}

.wp-block-image img,
.wp-block-gallery img {
  border-radius: var(--r-md);
}

.wp-block-button__link {
  border-radius: var(--r-full);
}

/* Custom logo wrapper: WP prints an <a>; make it behave like our brand link. */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  height: 56px;
  width: auto;
  filter: brightness(2.05) saturate(1.3) contrast(1.05) drop-shadow(0 0 16px rgba(109, 124, 255, 0.6));
  transition: height var(--dur) var(--ease-out);
}

.nav.is-stuck .custom-logo {
  height: 44px;
}

[data-theme="light"] .custom-logo {
  filter: drop-shadow(0 3px 12px rgba(79, 95, 224, 0.22));
}

.footer__brand .custom-logo {
  height: 52px;
}

/* --- 404 ------------------------------------------------------------- */

.error-404 {
  padding-top: clamp(140px, 16vw, 190px);
}

.error-404 h1 {
  margin-bottom: 6px;
}

/* --- Full-width template -------------------------------------------- */

.site-main--full .entry-content {
  max-width: none;
}
