/*
Theme Name: TAIMX
Theme URI: https://taimx.com/
Author: TAIMX
Description: Tema a la medida de TAIMX (inglés corporativo). Paleta negro y dorado, tipografía Inter y secciones prediseñadas para el editor de bloques.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taimx
*/

:root {
  --tx-black: #171717; --tx-charcoal: #2F2F2F; --tx-gold: #FAAD1F; --tx-gold-light: #F6C65B;
  --tx-white: #FFFFFF; --tx-alt: #F5F5F3; --tx-body: #404040; --tx-muted: #737373; --tx-line: #D6D6D2; --tx-track: #E3E3DF;
  --tx-on-dark-body: #F2F2F2; --tx-on-dark-muted: #D1D1CD;
  --tx-shadow: 0 12px 36px rgba(0, 0, 0, .14);
}
body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--tx-gold); outline-offset: 3px; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Estructura */
.tx-band { padding-left: max(16px, 4vw) !important; padding-right: max(16px, 4vw) !important; }
.tx-wrap { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.tx-section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.tx-alt { background: var(--tx-alt); }
.tx-main, .tx-main > * { margin-block: 0 !important; }
.tx-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.tx-head > *, .tx-split > *, .tx-steps > *, .tx-programs > *, .tx-values > *, .tx-quotes > *, .tx-kpis > *, .tx-compare > * { margin-block: 0 !important; }
.tx-eyebrow { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-muted); }
.tx-lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 60ch; }
.wp-block-heading { text-wrap: balance; }
.tx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tx-split .tx-head { margin-bottom: 0; }
@media (max-width: 900px) { .tx-split { grid-template-columns: 1fr; } }

/* Botones */
.wp-block-button.is-style-ghost-light .wp-block-button__link { background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; padding: 16px 26px; }
.wp-block-button.is-style-ghost-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--tx-black); color: #FFFFFF; }
.wp-block-button.is-style-small .wp-block-button__link { padding: 12px 20px; font-size: 14px; }

/* Encabezado */
.tx-header { position: sticky; top: 0; z-index: 50; background: var(--tx-black); }
.admin-bar .tx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tx-header { top: 46px; } }
.tx-header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.tx-header-row > * { margin: 0 !important; }
.tx-logo, .tx-logo a { color: #FFFFFF !important; font-weight: 800; font-size: 26px; letter-spacing: -.02em; text-decoration: none; }
.tx-logo-img + .tx-logo { display: none; }
.tx-nav { margin-left: auto !important; color: var(--tx-on-dark-body); font-size: 15px; font-weight: 600; }
.tx-nav a { text-decoration: none; }
.tx-nav a:hover { color: var(--tx-gold-light); }
.tx-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tx-black) !important; color: #FFFFFF !important; }
.tx-nav .wp-block-navigation__responsive-container-open, .tx-nav .wp-block-navigation__responsive-container-close { color: #FFFFFF; }

/* Héroe */
.tx-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--tx-black), var(--tx-charcoal)); color: var(--tx-on-dark-body); }
.tx-hero::before, .tx-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.tx-hero::before { width: 520px; height: 520px; right: -140px; top: -220px; background: var(--tx-gold-light); opacity: .14; }
.tx-hero::after { width: 720px; height: 720px; right: -260px; bottom: -460px; background: var(--tx-gold); opacity: .12; }
.tx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.tx-hero-grid > *, .tx-hero-copy > * { margin-block: 0 !important; }
.tx-hero-copy { display: grid; gap: 24px; }
.tx-hero .tx-eyebrow { color: var(--tx-gold-light); }
.tx-hero h1 { color: #FFFFFF; letter-spacing: -.025em; }
.tx-hero .tx-lead { color: var(--tx-on-dark-body); }
.tx-ctas { gap: 16px; margin-top: 12px !important; }
.tx-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--tx-on-dark-muted); font-size: 15px; font-weight: 600; }
.tx-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tx-gold); margin-right: 10px; vertical-align: middle; }
@media (max-width: 900px) { .tx-hero-grid { grid-template-columns: 1fr; } }

.tx-report { background: #FFFFFF; color: var(--tx-body); border-radius: 28px; padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); min-width: 0; }
.tx-report-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.tx-report-meta h3 { margin: 0; color: var(--tx-black); font-size: 20px; }
.tx-report-meta span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-muted); }
.tx-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--tx-track); font-size: 16px; }
.tx-row strong { color: var(--tx-black); }
.tx-row span { font-size: 14px; font-weight: 800; color: var(--tx-black); font-variant-numeric: tabular-nums; }
.tx-bar { grid-column: 1 / -1; height: 12px; border-radius: 9px; background: var(--tx-track); overflow: hidden; }
.tx-bar i { display: block; height: 100%; border-radius: 9px; background: var(--tx-gold); }
.tx-report p { margin: 16px 0 0; font-size: 13px; color: var(--tx-muted); }

/* Comparación */
.tx-mark { background: linear-gradient(transparent 62%, var(--tx-gold-light) 62%); color: inherit; }
.tx-compare { display: grid; gap: 16px; }
.tx-cmp-head, .tx-cmp { display: grid; grid-template-columns: 1fr 1fr; }
.tx-cmp-head > *, .tx-cmp > * { margin: 0 !important; min-width: 0; }
.tx-cmp-head { padding: 0 22px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-muted); }
.tx-cmp { border: 1px solid var(--tx-line); border-radius: 24px; overflow: hidden; }
.tx-cmp p { padding: 18px 22px; font-size: 16px; line-height: 1.45; }
.tx-cmp p:first-child { color: var(--tx-muted); text-decoration: line-through; text-decoration-color: var(--tx-line); }
.tx-cmp p:last-child { background: var(--tx-alt); color: var(--tx-black); font-weight: 600; }

/* Método */
.tx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-step { background: #FFFFFF; border-radius: 24px; padding: 36px 32px; box-shadow: var(--tx-shadow); min-width: 0; }
.tx-step > * { margin-block: 0 0 10px !important; }
.tx-step-n { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--tx-gold); color: var(--tx-black); font-weight: 800; font-size: 20px; margin-bottom: 24px !important; }
.tx-step:nth-child(2) .tx-step-n { background: var(--tx-charcoal); color: #FFFFFF; }
.tx-step:nth-child(3) .tx-step-n { background: var(--tx-gold-light); }
.tx-step p:last-child { font-size: 17px; }
@media (max-width: 900px) { .tx-steps { grid-template-columns: 1fr; } }

/* Programas */
.tx-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-prog { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--tx-line); min-width: 0; }
.tx-prog > * { margin: 0 !important; }
.tx-prog-art { position: relative; overflow: hidden; aspect-ratio: 16 / 6; background: var(--tx-alt); border-bottom: 1px solid var(--tx-line); }
.tx-prog-art::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -8%; top: -55%; border-radius: 50%; background: var(--tx-gold); }
.tx-prog-art::before { content: ""; position: absolute; width: 18%; aspect-ratio: 1; left: 8%; bottom: 18%; border-radius: 50%; background: var(--tx-charcoal); }
.tx-prog-body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.tx-prog-body > * { margin: 0 !important; }
.tx-prog-body p { font-size: 17px; }
.tx-more { margin-top: auto !important; padding-top: 12px; }
.tx-more a { font-weight: 800; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--tx-black); }
.tx-more a:hover { text-decoration: underline; text-decoration-color: var(--tx-gold); text-decoration-thickness: 3px; }
.tx-prog.is-featured { border: 0; background: var(--tx-black); }
.tx-prog.is-featured .tx-prog-art { background: var(--tx-charcoal); border-color: transparent; }
.tx-prog.is-featured .tx-prog-art::after { background: var(--tx-gold-light); }
.tx-prog.is-featured .tx-prog-art::before { background: var(--tx-gold); }
.tx-prog.is-featured h3, .tx-prog.is-featured .tx-more a { color: #FFFFFF; }
.tx-prog.is-featured p { color: var(--tx-on-dark-body); }
.tx-prog.is-featured .tx-eyebrow { color: var(--tx-gold-light); }
@media (max-width: 900px) { .tx-programs { grid-template-columns: 1fr; } }

/* Recursos Humanos */
.tx-dark { background: var(--tx-black); color: var(--tx-on-dark-body); }
.tx-dark .tx-eyebrow { color: var(--tx-gold-light); }
.tx-dark h2 { color: #FFFFFF; }
.tx-dark .tx-split { align-items: center; }
.tx-arrows { list-style: none; padding: 0; margin: 32px 0 0 !important; display: grid; gap: 18px; }
.tx-arrows li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.tx-arrows li::before { content: "→"; color: var(--tx-gold); font-weight: 800; grid-row: span 2; }
.tx-arrows strong { color: #FFFFFF; display: block; }
.tx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tx-kpi { background: var(--tx-charcoal); border-radius: 24px; padding: 26px; min-width: 0; }
.tx-kpi > * { margin: 0 !important; }
.tx-kpi-v { color: #FFFFFF; font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tx-kpi-v small { font-size: 20px; color: var(--tx-gold-light); }
.tx-kpi-l { margin-top: 10px !important; font-size: 15px; color: var(--tx-on-dark-muted); }
.tx-kpi-note { grid-column: 1 / -1; font-size: 13px; color: var(--tx-on-dark-muted); }

/* Logos de clientes */
.tx-clients { padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--tx-line); }
.tx-clients-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.tx-clients-row > * { margin: 0 !important; }
.tx-clients-label { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-muted); }
.tx-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; flex: 1; }
.tx-slots > * { margin: 0 !important; }
.tx-slots p { flex: 1 1 140px; display: grid; place-items: center; min-height: 56px; border: 2px dashed var(--tx-line); border-radius: 12px; color: var(--tx-muted); font-size: 13px; font-weight: 600; }
.tx-slots img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .8; }

/* Testimonios */
.tx-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tx-quote { background: #FFFFFF; border-radius: 28px; padding: 36px; box-shadow: var(--tx-shadow); display: grid; gap: 20px; min-width: 0; }
.tx-quote > * { margin: 0 !important; }
.tx-quote-text { font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--tx-black); }
.tx-quote-who { font-size: 15px; color: var(--tx-muted); }
@media (max-width: 900px) { .tx-quotes { grid-template-columns: 1fr; } }

/* Valores */
.tx-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-val { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 3px solid var(--tx-black); min-width: 0; }
.tx-val > * { margin: 0 !important; }
.tx-val h3 { font-size: 22px; }
.tx-val p { font-size: 16px; }
@media (max-width: 1000px) { .tx-values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tx-values { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.tx-faq { grid-template-columns: .8fr 1.2fr; }
.tx-faq-list > * { margin: 0 !important; }
.tx-faq-list .wp-block-details { border-top: 1px solid var(--tx-line); padding: 22px 0; }
.tx-faq-list .wp-block-details:last-child { border-bottom: 1px solid var(--tx-line); }
.tx-faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 700; color: var(--tx-black); }
.tx-faq-list summary::-webkit-details-marker { display: none; }
.tx-faq-list summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--tx-muted); }
.tx-faq-list details[open] summary::after { content: "–"; }
.tx-faq-list details p { margin-top: 12px; font-size: 17px; max-width: 62ch; }
@media (max-width: 900px) { .tx-faq { grid-template-columns: 1fr; gap: 24px; } }

/* Contacto */
.tx-contact > div:first-child > * { margin-block: 0 0 20px !important; }
.tx-direct { display: grid; gap: 2px; margin-top: 8px !important; }
.tx-direct span { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-muted); }
.tx-direct a { font-size: 20px; font-weight: 700; color: var(--tx-black); text-decoration: none; }
.tx-form { background: #FFFFFF; border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--tx-shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.tx-f { display: grid; gap: 6px; min-width: 0; }
.tx-f.full { grid-column: 1 / -1; }
.tx-form label { font-size: 14px; font-weight: 700; color: var(--tx-black); }
.tx-form input, .tx-form select, .tx-form textarea { width: 100%; min-width: 0; box-sizing: border-box; font: 400 17px/1.4 Inter, Arial, sans-serif; color: var(--tx-black); background: #FFFFFF; border: 2px solid var(--tx-line); border-radius: 12px; padding: 12px 14px; }
.tx-form input:focus, .tx-form select:focus, .tx-form textarea:focus { outline: none; border-color: var(--tx-charcoal); }
.tx-form textarea { min-height: 110px; resize: vertical; }
.tx-form button { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; border-radius: 999px; background: var(--tx-black); color: #FFFFFF; font: 700 16px/1 Inter, Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; padding: 18px 28px; }
.tx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tx-msg { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; color: var(--tx-black); background: var(--tx-alt); border-radius: 12px; padding: 14px 16px; }
@media (max-width: 560px) { .tx-form { grid-template-columns: 1fr; } }

/* Páginas interiores */
.tx-page { max-width: none; }
.tx-page-title { margin-bottom: 32px !important; }

/* Pie */
.tx-footer { background: var(--tx-black); color: var(--tx-on-dark-muted); font-size: 15px; margin-top: 0 !important; }
.tx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.tx-footer-grid > * { margin: 0 !important; }
.tx-footer h4 { margin: 0 0 14px; color: #FFFFFF; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.tx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tx-footer a { color: var(--tx-on-dark-body); text-decoration: none; }
.tx-footer a:hover { color: var(--tx-gold-light); }
.tx-tagline { margin-top: 12px; max-width: 34ch; }
.tx-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #404040; font-size: 14px; }
.tx-legal > * { margin: 0 !important; }
@media (max-width: 800px) { .tx-footer-grid { grid-template-columns: 1fr; } }
