/*
Theme Name: Cifrián
Theme URI: https://cifrian.com
Author: Marcos Cifrián
Author URI: https://www.linkedin.com/in/marcos-cifrian/
Description: Tema a medida para la landing personal de Marcos Cifrián, consultor en Marketing Online, Ecommerce e Inteligencia Artificial. Sin dependencias de plugins.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cifrian
*/

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: #ececea;
	color: #1a1a1a;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.cifrian-landing {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #1a1a1a;
}

/* Nav */

.cl-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 40px;
	background: #ececea;
}

.cl-nav-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background: transparent;
	z-index: 5;
}

body.admin-bar .cl-nav-overlay {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .cl-nav-overlay {
		top: 46px;
	}
}

.cl-nav-overlay .cl-logo-text,
.cl-nav-overlay .cl-nav-link {
	color: #ececea;
	border-bottom-color: rgba(236, 236, 234, 0.6);
}

.cl-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.cl-logo-text {
	font-weight: 800;
	letter-spacing: 3px;
	font-size: 14px;
	color: #1a1a1a;
}

.cl-nav-link {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #1a1a1a;
	border-bottom: 1px solid #1a1a1a;
	padding-bottom: 2px;
}

/* Hero - full bleed photo + dark panel, editorial */

.cl-hero {
	position: relative;
	display: flex;
	min-height: 100vh;
	background: #141414;
}

.cl-hero-photo-wrap {
	flex: 1 1 56%;
	overflow: hidden;
}

.cl-hero-photo-anim {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	filter: grayscale(100%) contrast(1.05);
	display: block;
	animation: cl-hero-photo-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes cl-hero-photo-in {
	from {
		opacity: 0;
		transform: scale(1.08);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.cl-hero-panel {
	flex: 1 1 44%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

.cl-hero-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	min-height: 64vh;
	border: 1px solid rgba(236, 236, 234, 0.3);
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ececea;
}

.cl-hero-anim {
	opacity: 0;
	animation: cl-hero-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: var(--d, 0s);
}

@keyframes cl-hero-fade-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cl-hero-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0;
}

.cl-hero-name {
	font-size: 72px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 20px 0 16px;
}

.cl-hero-role {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	color: #c9c8c2;
}

.cl-hero-arrow {
	color: #ececea;
	align-self: center;
	margin-top: 40px;
	animation: cl-hero-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, cl-hero-bounce 2s ease-in-out 1.4s infinite;
}

@keyframes cl-hero-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(8px);
	}
}

.cl-hero-bottom-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ececea;
	text-decoration: none;
	border-bottom: 1px solid rgba(236, 236, 234, 0.5);
	align-self: flex-start;
	padding-bottom: 2px;
}

/* Statement */

.cl-statement {
	display: flex;
	align-items: center;
	gap: 56px;
	padding: 96px 40px 72px;
	max-width: 1180px;
	margin: 0 auto;
}

.cl-statement-text {
	flex: 1 1 54%;
	min-width: 0;
}

.cl-statement-text .cl-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #5a5a58;
	margin: 0 0 16px;
}

.cl-statement h1 {
	font-size: 84px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.98;
	margin: 0 0 44px;
	color: #1a1a1a;
}

.cl-poem,
.cl-sub {
	font-size: 17px;
	color: #5a5a58;
	line-height: 1.85;
	margin: 0 0 36px;
	max-width: 540px;
}

.cl-statement-photo-wrap {
	flex: 1 1 46%;
	min-width: 0;
	aspect-ratio: 4 / 5;
}

.cl-statement-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	filter: grayscale(100%) contrast(1.05);
	display: block;
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 95%);
	mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 95%);
}

/* Scroll-reveal animation */

.cl-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cl-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Stats */

.cl-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0 40px 72px;
	max-width: 820px;
}

.cl-stat-num {
	font-size: 56px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1;
}

.cl-stat-label {
	font-size: 13px;
	color: #5a5a58;
	margin: 10px 0 0;
}

/* Quote */

.cl-quote {
	background: #1a1a1a;
	color: #ececea;
	padding: 96px 40px;
	text-align: center;
}

.cl-quote-text {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.4;
	max-width: 760px;
	margin: 0 auto 24px;
}

.cl-quote-author {
	font-size: 13px;
	color: #8a8a87;
	margin: 0;
}

.cl-btn {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: 0;
	display: inline-block;
	text-decoration: none;
	border: none;
	cursor: pointer;
	background: #1a1a1a;
	color: #ececea;
}

.cl-btn:hover {
	background: #333;
	color: #ececea;
}

.cl-btn-light {
	background: #ececea;
	color: #1a1a1a;
}

.cl-btn-light:hover {
	background: #fff;
}

/* Pillars */

.cl-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid #c9c8c2;
	border-bottom: 1px solid #c9c8c2;
}

.cl-pillar {
	padding: 40px 32px;
	border-right: 1px solid #c9c8c2;
}

.cl-pillar:last-child {
	border-right: none;
}

.cl-pillar h3 {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.cl-pillar p {
	font-size: 14px;
	color: #5a5a58;
	margin: 0;
	line-height: 1.5;
}

/* Trayectoria */

.cl-track {
	display: flex;
	align-items: stretch;
	gap: 48px;
	padding: 72px 40px;
	border-bottom: 1px solid #c9c8c2;
}

.cl-track-col {
	flex: 1 1 60%;
	min-width: 0;
}

.cl-track-photo-wrap {
	position: relative;
	flex: 1 1 40%;
	min-width: 0;
	overflow: hidden;
}

.cl-track-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%) contrast(1.05);
	display: block;
	-webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 48%, transparent 92%);
	mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 48%, transparent 92%);
}

.cl-track h2 {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 40px;
	max-width: 480px;
}

.cl-track-list {
	max-width: 760px;
}

.cl-track-item {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
	border-top: 1px solid #c9c8c2;
}

.cl-track-item:last-child {
	border-bottom: 1px solid #c9c8c2;
}

.cl-track-role {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.cl-track-years {
	font-size: 13px;
	color: #5a5a58;
	margin: 0;
	white-space: nowrap;
}

/* Proyectos */

.cl-projects-media {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	background: #141414;
}

.cl-projects-gallery {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cl-projects-photo {
	width: 100%;
	height: 100%;
	flex: 1;
	min-height: 0;
	object-fit: cover;
	object-position: center 30%;
	filter: grayscale(100%) contrast(1.02);
	display: block;
}

.cl-projects-text {
	padding: 64px 40px;
	color: #ececea;
}

.cl-projects-text h2 {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 32px;
}

.cl-project {
	padding: 18px 0;
	border-top: 1px solid #3a3a3a;
}

.cl-project:last-child {
	padding-bottom: 0;
}

.cl-project h3 {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 6px;
}

.cl-project p {
	font-size: 14px;
	color: #b3b0a6;
	line-height: 1.6;
	margin: 0;
}

/* Metodología */

.cl-method {
	display: flex;
	background: #141414;
	color: #ececea;
}

.cl-method-graphic {
	flex: 1 1 45%;
	min-width: 0;
	aspect-ratio: 1 / 1;
	-webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 95%);
	mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 95%);
}

.cl-method-text {
	flex: 1 1 55%;
	min-width: 0;
	padding: 96px 56px 96px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cl-method-text .cl-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #c9c8c2;
	margin: 0 0 16px;
}

.cl-method-text h2 {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 32px;
}

.cl-method-text p {
	font-size: 15px;
	color: #b3b0a6;
	line-height: 1.8;
	max-width: 520px;
	margin: 0 0 20px;
}

.cl-method-text strong {
	color: #ececea;
}

/* Contact - dark section */

.cl-contact {
	background: #1e1e1e;
	color: #ececea;
	padding: 72px 40px;
}

.cl-contact h2 {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 40px;
}

.cl-contact-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	border-top: 1px solid #3a3a3a;
	padding-top: 40px;
}

.cl-notice {
	font-size: 13px;
	padding: 10px 16px;
	max-width: 500px;
	margin: 0 0 24px;
}

.cl-notice-ok {
	background: #2d3f2d;
	color: #cfe8cf;
}

.cl-notice-error {
	background: #3f2d2d;
	color: #e8cfcf;
}

.cl-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cl-form label {
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #9a9a97;
	margin-top: 12px;
}

.cl-form input[type="text"],
.cl-form input[type="email"],
.cl-form input[type="tel"],
.cl-form textarea {
	font-family: inherit;
	font-size: 14px;
	padding: 10px 0;
	border: none;
	border-bottom: 1px solid #4a4a4a;
	background: transparent;
	color: #ececea;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}

.cl-form input:focus,
.cl-form textarea:focus {
	outline: none;
	border-bottom-color: #ececea;
}

.cl-form textarea {
	resize: vertical;
}

.cl-form .cl-btn {
	margin-top: 24px;
	align-self: flex-start;
}

.cl-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cl-contact-info .cl-kicker {
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9a9a97;
	margin: 0 0 12px;
}

.cl-contact-info p {
	font-size: 14px;
	margin: 0 0 6px;
}

.cl-contact-info a {
	text-decoration: none;
	border-bottom: 1px solid #5a5a58;
}

/* Footer */

.cl-footer {
	background: #1e1e1e;
	padding: 20px 40px 32px;
	border-top: 1px solid #3a3a3a;
}

.cl-footer span {
	font-size: 11px;
	color: #7a7a77;
}

@media (max-width: 700px) {
	.cl-nav {
		padding: 20px 24px;
	}

	.cl-hero {
		flex-direction: column;
		min-height: auto;
	}

	.cl-hero-photo-wrap {
		height: 56vh;
	}

	.cl-hero-panel {
		padding: 32px 24px;
	}

	.cl-hero-box {
		min-height: auto;
		padding: 28px 24px;
	}

	.cl-hero-name {
		font-size: 48px;
	}

	.cl-hero-role {
		font-size: 16px;
	}

	.cl-statement {
		padding: 48px 24px 48px;
	}

	.cl-statement h1 {
		font-size: 44px;
	}

	.cl-statement {
		flex-direction: column;
		padding: 56px 24px 48px;
		gap: 32px;
	}

	.cl-statement-photo-wrap {
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.cl-stats {
		padding: 0 24px 48px;
		gap: 16px;
	}

	.cl-stat-num {
		font-size: 40px;
	}

	.cl-quote {
		padding: 56px 24px;
	}

	.cl-quote-text {
		font-size: 21px;
	}

	.cl-method {
		flex-direction: column;
	}

	.cl-method-graphic {
		aspect-ratio: 16 / 10;
	}

	.cl-method-text {
		padding: 48px 24px;
	}

	.cl-method-text h2 {
		font-size: 28px;
	}

	.cl-pillars {
		grid-template-columns: 1fr;
	}

	.cl-pillar {
		border-right: none;
		border-bottom: 1px solid #c9c8c2;
	}

	.cl-pillar:last-child {
		border-bottom: none;
	}

	.cl-contact {
		padding: 56px 24px;
	}

	.cl-contact h2 {
		font-size: 30px;
	}

	.cl-contact-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.cl-footer {
		padding: 20px 24px 28px;
	}

	.cl-track {
		flex-direction: column;
		padding: 48px 24px;
	}

	.cl-track-photo-wrap {
		height: 260px;
	}

	.cl-track h2 {
		font-size: 24px;
	}

	.cl-track-item {
		flex-direction: column;
		gap: 4px;
	}

	.cl-projects-media {
		grid-template-columns: 1fr;
	}

	.cl-projects-photo {
		height: 260px;
	}

	.cl-projects-text {
		padding: 40px 24px;
	}
}
