/* Sistema visual de kynectivemedia.com: Inter, bandas navy en degradado, eyebrows azules, keylines finas. */
:root {
	--black: #010101; --navy: #050c1a; --dark-grey: #344052; --line: #71829d; --mid-grey: #b0b0b0;
	--light-grey: #e7ebf0; --pale: #f7f8fa; --white: #fff; --ice: #d9f6f9;
	--blue: #0073c7; --blue-text: #006bb8; --bright-blue: #02a1cf; --cyan: #8cddff;
	--orange: #f5a419; --orange-on-light: #b45f00;
	--gradient: linear-gradient(246deg, #2758a3 0%, #010a1b 42%);
	--gutter: clamp(20px, 5.56vw, 80px);
	--greg: var(--blue); --ciaran: var(--orange); --pedro: var(--bright-blue);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 16px/1.4 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; }
.inner { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--blue-text); margin: 0; }
.band .eyebrow { color: var(--cyan); }

/* banda superior */
.band { background: var(--gradient); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.nav img { height: 30px; width: auto; display: block; }
.weeknav { display: flex; gap: 8px; align-items: center; }
.pill {
	display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgb(255 255 255 / .55); background: transparent; color: var(--white);
	border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.pill:hover { border-color: var(--white); }
.pill:disabled { opacity: .35; cursor: default; }
.pill.icon { padding: 8px; }
.pill option { color: var(--black); }
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); }
h1 { font-size: clamp(46px, 5.56vw, 80px); font-weight: 500; line-height: .98; letter-spacing: -.055em; margin: 18px 0 22px; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.53vw, 22px); line-height: 1.4; color: rgb(255 255 255 / .78); max-width: 52ch; margin: 0; white-space: pre-line; }
.summary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .78); }
.summary span { display: inline-flex; align-items: center; gap: 8px; }
.summary .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.summary .ok { color: var(--cyan); }
.summary .wait { color: var(--orange); }
.summary .warn { color: #ffb3a1; }

/* enlaces con flecha, como "Our approach ↗" */
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }
.arrow-link {
	display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0 0 3px; cursor: pointer; color: inherit;
	font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor;
}
.arrow-link svg { width: 14px; height: 14px; }

/* días: eyebrow a la izquierda, la hoja a la derecha */
.days { padding-block: clamp(48px, 6vw, 96px); }
.day { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px clamp(24px, 4vw, 64px); padding-block: 36px; border-top: 1px solid var(--light-grey); }
.day:first-child { border-top: 0; padding-top: 0; }
.day-label h2 { font-size: clamp(28px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; margin: 12px 0 0; }
.day-label .add { margin-top: 18px; color: var(--blue-text); }
.empty { color: var(--line); font-size: 15px; padding-top: 6px; }

/* una pieza: la publicación que Greg aprueba */
.piece { padding: 4px 0 32px; margin-bottom: 28px; border-bottom: 1px solid var(--light-grey); }
.piece-head { margin-bottom: 18px; }
.post.editable [data-act="edit"], .post.editable[data-act="edit"] { cursor: pointer; }
.post.editable [data-act="edit"]:hover h3, .post.editable.line:hover .w { color: var(--blue-text); }
.meta { margin: 0; font-size: 13px; font-weight: 600; color: var(--dark-grey); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.piece-head h3 { font-size: clamp(22px, 1.95vw, 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 8px 0 0; }
.piece-head .n { margin: 6px 0 0; font-size: 14px; color: var(--line); }
.piece-body { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.piece-text { display: flex; flex-direction: column; gap: 16px; }
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mid-grey); }
.who.greg::before { background: var(--greg); }
.who.ciaran::before { background: var(--ciaran); }
.who.pedro::before { background: var(--pedro); }
.st { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--line); white-space: nowrap; }
.st.done { color: var(--blue-text); }
.st.started { color: var(--orange-on-light); }

/* el resto del plan del día */
.plan { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 86px 84px minmax(0, 1fr) auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--light-grey); font-size: 14px; color: var(--dark-grey); align-items: baseline; }
.line:last-child { border-bottom: 0; }
.line .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.line .who { font-size: 13px; }
.line .n { color: var(--line); }

.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery figure { margin: 0; max-width: 100%; }
.gallery img, .gallery video { display: block; max-height: 520px; max-width: 100%; width: auto; background: var(--navy); }
.gallery img { cursor: zoom-in; }
.gallery figcaption { font-size: 12px; color: var(--line); padding-top: 6px; display: flex; gap: 12px; justify-content: space-between; overflow-wrap: anywhere; }
.gallery figcaption a { color: var(--dark-grey); font-weight: 600; }
.piece-body:has(.options) { max-width: none; }
.gallery.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.gallery.options img, .gallery.options video { width: 100%; max-height: none; height: auto; }
.option { display: flex; flex-direction: column; gap: 10px; }
.option figcaption { padding-top: 0; align-items: center; }
.option .btn, .option .state { align-self: flex-start; }
.option.chosen img, .option.chosen video { outline: 3px solid var(--blue); outline-offset: 3px; }
.option.faded { opacity: .45; }
.option.faded:hover { opacity: 1; }
.gallery .file { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--blue-text); background: var(--pale); text-decoration: none; }
.caption-box { background: var(--pale); padding: 18px 20px; font-size: 15px; line-height: 1.5; }
.caption-box .cap { margin: 0; white-space: pre-wrap; }
.caption-box .eyebrow, .gnote .eyebrow { display: block; margin-bottom: 10px; font-size: 11px; }
.caption-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.caption-top .arrow-link { font-size: 13px; white-space: normal; }
.caption-form textarea { background: var(--pale); border-color: var(--light-grey); }
.gnote { border-left: 3px solid var(--orange); padding: 2px 0 2px 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.gnote .eyebrow { color: var(--orange-on-light); }

.review { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin-right: 6px; }
.state.ok { color: var(--blue-text); }
.state.wait { color: var(--orange-on-light); }
.state.warn { color: #b3361f; }
.btn {
	display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600;
	cursor: pointer; border: 1px solid var(--black); background: var(--white); color: var(--black); line-height: 1.2; text-decoration: none;
}
.btn:hover { background: var(--pale); }
.btn.primary { background: var(--black); color: var(--white); }
.btn.primary:hover { background: var(--dark-grey); border-color: var(--dark-grey); }
.btn.ghost { border-color: transparent; }
.btn.danger { color: #b3361f; border-color: #b3361f; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.changes-form { display: flex; flex-direction: column; gap: 10px; max-width: 66ch; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
textarea, input[type=text], input[type=date], input[type=password], select.field {
	width: 100%; border: 1px solid var(--mid-grey); background: var(--white); padding: 10px 12px; border-radius: 0; font-size: 15px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
:focus-visible, textarea:focus, input:focus, select:focus { outline: 2px solid var(--bright-blue); outline-offset: 2px; }

/* banda inferior */
.foot-band { background: var(--gradient); color: var(--white); }
.daily { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 88px) 40px; }
.daily p { margin: 0; font-size: clamp(22px, 1.95vw, 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; max-width: 36ch; }
.daily p + p { margin-top: 14px; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: rgb(255 255 255 / .78); }
.key { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.key .who { color: var(--white); }
.legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid rgb(255 255 255 / .18); font-size: 12px; color: rgb(255 255 255 / .72); }
.legal .mark { display: flex; align-items: center; gap: 14px; }
.legal img { width: 28px; height: 28px; }

/* acceso y editor (Pedro) */
.login-wrap { min-height: 100dvh; display: flex; flex-direction: column; }
.login { max-width: 400px; margin: 10vh 0 0; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: clamp(40px, 5vw, 56px); margin: 6px 0 8px; }
.login input { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .06); color: var(--white); }
.login .pill { align-self: flex-start; background: var(--white); color: var(--black); border-color: var(--white); padding-inline: 22px; }
.err { color: #b3361f; font-size: 14px; min-height: 1em; margin: 0; }
.band .err { color: #ffb3a1; }
dialog { border: 0; background: var(--white); color: var(--black); padding: 0; width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgb(5 12 26 / .6); }
.ed { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ed h3 { font-size: 32px; font-weight: 500; letter-spacing: -.045em; margin: 8px 0 6px; }
.ed label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--dark-grey); }
.ed .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed .media-list { display: flex; flex-direction: column; gap: 6px; }
.ed .media-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px; padding: 8px 12px; background: var(--pale); overflow-wrap: anywhere; }
.ed .foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.progress { height: 3px; background: var(--light-grey); }
.progress > i { display: block; height: 100%; background: var(--bright-blue); width: 0; transition: width .2s; }
.hint { font-size: 13px; color: var(--line); font-weight: 400; letter-spacing: 0; text-transform: none; }

.lightbox { position: fixed; inset: 0; background: rgb(5 12 26 / .94); display: flex; align-items: center; justify-content: center; z-index: 10; cursor: zoom-out; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; }

@media (max-width: 900px) {
	.day, .daily { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.nav img { height: 24px; }
	.line { grid-template-columns: auto 1fr; gap: 2px 12px; }
	.line .w { grid-column: 1 / -1; }
	.gallery img, .gallery video { max-height: 64vh; }
	.ed { padding: 20px; }
	.ed .grid { grid-template-columns: 1fr; }
}
