/*
Theme Name: The Surf Valley
Theme URI: https://thesurfvalley.com
Author: The Surf Valley
Description: Landing "Estamos construyendo el valle" con captación de emails, panel de suscriptores y exportación CSV. Marca navy #011a3a, Libre Franklin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: the-surf-valley
*/

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

body {
	margin: 0;
	background: #011a3a;
	color: #ffffff;
}

.tsv {
	--navy: #011a3a;
	--white: #ffffff;
	--orange: #ffa300;
	--cyan: #009cb2;
	--cream: #feefd8;
	font-family: "Libre Franklin", Arial, Helvetica, sans-serif;
	color: var(--white);
	background: var(--navy);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	width: 100%;
}
.tsv a { color: inherit; }

/* Texto solo para lectores de pantalla */
.tsv-sr {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- HERO ---------- */
.tsv-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 96px 24px 72px;
	overflow: hidden;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(0, 156, 178, .35) 0%, rgba(0, 156, 178, 0) 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy) 45%, #02284f 100%);
}
.tsv-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .08;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.tsv-wrap {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
	width: 100%;
}

.tsv-brand {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 15px;
	margin: 0 0 56px;
}
.tsv-brand span { color: var(--orange); }

.tsv-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--cyan);
	margin: 0 0 18px;
}
.tsv h1 {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(44px, 9vw, 112px);
	line-height: .92;
	letter-spacing: -.01em;
	margin: 0 0 28px;
	max-width: 14ch;
}
.tsv h1 em { color: var(--orange); font-style: italic; }
.tsv-lead {
	font-size: clamp(17px, 2vw, 20px);
	max-width: 52ch;
	margin: 0 0 40px;
	color: rgba(255, 255, 255, .88);
}
.tsv-lead strong { color: var(--white); font-weight: 700; }

/* ---------- FORMULARIO ---------- */
.tsv-form { max-width: 560px; margin: 0; }
.tsv-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tsv-input {
	flex: 1 1 260px;
	min-width: 0;
	font: inherit;
	font-size: 16px;
	color: var(--navy);
	background: var(--white);
	border: 2px solid var(--white);
	border-radius: 999px;
	padding: 15px 22px;
	outline: none;
}
.tsv-input:focus { border-color: var(--orange); }
.tsv-btn {
	font: inherit;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 15px;
	color: var(--navy);
	background: var(--orange);
	border: 0;
	border-radius: 999px;
	padding: 15px 28px;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}
.tsv-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.tsv-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.tsv-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: rgba(255, 255, 255, .78);
	margin: 16px 4px 0;
}
.tsv-consent input {
	margin-top: 3px;
	accent-color: var(--orange);
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}
.tsv-consent a { color: var(--orange); }
.tsv-msg {
	min-height: 24px;
	margin: 14px 4px 0;
	font-size: 15px;
	font-weight: 600;
}
.tsv-msg.ok { color: var(--orange); }
.tsv-msg.err { color: #ffd0a0; }
.tsv-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* ---------- SECCIONES ---------- */
.tsv-section { padding: 88px 24px; }
.tsv-section.light { background: var(--white); color: var(--navy); }
.tsv-section.cream { background: var(--cream); color: var(--navy); }
.tsv-section.grad { background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%); }
.tsv-h2 {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(30px, 5vw, 56px);
	line-height: 1;
	margin: 0 0 20px;
}
.tsv-h2 em { color: var(--orange); font-style: italic; }
.tsv-section.light .tsv-h2 em,
.tsv-section.cream .tsv-h2 em { color: var(--cyan); }
.tsv-text { font-size: 18px; max-width: 62ch; margin: 0; }

.tsv-grid {
	display: grid;
	gap: 20px;
	margin-top: 48px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tsv-card {
	border-top: 4px solid var(--navy);
	padding: 28px 24px 30px;
	background: var(--white);
}
.tsv-section.cream .tsv-card { background: rgba(255, 255, 255, .55); }
.tsv-card .num {
	font-weight: 900;
	font-style: italic;
	font-size: 14px;
	color: var(--cyan);
	letter-spacing: .08em;
	margin: 0 0 10px;
}
.tsv-card h3 {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: 24px;
	line-height: 1.05;
	margin: 0 0 12px;
}
.tsv-card p { margin: 0; font-size: 16px; }

.tsv-values {
	list-style: none;
	padding: 0;
	margin: 40px 0 0;
	display: grid;
	gap: 14px;
	max-width: 640px;
}
.tsv-values li {
	font-size: 18px;
	padding-left: 28px;
	position: relative;
}
.tsv-values li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--orange);
}

.tsv-cta-title {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: clamp(34px, 6vw, 72px);
	line-height: .95;
	margin: 0 0 28px;
}
.tsv-cta-title span { color: var(--orange); }
.tsv-section.grad .tsv-text { margin-bottom: 32px; }

/* ---------- PIE ---------- */
.tsv-footer {
	background: var(--navy);
	padding: 56px 24px 48px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.tsv-footer .sig {
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: 26px;
	line-height: 1;
	margin: 0 0 12px;
}
.tsv-footer .sig span { color: var(--orange); }
.tsv-footer .tag {
	font-size: 15px;
	color: rgba(255, 255, 255, .75);
	margin: 0 0 24px;
}
.tsv-footer .legal {
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
	margin: 0;
}
.tsv-footer .legal a { color: rgba(255, 255, 255, .75); }

/* ---------- PÁGINAS INTERIORES (privacidad, aviso legal, etc.) ---------- */
.tsv-page {
	background: var(--white);
	color: var(--navy);
	padding: 72px 24px;
	min-height: 60vh;
}
.tsv-page .tsv-wrap { max-width: 760px; }
.tsv-page .tsv-h2 { font-size: clamp(30px, 4vw, 44px); }
.tsv-page .tsv-prose p,
.tsv-page .tsv-prose li { font-size: 17px; }
.tsv-page .tsv-prose a { color: var(--cyan); }

/* ---------- MÓVIL ---------- */
@media (max-width: 600px) {
	.tsv-hero { padding: 72px 20px 56px; min-height: auto; }
	.tsv-brand { margin-bottom: 40px; }
	.tsv-section { padding: 64px 20px; }
	.tsv-btn { width: 100%; }
	.tsv-input { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tsv-btn { transition: none; }
}
