/*
Theme Name: Welding Steel Kraken
Theme URI: https://weldingsteelkraken.com
Author: WeldingSteel Kraken LLC
Description: Tema a medida para WeldingSteel Kraken LLC. Mano de obra naval: Inicio, Empresas, Trabajadores, vacantes editables, formularios y versión en español e inglés.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Propietario
Text Domain: kraken
*/

:root {
	--navy: #0B1622;
	--navy-2: #12212F;
	--navy-3: #070F17;
	--line: #1F3344;
	--line-2: #3A5266;
	--text: #E8EEF3;
	--text-2: #C9D4DE;
	--muted: #B6C4D1;
	--muted-2: #9FB1C1;
	--light: #F2F4F6;
	--light-line: #DCE2E8;
	--ink: #0B1622;
	--ink-2: #2E4153;
	--ink-3: #44576A;
	--accent: #FF7A2E;
	--accent-dark: #B8460B;
	--green: #5FD39A;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #FFA266; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; }
p { margin: 0; }
ul { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; color: var(--ink); padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; }
.light { background: var(--light); color: var(--ink); }
.border-top { border-top: 1px solid var(--line); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.light .eyebrow { color: var(--accent-dark); }
.eyebrow--line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.eyebrow--line::before { content: ""; width: 44px; height: 2px; background: var(--accent); }
.eyebrow--live { display: flex; align-items: center; gap: 8px; color: var(--green); }
.eyebrow--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.h2 { font-size: clamp(36px, 5vw, 52px); }
.lead { font-size: 17px; color: var(--muted); }
.light .lead { color: var(--ink-2); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.head-row > div { max-width: 680px; }
.head-row > p { max-width: 420px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 4px; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #FF9150; color: var(--ink); }
.btn--ghost { border-color: rgba(232, 238, 243, 0.5); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1B2D3E; color: #fff; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header + hero */
.hero { background-color: var(--navy); background-size: cover; background-position: center; }
.hero--inicio { background-image: linear-gradient(90deg, rgba(11,22,34,.94) 0%, rgba(11,22,34,.82) 45%, rgba(11,22,34,.55) 100%), url(assets/img/astillero.jpg); }
.hero--empresas { background-image: linear-gradient(90deg, rgba(11,22,34,.95) 0%, rgba(11,22,34,.84) 50%, rgba(11,22,34,.6) 100%), url(assets/img/casco.jpg); }
.hero--trabajadores { background-image: linear-gradient(90deg, rgba(11,22,34,.95) 0%, rgba(11,22,34,.84) 50%, rgba(11,22,34,.6) 100%), url(assets/img/andamios.jpg); }
.hero--plain { background: var(--navy); }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; border-bottom: 1px solid rgba(232, 238, 243, 0.14); }
.admin-bar .site-header { top: 32px; }
.site-header.menu-open { background: var(--navy); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-logo img { height: 88px; width: auto; }
.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid rgba(232, 238, 243, 0.35); border-radius: 4px; overflow: hidden; }
.lang-switch a { padding: 8px 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--text-2); text-decoration: none; min-width: 40px; text-align: center; }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--ink); }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(232, 238, 243, 0.35); color: var(--text); border-radius: 4px; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }

.hero__body { padding-top: 248px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 96px; }
.hero__text { display: flex; flex-direction: column; gap: 28px; max-width: 840px; }
.hero h1 { font-size: clamp(52px, 8vw, 92px); line-height: .92; }
.hero--trabajadores h1 { font-size: clamp(64px, 10vw, 110px); }
.hero__lead { font-size: 19px; color: var(--text-2); max-width: 640px; }
.hero__tags { border-top: 1px solid rgba(232, 238, 243, 0.18); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 48px; font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--text-2); text-transform: uppercase; }
.hero--sub .hero__body { padding-top: 232px; padding-bottom: 96px; }

.band { background: var(--accent); color: var(--ink); }
.band .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.card { border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card--dark { background: var(--navy-2); border: 1px solid var(--line); }
.card--white { background: #fff; border: 1px solid var(--light-line); color: var(--ink); }
.card--navy { background: var(--navy); color: var(--text); }
.card h3 { font-size: 28px; }
.card p { font-size: 15px; color: var(--muted); }
.card--white p, .light .card p { color: var(--ink-3); }
.card--navy p, .light .card--navy p { color: var(--muted); }
.card .num { font-family: var(--display); font-weight: 700; font-size: 56px; color: var(--accent); line-height: 1; }
.card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.path-card { padding: 44px; gap: 18px; }
.path-card h3 { font-size: 40px; }

.weld { background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; padding: 40px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.weld h3 { font-size: 34px; }
.weld__item { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.weld__item strong { font-family: var(--display); font-weight: 600; font-size: 24px; }
.weld p { font-size: 15px; color: var(--muted); }

.trade { background: var(--light); color: var(--ink); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.trade__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trade__top img { width: 64px; height: 64px; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--ink-3); background: #E2E7EC; padding: 6px 10px; border-radius: 20px; text-transform: uppercase; }
.trade h3 { font-size: 28px; }
.trade p { font-size: 15px; color: var(--ink-3); }

.about { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--muted); }
.about__text strong { color: var(--text); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 6px; }
.gallery figcaption { font-size: 13px; color: var(--muted-2); }

.client { background: #fff; border: 1px solid var(--light-line); border-radius: 6px; padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.client strong { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.client span { font-size: 14px; color: var(--ink-3); min-height: 1.5em; }

/* Carrusel de clientes */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: kr-marquee 45s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee .client { flex: none; width: 280px; transition: border-color .2s, transform .2s; }
.marquee .client:hover { border-color: var(--accent); transform: translateY(-2px); }
@keyframes kr-marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 600px) { .marquee .client { width: 220px; padding: 20px; } .marquee .client strong { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.marquee__track { animation: none; padding: 0 24px; }
	.marquee .client[aria-hidden="true"] { display: none; }
}

.place { background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; align-items: flex-start; gap: 14px; }
.place svg { flex: none; color: var(--accent); }
.place strong { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1; }
.place span { font-size: 14px; color: var(--muted-2); }

.board { border: 1px solid var(--line); border-radius: 6px; padding: 56px; display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; background: var(--navy-2); }
.board h2 { font-size: clamp(44px, 6vw, 64px); line-height: .95; }
.board img { width: 100%; height: 400px; object-fit: cover; border-radius: 6px; }

.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-top: 3px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step small { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--muted-2); }
.step h3 { font-size: 26px; }
.step p { font-size: 15px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.split__main { flex: 999 1 560px; min-width: 0; }
.checks { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { border-top: 1px solid #C9D2DB; position: relative; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.check::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; background: var(--accent); }
.check h3 { font-family: var(--body); text-transform: none; font-size: 18px; font-weight: 600; }
.check p { font-size: 15px; color: var(--ink-3); }

.strip { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--muted-2); }
.strip b { letter-spacing: 2px; color: var(--text); font-weight: 600; }
.strip b.live { color: var(--green); }

/* Vacantes */
.badge-live { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #146C43; background: #DDF3E7; padding: 8px 14px; border-radius: 20px; }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--light-line); padding: 8px 12px; border-radius: 20px; }
.chips--req li { color: #7A2E05; background: #FDEBDD; border-color: #FDEBDD; }
.jobs { display: flex; flex-direction: column; gap: 14px; }
.job { background: #fff; border: 1px solid var(--light-line); border-radius: 6px; color: var(--ink); }
.job.is-open { border-color: var(--ink); }
.job__head { width: 100%; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.job__status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #146C43; }
.job__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5F; }
.job__title { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.job__title strong { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.job__place { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-3); }
.job__tag { font-size: 13px; font-weight: 600; background: #EEF1F4; padding: 8px 12px; border-radius: 4px; }
.job__chev { width: 44px; height: 44px; border-radius: 4px; background: #EEF1F4; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.job__chev svg { transition: transform .2s; }
.job.is-open .job__chev { background: var(--ink); color: #fff; }
.job.is-open .job__chev svg { transform: rotate(180deg); }
.job__body { padding: 0 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.job__body[hidden] { display: none; }
.job__desc { padding-top: 20px; border-top: 1px solid var(--light-line); font-size: 16px; color: var(--ink-2); }
.job__label { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--ink-3); text-transform: uppercase; }
.job__roles { list-style: none; padding: 0; }
.job__roles li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--light-line); }
.job__roles svg { flex: none; color: var(--accent-dark); }
.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 17px; font-weight: 600; }
.empty-jobs { background: #fff; border: 1px dashed var(--line-2); border-radius: 6px; padding: 32px; color: var(--ink-2); }

/* Forms */
.form-wrap { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.form { border-radius: 6px; padding: 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form--dark { background: var(--navy-2); border: 1px solid var(--line); }
.form--light { background: #fff; border: 1px solid var(--light-line); color: var(--ink); }
.form label, .form .field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.form--dark label { color: var(--muted); }
.form--light label, .form--light legend { color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 12px; border-radius: 4px; min-height: 48px; width: 100%; }
.form--dark input, .form--dark select, .form--dark textarea { background: var(--navy); border: 1px solid var(--line-2); color: var(--text); }
.form--light input, .form--light select, .form--light textarea { background: #fff; border: 1px solid #A9B6C2; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form fieldset { margin: 0; border: 1px solid var(--light-line); border-radius: 4px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.form fieldset label { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; }
.form fieldset input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.form input[type="file"] { border-style: dashed; }
.form button { grid-column: 1 / -1; border: 0; }
.form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 4px; font-weight: 600; }
.notice--ok { background: #DDF3E7; color: #0E5233; }
.notice--err { background: #FDE2E1; color: #8A1C17; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.contact-lines a { color: var(--text); text-decoration: none; }
.light .contact-lines a { color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-3); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-cols { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--muted-2); }
.footer-col h2 { font-family: var(--body); text-transform: none; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.footer-col a { color: var(--muted-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-logo img { width: 150px; }
.footer-tagline { font-weight: 600; color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: #1FA855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wa-float:hover { background: #178C46; color: #fff; }

.page-content { padding-top: 200px; padding-bottom: 96px; max-width: 820px; }
.page-content h1 { font-size: 56px; margin-bottom: 24px; }
.page-content p { margin-bottom: 16px; color: var(--muted); }

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.site-nav { display: none; width: 100%; order: 3; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { border-bottom: 1px solid rgba(232, 238, 243, 0.1); border-left: 2px solid transparent; }
	.site-nav a[aria-current="page"] { border-bottom-color: rgba(232, 238, 243, 0.1); border-left-color: var(--accent); }
	.header-cta { display: none; }
	.site-logo img { height: 64px; }
	.hero__body, .hero--sub .hero__body { padding-top: 180px; }
}
@media (max-width: 600px) {
	.section { padding-top: 64px; padding-bottom: 64px; }
	.hero__body, .hero--sub .hero__body { padding-top: 150px; padding-bottom: 48px; gap: 56px; }
	.page-content { padding-top: 150px; }
	.admin-bar .site-header { top: 46px; }
	.board, .weld, .path-card, .form { padding: 28px 20px; }
	.board img { height: 260px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
