/*
Theme Name: Terrority Child
Theme URI: https://terrority.es
Description: Tema hijo de Terrority basado en Twenty Twenty-Five.
Author: Terrority
Template: twentytwentyfive
Version: 1.0.0
Text Domain: terrority-child
*/

/* ===============================
   TERRORITY — SISTEMA VISUAL MVP
   =============================== */

:root {
	--terrority-black: #050505;
	--terrority-black-soft: #0a0a0a;
	--terrority-carbon: #111111;
	--terrority-carbon-2: #1a1a1a;
	--terrority-red: #8b0000;
	--terrority-red-bright: #ff0000;
	--terrority-red-dark: #4a0000;
	--terrority-white: #f5f5f5;
	--terrority-gray: #b8b8b8;
	--terrority-muted: #777777;
	--terrority-border: rgba(255, 255, 255, 0.14);
	--terrority-border-red: rgba(255, 0, 0, 0.35);
	--terrority-glow-red: 0 0 32px rgba(255, 0, 0, 0.25);
}

/* ===============================
   BASE GENERAL
   =============================== */

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--terrority-black);
	color: var(--terrority-white);
}

body {
	background:
		radial-gradient(circle at 50% 0%, rgba(120, 0, 0, 0.18), transparent 34%),
		linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.045;
	background-image:
		linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
	background-size: 42px 42px;
	mix-blend-mode: screen;
}

/* ===============================
   HEADER
   =============================== */

header,
.wp-site-blocks > header {
	background: rgba(5, 5, 5, 0.96) !important;
	color: var(--terrority-white) !important;
	border-bottom: 1px solid var(--terrority-border-red);
	box-shadow: 0 0 28px rgba(255, 0, 0, 0.14);
}

header a,
.wp-site-blocks > header a {
	color: var(--terrority-white) !important;
	text-decoration: none;
}

.wp-block-site-title,
.wp-block-site-title a {
	color: var(--terrority-red-bright) !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	text-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
}

.wp-block-navigation a {
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wp-block-navigation a:hover {
	color: var(--terrority-red-bright) !important;
}

/* ===============================
   OCULTAR TÍTULO AUTOMÁTICO DE HOME
   =============================== */

body.home h1.wp-block-post-title,
body.home .wp-block-post-title {
	display: none !important;
}

/* ===============================
   HOME FULL WIDTH
   =============================== */

body.home main,
body.home .entry-content,
body.home .wp-block-post-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ===============================
   TERRORITY HOME
   =============================== */

.terrority-home {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--terrority-black);
	color: var(--terrority-white);
	overflow: hidden;
}

.terrority-home * {
	box-sizing: border-box;
}

.t-section {
	position: relative;
	padding: clamp(72px, 9vw, 150px) 24px;
}

.t-inner {
	width: min(1240px, 100%);
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.t-kicker {
	margin: 0 0 18px;
	color: var(--terrority-red-bright);
	font-family: "Courier New", monospace;
	font-size: 0.78rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.t-title {
	margin: 0;
	color: var(--terrority-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 8vw, 7.5rem);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.t-subtitle,
.t-text {
	color: var(--terrority-gray);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.75;
}

.t-subtitle {
	max-width: 760px;
	margin-top: 28px;
}

/* ===============================
   HERO
   =============================== */

.t-hero {
	min-height: calc(100vh - 90px);
	display: flex;
	align-items: center;
	background:
		linear-gradient(90deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.74) 45%, rgba(0,0,0,0.34) 100%),
		radial-gradient(circle at 76% 54%, rgba(255,0,0,0.26), transparent 28%),
		linear-gradient(135deg, #050505 0%, #111111 48%, #210000 100%);
	border-bottom: 1px solid var(--terrority-border-red);
}

.t-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
	pointer-events: none;
}

.t-hero::after {
	content: "";
	position: absolute;
	right: 6vw;
	top: 18%;
	width: min(520px, 42vw);
	aspect-ratio: 0.78;
	border: 1px solid rgba(255,255,255,0.12);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.4)),
		radial-gradient(circle at 50% 80%, rgba(255,0,0,0.34), transparent 38%);
	box-shadow: 0 0 80px rgba(255,0,0,0.18);
	transform: rotate(-5deg);
	opacity: 0.75;
}

.t-hero-title {
	max-width: 780px;
	margin: 0;
	color: var(--terrority-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 11vw, 11rem);
	font-weight: 500;
	line-height: 0.86;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	text-shadow: 0 0 32px rgba(255,255,255,0.12);
}

.t-hero-title span {
	display: block;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255,255,255,0.62);
}

.t-hero-note {
	max-width: 690px;
	margin-top: 30px;
	color: #d7d7d7;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.65;
}

/* ===============================
   BOTONES
   =============================== */

.t-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

.t-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 24px;
	border: 1px solid rgba(255,255,255,0.28);
	background: transparent;
	color: var(--terrority-white);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.78rem;
	transition: all 0.22s ease;
}

.t-btn-primary {
	background: linear-gradient(180deg, #b00000, #760000);
	border-color: rgba(255,0,0,0.65);
	box-shadow: 0 0 26px rgba(255,0,0,0.22);
}

.t-btn-secondary {
	background: rgba(255,255,255,0.03);
}

.t-btn:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	filter: brightness(1.16);
	box-shadow: 0 0 28px rgba(255,0,0,0.2);
}

/* ===============================
   GRID / TARJETAS
   =============================== */

.t-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 28px;
	align-items: stretch;
}

.t-card {
	position: relative;
	border: 1px solid var(--terrority-border);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
		#0a0a0a;
	padding: clamp(24px, 4vw, 44px);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
	overflow: hidden;
}

.t-card::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--terrority-red-bright), transparent);
	opacity: 0.55;
}

.t-card:hover {
	border-color: var(--terrority-border-red);
	transform: translateY(-4px);
	transition: transform 220ms ease, border-color 220ms ease;
}

/* ===============================
   VISUALES PLACEHOLDER
   =============================== */

.t-visual {
	position: relative;
	min-height: 420px;
	border: 1px solid var(--terrority-border);
	background:
		linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.92)),
		radial-gradient(circle at 50% 68%, rgba(255,0,0,0.28), transparent 34%),
		linear-gradient(135deg, #181818, #050505);
	overflow: hidden;
	box-shadow: var(--terrority-glow-red);
}

.t-visual::before {
	content: "";
	position: absolute;
	inset: -30px;
	background:
		repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 6px),
		linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 46%, transparent 54%);
	opacity: 0.22;
	transform: rotate(-2deg);
}

.t-visual::after {
	content: "ARCHIVO TERRORITY";
	position: absolute;
	left: 24px;
	bottom: 22px;
	color: rgba(255,255,255,0.72);
	font-family: "Courier New", monospace;
	letter-spacing: 0.22em;
	font-size: 0.75rem;
	text-transform: uppercase;
}

.t-visual.exp001::after {
	content: "EXPEDIENTE 001 · CASO ABIERTO";
}

.t-visual.creators::after {
	content: "CREADORES ASOCIADOS";
}

/* ===============================
   HOME SECCIONES
   =============================== */

.t-archive-copy {
	grid-column: span 5;
}

.t-archive-visual {
	grid-column: span 7;
}

.t-exp-card,
.t-exp-copy,
.t-creator {
	grid-column: span 6;
}

.t-parallax {
	min-height: 460px;
	display: flex;
	align-items: center;
	background:
		linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.9)),
		radial-gradient(circle at 50% 48%, rgba(255,0,0,0.32), transparent 34%),
		linear-gradient(135deg, #080808, #220000);
	background-attachment: fixed;
	border-top: 1px solid var(--terrority-border-red);
	border-bottom: 1px solid var(--terrority-border-red);
}

.t-parallax h2 {
	max-width: 900px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.4rem, 6vw, 6rem);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

.t-final {
	text-align: center;
	background:
		radial-gradient(circle at center, rgba(255,0,0,0.18), transparent 36%),
		#050505;
}

.t-final .t-subtitle {
	margin-left: auto;
	margin-right: auto;
}

/* ===============================
   FOOTER
   =============================== */

footer,
.wp-site-blocks > footer {
	background: #050505 !important;
	color: var(--terrority-white) !important;
	border-top: 1px solid var(--terrority-border-red);
}

footer a,
.wp-site-blocks > footer a {
	color: var(--terrority-white) !important;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 980px) {
	.t-grid {
		grid-template-columns: 1fr;
	}

	.t-archive-copy,
	.t-archive-visual,
	.t-exp-card,
	.t-exp-copy,
	.t-creator {
		grid-column: 1;
	}

	.t-hero::after {
		opacity: 0.28;
		width: 80vw;
		right: -18vw;
	}

	.t-parallax {
		background-attachment: scroll;
	}
}

@media (max-width: 640px) {
	.t-section {
		padding-left: 18px;
		padding-right: 18px;
	}

	.t-button-row {
		flex-direction: column;
	}

	.t-btn,
	.wp-block-button__link {
		width: 100%;
	}

	.t-hero {
		min-height: 82vh;
	}

	.t-visual {
		min-height: 300px;
	}
}