/*
Theme Name: Desafío Coleguitas
Theme URI: https://desafiocoleguitas.cl/
Author: Club Coleguitas
Description: Tema liviano para cursos, desafíos y microlearning de seguridad laboral.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: desafio-coleguitas
*/

:root {
	--dc-green: #20733a;
	--dc-green-bright: #57b547;
	--dc-green-soft: #edf7ef;
	--dc-ink: #14283d;
	--dc-ink-deep: #0c1d2d;
	--dc-orange: #f5a623;
	--dc-cream: #f6f8f4;
	--dc-line: #dce7df;
	--dc-text: #263740;
	--dc-white: #fff;
	--dc-shadow: 0 18px 55px rgba(12, 29, 45, .10);
	--dc-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--dc-text); background: var(--dc-cream); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--dc-green); text-decoration: none; }
a:hover { color: var(--dc-ink); }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dc-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.dc-site-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--dc-line); backdrop-filter: blur(14px); }
.admin-bar .dc-site-header { top: 32px; }
.dc-header-row { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.dc-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--dc-ink); flex: 0 0 auto; }
.dc-brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border: 3px solid var(--dc-green); border-radius: 50%; background: var(--dc-white); box-shadow: 0 5px 15px rgba(32,115,58,.14); }
.dc-brand-mark::before { content: ""; width: 24px; height: 10px; border-radius: 7px; background: linear-gradient(90deg, var(--dc-green) 0 58%, var(--dc-orange) 58%); box-shadow: 0 -8px 0 -2px var(--dc-green-bright); }
.dc-brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.dc-brand small { display: block; color: #66776f; font-size: .75rem; }
.dc-nav { margin-left: auto; }
.dc-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.dc-nav a { display: block; padding: 11px 13px; color: var(--dc-ink); border-radius: 12px; font-size: .92rem; font-weight: 750; }
.dc-nav a:hover, .dc-nav .current-menu-item > a { color: var(--dc-green); background: var(--dc-green-soft); }
.dc-account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; color: var(--dc-white); background: var(--dc-green); border-radius: 14px; font-weight: 800; white-space: nowrap; }
.dc-account-link:hover { color: var(--dc-white); background: var(--dc-ink); }
.dc-nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--dc-line); border-radius: 12px; background: var(--dc-white); color: var(--dc-ink); font-size: 1.4rem; }

.dc-main { min-height: 65vh; }
.dc-hero { position: relative; overflow: hidden; padding: 88px 0 78px; color: var(--dc-white); background: linear-gradient(125deg, var(--dc-ink-deep), #143f35 62%, var(--dc-green)); }
.dc-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -210px; border: 72px solid rgba(255,255,255,.07); border-radius: 50%; }
.dc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 58px; align-items: center; }
.dc-kicker { margin: 0 0 14px; color: #9ee58e; font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.dc-hero h1 { max-width: 800px; margin: 0 0 22px; color: var(--dc-white); font-size: clamp(2.6rem, 5.3vw, 5.1rem); line-height: .98; letter-spacing: -.055em; }
.dc-hero-copy > p:not(.dc-kicker) { max-width: 690px; margin: 0; color: #dce9e4; font-size: clamp(1.02rem, 1.7vw, 1.25rem); }
.dc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; color: var(--dc-ink-deep); background: var(--dc-orange); font-weight: 850; }
.dc-button:hover { color: var(--dc-ink-deep); background: #ffc45a; transform: translateY(-1px); }
.dc-button.secondary { color: var(--dc-white); background: transparent; border-color: rgba(255,255,255,.35); }
.dc-button.secondary:hover { color: var(--dc-white); background: rgba(255,255,255,.1); }
.dc-hero-panel { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.1); box-shadow: 0 28px 80px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.dc-hero-panel strong { display: block; margin-bottom: 18px; font-size: 1.15rem; }
.dc-hero-panel ul { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.dc-hero-panel li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: #e8f3ee; }
.dc-hero-panel li span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--dc-ink-deep); background: #9ee58e; border-radius: 50%; font-weight: 900; }

.dc-section { padding: 74px 0; }
.dc-section.white { background: var(--dc-white); }
.dc-section-head { display: grid; grid-template-columns: 1fr minmax(260px,430px); gap: 36px; align-items: end; margin-bottom: 34px; }
.dc-section-head h2 { margin: 0; color: var(--dc-ink); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; }
.dc-section-head p { margin: 0; }
.dc-section-head .dc-kicker { color: var(--dc-green); margin-bottom: 8px; }
.dc-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.dc-feature { padding: 28px; border: 1px solid var(--dc-line); border-radius: var(--dc-radius); background: var(--dc-white); box-shadow: 0 12px 34px rgba(12,29,45,.05); }
.dc-feature b { width: 46px; height: 46px; display: grid; place-items: center; color: var(--dc-white); background: var(--dc-green); border-radius: 15px; }
.dc-feature h3 { margin: 18px 0 8px; color: var(--dc-ink); }
.dc-feature p { margin: 0; }
.dc-shortcode-area > :first-child { margin-top: 0; }

.dc-content-shell { width: min(980px, calc(100% - 40px)); min-height: 60vh; margin: 54px auto 76px; padding: clamp(24px,5vw,58px); background: var(--dc-white); border: 1px solid var(--dc-line); border-radius: 28px; box-shadow: var(--dc-shadow); }
.dc-content-shell h1 { color: var(--dc-ink); font-size: clamp(2.1rem,4vw,3.6rem); line-height: 1.05; letter-spacing: -.04em; }
.dc-entry-content { font-size: 1.04rem; }
.dc-entry-content > *:first-child { margin-top: 0; }
.dc-entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }

.dc-site-footer { padding: 58px 0 28px; color: #cfddd7; background: var(--dc-ink-deep); }
.dc-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 42px; }
.dc-site-footer .dc-brand { color: var(--dc-white); }
.dc-site-footer .dc-brand small { color: #aabdb5; }
.dc-site-footer h3 { margin-top: 0; color: var(--dc-white); font-size: 1rem; }
.dc-site-footer ul { padding: 0; margin: 0; list-style: none; }
.dc-site-footer li + li { margin-top: 8px; }
.dc-site-footer a { color: #cfddd7; }
.dc-site-footer a:hover { color: #9ee58e; }
.dc-footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

@media (max-width: 980px) {
	.admin-bar .dc-site-header { top: 46px; }
	.dc-nav-toggle { display: inline-grid; place-items: center; }
	.dc-nav { position: absolute; display: none; left: 20px; right: 20px; top: 70px; padding: 12px; background: var(--dc-white); border: 1px solid var(--dc-line); border-radius: 18px; box-shadow: var(--dc-shadow); }
	.dc-nav.is-open { display: block; }
	.dc-nav ul { display: grid; }
	.dc-account-link { display: none; }
	.dc-hero-grid, .dc-section-head { grid-template-columns: 1fr; }
	.dc-hero-panel { max-width: 620px; }
	.dc-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.dc-wrap { width: min(100% - 28px,1180px); }
	.dc-header-row { min-height: 68px; }
	.dc-brand small { display: none; }
	.dc-hero { padding: 60px 0; }
	.dc-hero-grid { gap: 34px; }
	.dc-hero h1 { font-size: clamp(2.45rem,13vw,3.55rem); }
	.dc-actions { display: grid; }
	.dc-button { width: 100%; }
	.dc-section { padding: 54px 0; }
	.dc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.dc-content-shell { width: calc(100% - 20px); margin: 20px auto 48px; border-radius: 20px; }
}
