/*
Theme Name: Soy Intenso
Theme URI: https://soyintenso.com
Author: Noel García
Author URI: https://soyintenso.com
Description: Portfolio minimalista a dos tintas para Soy Intenso: diseño editorial, web y vídeo. Logo, servicios, redes sociales y formulario de contacto.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soyintenso
*/

:root {
	--bg: #ece9e2;
	--ink: #1d1d1b;
	--ink-70: rgb(29 29 27 / 0.72);
	--ink-45: rgb(29 29 27 / 0.45);
	--line: rgb(29 29 27 / 0.16);
	--gutter: clamp(20px, 4vw, 56px);
	--sans: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

em {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

::selection {
	background: var(--ink);
	color: var(--bg);
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
	border-radius: 2px;
}

.wrap {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 10;
	padding: 0.75rem 1rem;
	background: var(--ink);
	color: var(--bg);
}

.skip-link:focus {
	top: 1rem;
}

.label {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.arrow {
	display: inline-block;
	transition: transform 0.35s var(--ease);
}

/* Cabecera -------------------------------------------------------------- */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: clamp(20px, 3vw, 36px);
}

.site-logo img {
	width: clamp(72px, 7vw, 96px);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.75rem);
	font-size: 0.9375rem;
	font-weight: 500;
}

.site-nav a {
	position: relative;
}

.site-nav a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -3px;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--ease);
}

.site-nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.availability {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink-70);
	font-weight: 400;
}

.availability::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ink);
	animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(29 29 27 / 0.35);
	}
	70%,
	100% {
		box-shadow: 0 0 0 9px rgb(29 29 27 / 0);
	}
}

/* Portada --------------------------------------------------------------- */

.hero {
	padding-block: clamp(48px, 10vw, 152px) clamp(56px, 8vw, 112px);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: clamp(20px, 3vw, 40px);
}

.eyebrow::before {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
}

.hero__title {
	max-width: 15ch;
	font-size: clamp(2.875rem, 8.4vw, 8.75rem);
	font-weight: 500;
	line-height: 0.94;
	letter-spacing: -0.045em;
}

.hero__title em {
	letter-spacing: -0.025em;
}

.hero__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 2rem 4rem;
	margin-top: clamp(40px, 6vw, 88px);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.hero__lead {
	max-width: 40ch;
	font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
	line-height: 1.5;
}

/* Botón */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.05rem 1.6rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font: 500 1rem/1 var(--sans);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.button:hover {
	background: transparent;
	color: var(--ink);
}

.button:hover .arrow {
	transform: translateX(4px);
}

.button:disabled {
	opacity: 0.5;
	cursor: progress;
}

/* Cinta de servicios */

.marquee {
	overflow: hidden;
	padding-block: clamp(14px, 1.6vw, 22px);
	border-block: 1px solid var(--ink);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 36s linear infinite;
}

.marquee__group {
	display: flex;
	flex-shrink: 0;
}

.marquee__item {
	display: flex;
	align-items: center;
	font-family: var(--serif);
	font-size: clamp(1.875rem, 4.4vw, 4rem);
	font-style: italic;
	line-height: 1.1;
	white-space: nowrap;
}

.marquee__item::after {
	content: "";
	width: 0.22em;
	height: 0.22em;
	margin-inline: 0.75em;
	border-radius: 50%;
	background: var(--ink);
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Servicios */

.section {
	padding-block: clamp(80px, 12vw, 168px);
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 1.5rem 4rem;
	margin-bottom: clamp(40px, 6vw, 88px);
}

.section-title {
	font-size: clamp(2.5rem, 6vw, 6rem);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.045em;
}

.section-head p {
	max-width: 40ch;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	color: var(--ink-70);
}

.service {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: baseline;
	gap: 0.75rem 2rem;
	padding-block: clamp(24px, 3vw, 44px);
	border-top: 1px solid var(--ink);
}

.service:last-child {
	border-bottom: 1px solid var(--ink);
}

.service__num {
	font-family: var(--serif);
	font-size: 1.375rem;
	font-style: italic;
}

.service__title {
	font-size: clamp(1.75rem, 3.8vw, 3.25rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.035em;
}

.service__text {
	max-width: 44ch;
	color: var(--ink-70);
}

/* Contacto */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(56px, 7vw, 128px);
	padding-top: 0;
}

.contact__title {
	font-size: clamp(2.75rem, 6.2vw, 6.25rem);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.045em;
}

.contact__text {
	max-width: 32ch;
	margin-top: 1.5rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	color: var(--ink-70);
}

.social {
	margin-top: clamp(36px, 5vw, 72px);
	border-top: 1px solid var(--line);
}

.social a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--line);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.social a:hover .arrow,
.footer__links a:hover .arrow {
	transform: translate(3px, -3px);
}

/* Formulario */

.form {
	display: grid;
	gap: clamp(28px, 3vw, 40px);
	align-content: start;
}

.form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: inherit;
}

.field {
	display: grid;
	gap: 0.4rem;
}

.field input,
.field textarea {
	width: 100%;
	padding: 0.6rem 0;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: 400 1.25rem/1.4 var(--sans);
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.2s;
}

.field textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	box-shadow: 0 1px 0 var(--ink);
}

.field ::placeholder {
	color: var(--ink-45);
	opacity: 1;
}

.chips {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.chips legend {
	margin-bottom: 0.9rem;
	padding: 0;
}

.chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip {
	position: relative;
}

.chip input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.chip span {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-size: 0.9375rem;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s, color 0.2s;
}

.chip span:hover {
	background: rgb(29 29 27 / 0.07);
}

.chip input:checked + span {
	background: var(--ink);
	color: var(--bg);
}

.chip input:focus-visible + span {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9375rem;
	color: var(--ink-70);
	cursor: pointer;
}

.consent input {
	display: grid;
	flex: none;
	place-content: center;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.1rem 0 0;
	border: 1px solid var(--ink);
	border-radius: 3px;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.consent input::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	background: var(--ink);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
	transform: scale(0);
	transition: transform 0.15s var(--ease);
}

.consent input:checked::before {
	transform: scale(1);
}

.consent a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.form__status {
	font-size: 0.9375rem;
	font-weight: 500;
}

.form__status:empty {
	display: none;
}

.form__status.is-error {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

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

/* Pie ------------------------------------------------------------------- */

.site-footer {
	padding-block: clamp(64px, 9vw, 128px) clamp(24px, 3vw, 40px);
	border-top: 1px solid var(--ink);
}

.footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 3rem;
}

.footer__logo img {
	width: clamp(180px, 30vw, 400px);
}

.footer__links {
	display: grid;
	gap: 0.4rem;
	font-size: clamp(1.25rem, 2.2vw, 1.875rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	text-align: right;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: clamp(48px, 6vw, 88px);
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	color: var(--ink-70);
}

/* Páginas interiores ---------------------------------------------------- */

.inner-page {
	max-width: 820px;
	padding-block: clamp(48px, 8vw, 120px);
}

.inner-page__title {
	margin-bottom: 2rem;
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.entry > * + * {
	margin-top: 1.25em;
}

.entry h2,
.entry h3 {
	margin-top: 2em;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.entry a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Aparición al hacer scroll --------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
	.contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.section-head {
		grid-template-columns: 1fr;
	}

	.service {
		grid-template-columns: 2.75rem minmax(0, 1fr);
	}

	.service__text {
		grid-column: 2;
	}
}

@media (max-width: 720px) {
	.availability {
		display: none;
	}

	.hero__foot {
		grid-template-columns: 1fr;
	}

	.hero__foot .button {
		justify-self: start;
	}

	.form__row {
		grid-template-columns: 1fr;
	}

	.footer__links {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.marquee__track,
	.availability::before {
		animation: none;
	}

	.js .reveal {
		transform: none;
		transition: opacity 0.6s linear;
	}
}
