/*
Theme Name: Reclutafy
Theme URI: https://reclutafy.com
Author: HR Talent
Author URI: https://hr-talent.net
Description: Theme profesional para gestión de candidatos en procesos de reclutamiento y selección. Integra vacantes públicas, formulario de aplicación, panel del reclutador con pipeline Kanban y evaluación psicométrica automatizada. Diseño editorial "Expediente" con paletas de color intercambiables (Pro). Diseñado para trabajar con el plugin Pruebas Psicométricas de HR Talent.
Version: 3.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reclutafy
Tags: business, recruitment, hr, careers, dashboard, full-width-template, custom-colors, custom-menu, threaded-comments, translation-ready
*/

/* ==========================================================================
   Design tokens — Reclutafy · Diseño "Expediente"
   Paleta por defecto: Expediente (papel crema + tinta + verde azulado)
   Las paletas Pro (Azul Corporativo, Grafito Ejecutivo) sobreescriben estos
   tokens vía inc/palettes.php.
   ========================================================================== */
:root {
    /* Marca / acción */
    --rfy-primary: #1C1917;         /* tinta: color de acción principal */
    --rfy-primary-dark: #000000;
    --rfy-primary-light: #44403C;
    --rfy-accent: #0F766E;          /* verde azulado (teal) */
    --rfy-red: #C1442E;             /* sello rojo */
    --rfy-marker: #F5D547;          /* marcador amarillo */

    /* Neutros / superficies */
    --rfy-ink: #1C1917;             /* texto principal */
    --rfy-ink-2: #33302C;
    --rfy-muted: #57534E;
    --rfy-muted-2: #8A8377;
    --rfy-line: #D6CDBB;
    --rfy-line-2: #C9BFA9;
    --rfy-bg: #F6F1E7;              /* papel */
    --rfy-bg-alt: #EFE8D9;          /* papel sombreado */
    --rfy-white: #FDFBF5;           /* superficie de tarjeta ("papel bond") */
    --rfy-card: #FDFBF5;

    /* Semánticos */
    --rfy-success: #0F766E;
    --rfy-warning: #B45309;
    --rfy-danger: #C1442E;
    --rfy-info: #1D4ED8;

    /* Etapas del pipeline (Kanban) */
    --rfy-stage-new: #57534E;
    --rfy-stage-screening: #0891b2;
    --rfy-stage-tests: #7c3aed;
    --rfy-stage-interview: #eab308;
    --rfy-stage-offer: #16a34a;
    --rfy-stage-hired: #059669;
    --rfy-stage-rejected: #ef4444;

    /* Tipografía */
    --rfy-font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rfy-font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --rfy-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Escala tipográfica */
    --rfy-fs-xs: 12px;
    --rfy-fs-sm: 13.5px;
    --rfy-fs-base: 15px;
    --rfy-fs-lg: 17px;
    --rfy-fs-xl: 20px;
    --rfy-fs-2xl: 24px;
    --rfy-fs-3xl: 30px;
    --rfy-fs-4xl: 38px;
    --rfy-fs-5xl: 48px;
    --rfy-fs-6xl: 60px;

    /* Radios — el Expediente es de esquinas rectas */
    --rfy-radius-sm: 0px;
    --rfy-radius: 0px;
    --rfy-radius-lg: 0px;
    --rfy-radius-xl: 0px;

    /* Bordes y sombras duras (offset sólido, estilo sello/papel) */
    --rfy-border: 2px solid var(--rfy-ink);
    --rfy-shadow-sm: 3px 3px 0 rgba(28, 25, 23, 0.12);
    --rfy-shadow: 6px 6px 0 rgba(28, 25, 23, 0.14);
    --rfy-shadow-lg: 9px 9px 0 rgba(28, 25, 23, 0.16);

    /* Espaciado del layout */
    --rfy-container: 1200px;
    --rfy-container-narrow: 960px;
    --rfy-gutter: 24px;
}

/* ==========================================================================
   Reset ligero
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--rfy-font-sans);
    font-size: var(--rfy-fs-base);
    line-height: 1.65;
    color: var(--rfy-ink);
    background: var(--rfy-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grano de papel sutil sobre todo el sitio */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.rfy-main, .rfy-site-header, .rfy-footer { position: relative; z-index: 1; }

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--rfy-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rfy-ink); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rfy-font-heading);
    color: var(--rfy-ink);
    line-height: 1.12;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
h1 { font-size: var(--rfy-fs-5xl); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: var(--rfy-fs-4xl); font-weight: 900; }
h3 { font-size: var(--rfy-fs-2xl); }
h4 { font-size: var(--rfy-fs-xl); }
p  { margin: 0 0 16px; }

/* Resaltado tipo marcador (útil en héroes y CTAs) */
.rfy-hl {
    background: linear-gradient(180deg, transparent 55%, var(--rfy-marker) 55%, var(--rfy-marker) 92%, transparent 92%);
    padding: 0 2px;
}

/* Container */
.rfy-container {
    max-width: var(--rfy-container);
    margin: 0 auto;
    padding: 0 var(--rfy-gutter);
}
.rfy-container--narrow { max-width: var(--rfy-container-narrow); }

/* Botones — estilo brutalista con sombra dura desplazada */
.rfy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--rfy-radius);
    font-family: var(--rfy-font-mono);
    font-weight: 600;
    font-size: var(--rfy-fs-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 2px solid var(--rfy-ink);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}
.rfy-btn:hover { transform: translate(-2px, -2px); }
.rfy-btn--primary {
    background: var(--rfy-primary);
    color: var(--rfy-bg);
    box-shadow: 5px 5px 0 var(--rfy-accent);
}
.rfy-btn--primary:hover {
    background: var(--rfy-primary-dark);
    color: var(--rfy-bg);
    box-shadow: 7px 7px 0 var(--rfy-accent);
}
.rfy-btn--ghost {
    background: transparent;
    color: var(--rfy-ink);
    border-color: var(--rfy-ink);
    box-shadow: 5px 5px 0 rgba(28, 25, 23, 0.15);
}
.rfy-btn--ghost:hover {
    background: var(--rfy-card);
    color: var(--rfy-ink);
    box-shadow: 7px 7px 0 rgba(28, 25, 23, 0.2);
}
.rfy-btn--white {
    background: var(--rfy-marker);
    color: var(--rfy-ink);
    border-color: var(--rfy-ink);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}
.rfy-btn--white:hover {
    background: var(--rfy-marker);
    color: var(--rfy-ink);
}
.rfy-btn--lg { padding: 16px 30px; font-size: var(--rfy-fs-base); }

/* Chips — etiquetas de archivo en monoespaciada */
.rfy-chip {
    display: inline-flex; align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--rfy-font-mono);
    font-size: var(--rfy-fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--rfy-bg-alt);
    color: var(--rfy-ink-2);
    border: 1.5px solid var(--rfy-line-2);
}
.rfy-chip--accent  { background: rgba(15, 118, 110, 0.08); color: var(--rfy-accent); border-color: var(--rfy-accent); }
.rfy-chip--success { background: rgba(15, 118, 110, 0.08); color: var(--rfy-success); border-color: var(--rfy-success); }
.rfy-chip--warning { background: rgba(180, 83, 9, 0.08); color: var(--rfy-warning); border-color: var(--rfy-warning); }

/* Sello de goma (disponible para plantillas y contenido) */
.rfy-stamp {
    display: inline-block;
    font-family: var(--rfy-font-mono);
    font-weight: 600;
    font-size: var(--rfy-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rfy-red);
    border: 3px double var(--rfy-red);
    border-radius: 6px;
    padding: 6px 14px;
    transform: rotate(-3deg);
}
.rfy-stamp--accent { color: var(--rfy-accent); border-color: var(--rfy-accent); }

/* ==========================================================================
   Site header — barra de expediente
   ========================================================================== */
.rfy-site-header {
    background: var(--rfy-bg);
    border-bottom: 2px solid var(--rfy-ink);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 100;
}
.rfy-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.rfy-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rfy-font-heading);
    font-weight: 900;
    font-size: 21px;
    color: var(--rfy-ink);
    letter-spacing: -0.02em;
}
.rfy-brand__mark {
    width: 34px; height: 34px;
    background: var(--rfy-ink);
    border: 2px solid var(--rfy-ink);
    border-radius: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rfy-bg); font-weight: 900;
    font-family: var(--rfy-font-heading);
    font-size: 17px;
    box-shadow: 3px 3px 0 var(--rfy-accent);
}
.rfy-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0; padding: 0;
}
.rfy-nav a {
    color: var(--rfy-muted);
    font-family: var(--rfy-font-mono);
    font-weight: 500;
    font-size: var(--rfy-fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rfy-nav a:hover { color: var(--rfy-ink); }
.rfy-header-cta { display: inline-flex; gap: 10px; align-items: center; }

/* Selector de idioma */
.rfy-lang {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    background: var(--rfy-bg-alt);
    border: 1.5px solid var(--rfy-line-2);
    border-radius: 4px;
    font-size: 12px;
    align-items: center;
}
.rfy-lang__item {
    padding: 4px 10px;
    border-radius: 3px;
    color: var(--rfy-muted);
    font-family: var(--rfy-font-mono);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
}
.rfy-lang__item:hover { color: var(--rfy-ink); }
.rfy-lang__item.is-active {
    background: var(--rfy-ink);
    color: var(--rfy-bg);
}
.rfy-lang__item.is-active:hover { color: var(--rfy-bg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.rfy-hero {
    background: var(--rfy-bg);
    border-bottom: 2px solid var(--rfy-ink);
    padding: 80px 0 90px;
    overflow: hidden;
    position: relative;
}
.rfy-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}
.rfy-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--rfy-accent);
    padding: 0;
    border-radius: 0;
    font-family: var(--rfy-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.rfy-hero__eyebrow::before {
    content: "";
    width: 34px; height: 2px;
    background: var(--rfy-accent);
}
.rfy-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.06;
    margin-bottom: 20px;
}
.rfy-hero h1 em {
    font-style: normal;
    color: var(--rfy-ink);
    background: linear-gradient(180deg, transparent 55%, var(--rfy-marker) 55%, var(--rfy-marker) 92%, transparent 92%);
    padding: 0 2px;
}
.rfy-hero__lead {
    font-size: var(--rfy-fs-lg);
    color: var(--rfy-muted);
    max-width: 520px;
    margin-bottom: 28px;
}
.rfy-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.rfy-hero__proof {
    display: flex; gap: 28px; margin-top: 34px;
    color: var(--rfy-muted);
    font-family: var(--rfy-font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
}
.rfy-hero__proof strong {
    color: var(--rfy-ink);
    display: block;
    font-family: var(--rfy-font-heading);
    font-weight: 900;
    font-size: 24px;
}

/* Panel ilustrativo del hero — carpeta de expediente */
.rfy-hero__illus {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--rfy-card);
    border: 2px solid var(--rfy-ink);
    border-radius: 0;
    box-shadow: var(--rfy-shadow-lg);
    overflow: hidden;
    transform: rotate(1deg);
}
.rfy-hero__illus::before {
    content: "EXPEDIENTE / CANDIDATOS";
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 10px 18px;
    background: var(--rfy-bg-alt);
    border-bottom: 2px solid var(--rfy-ink);
    font-family: var(--rfy-font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--rfy-muted);
}
.rfy-hero__illus::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--rfy-line) 0 8px, transparent 8px 14px);
}

/* Tarjetas ilustrativas dentro del hero */
.rfy-hero__chips {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 56px 26px 34px;
}
.rfy-hero__mock {
    background: var(--rfy-bg);
    border: 2px solid var(--rfy-ink);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.15);
    padding: 14px 16px;
    color: var(--rfy-ink-2);
    font-size: 13px;
    max-width: 270px;
}
.rfy-hero__mock strong {
    font-family: var(--rfy-font-heading);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
    color: var(--rfy-ink);
}
.rfy-hero__mock--right { align-self: flex-end; transform: rotate(-1deg); }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.rfy-section { padding: 90px 0; }
.rfy-section--alt { background: var(--rfy-bg-alt); border-top: 2px solid var(--rfy-ink); border-bottom: 2px solid var(--rfy-ink); }
.rfy-section__head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.rfy-section__eyebrow {
    color: var(--rfy-red);
    font-family: var(--rfy-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.rfy-section h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 14px; }
.rfy-section__head p { color: var(--rfy-muted); font-size: var(--rfy-fs-lg); }

/* Grid de features — carpetas con borde y sombra dura */
.rfy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.rfy-feature {
    background: var(--rfy-card);
    border: 2px solid var(--rfy-ink);
    border-radius: 0;
    padding: 26px;
    box-shadow: var(--rfy-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rfy-feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--rfy-shadow);
    border-color: var(--rfy-ink);
}
.rfy-feature__icon {
    width: 44px; height: 44px;
    border-radius: 0;
    background: var(--rfy-ink);
    border: 2px solid var(--rfy-ink);
    color: var(--rfy-bg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    box-shadow: 3px 3px 0 var(--rfy-accent);
}
.rfy-feature h3 { font-size: var(--rfy-fs-xl); margin-bottom: 8px; font-weight: 600; }
.rfy-feature p { color: var(--rfy-muted); font-size: var(--rfy-fs-sm); margin: 0; line-height: 1.65; }

/* Steps — hoja de proceso numerada */
.rfy-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: rfy-step;
}
.rfy-step {
    padding: 26px 22px;
    background: var(--rfy-card);
    border-radius: 0;
    border: 2px solid var(--rfy-ink);
    box-shadow: var(--rfy-shadow-sm);
    position: relative;
    counter-increment: rfy-step;
}
.rfy-step::before {
    content: counter(rfy-step, decimal-leading-zero);
    display: block;
    font-family: var(--rfy-font-heading);
    color: var(--rfy-red);
    font-weight: 900;
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 10px;
}
.rfy-step h4 { margin: 0 0 6px; font-size: var(--rfy-fs-lg); font-family: var(--rfy-font-sans); font-weight: 600; }
.rfy-step p  { margin: 0; color: var(--rfy-muted); font-size: var(--rfy-fs-sm); }

/* CTA final — bloque de tinta */
.rfy-cta {
    background: var(--rfy-ink);
    color: var(--rfy-bg);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--rfy-ink);
}
.rfy-cta h2 { color: var(--rfy-bg); font-size: clamp(28px, 4vw, 42px); }
.rfy-cta p { color: var(--rfy-line-2); font-size: var(--rfy-fs-lg); max-width: 620px; margin: 0 auto 28px; }

/* ==========================================================================
   Footer — cierre de expediente
   ========================================================================== */
.rfy-footer {
    background: var(--rfy-ink);
    color: var(--rfy-line-2);
    padding: 60px 0 30px;
    font-size: var(--rfy-fs-sm);
}
.rfy-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.rfy-footer h5 {
    color: var(--rfy-bg);
    font-family: var(--rfy-font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 600;
}
.rfy-footer a { color: var(--rfy-line-2); }
.rfy-footer a:hover { color: var(--rfy-bg); }
.rfy-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rfy-footer__bottom {
    padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--rfy-font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--rfy-muted-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .rfy-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .rfy-hero__illus { transform: none; }
    .rfy-steps { grid-template-columns: repeat(2, 1fr); }
    .rfy-nav { display: none; }
    .rfy-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .rfy-steps { grid-template-columns: 1fr; }
    .rfy-footer__grid { grid-template-columns: 1fr; }
    h1, .rfy-hero h1 { font-size: 34px; }
    .rfy-section { padding: 60px 0; }
    .rfy-hero { padding: 50px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .rfy-btn, .rfy-feature, .rfy-step { transition: none; }
}
