/* =========================================================================
   Tarifa Kite Conditions – identidad visual
   Idea: el color codifica el viento. Ocre = Levante (este). Verde azulado = Poniente (oeste).
   ====================================================================== */

@font-face {
	font-family: "Platypi";
	src: url("../../../themes/twentytwentyfive/assets/fonts/platypi/Platypi-VariableFont_wght.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

body {
	--ink: #0a2a43;        /* agua profunda del Estrecho */
	--ink-2: #123a5a;
	--slate: #3d5468;
	--levante: #e3a72f;    /* Levante: este, cálido, seco */
	--levante-deep: #8a5a00;
	--levante-wash: #fbf1dc;
	--poniente: #1f7a8c;   /* Poniente: oeste, atlántico */
	--poniente-deep: #135463;
	--poniente-wash: #e3f1f3;
	--foam: #eef4f6;
	--line: #d6e1e8;

	--display: "Platypi", Georgia, serif;
	--text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wp--preset--color--base: #ffffff;
	--wp--preset--color--contrast: var(--ink);
	--wp--preset--color--accent-1: var(--poniente);
	--wp--preset--color--accent-4: var(--slate);

	color: var(--ink);
	background: #fff;
	font-family: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--poniente-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--levante); outline-offset: 3px; border-radius: 4px; }

/* ---------- Estructura de página ---------- */
main.wp-block-group { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
main.wp-block-group > .wp-block-group:first-child { padding-top: 0 !important; margin-top: 0 !important; padding-bottom: 0 !important; }
.wp-block-post-content { padding-bottom: 4rem; }

/* ---------- Encabezado ---------- */
header.wp-block-template-part { background: var(--ink); color: #fff; }
header.wp-block-template-part > .wp-block-group { border: 0 !important; }
header.wp-block-template-part a { color: #fff; text-decoration: none; }
header.wp-block-template-part .wp-block-site-title {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
}
header.wp-block-template-part .wp-block-navigation { font-size: 0.95rem; font-weight: 600; gap: 1.6rem; }
header.wp-block-template-part .wp-block-navigation-item__content { padding-block: 0.4rem; border-bottom: 2px solid transparent; }
header.wp-block-template-part .wp-block-navigation-item__content:hover { border-bottom-color: var(--levante); }
header.wp-block-template-part .wp-block-navigation__submenu-container {
	background: var(--ink-2) !important;
	border: 0 !important;
	border-radius: 6px;
	padding: 0.4rem 0;
	min-width: 190px !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ink) !important;
	color: #fff !important;
	padding: 2rem 1.5rem;
}
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

/* ---------- Cabecera de página interna ---------- */
.tkc-hero {
	isolation: isolate;
	background: var(--ink);
	color: #e8f0f5;
	padding-top: 2.75rem !important;
	padding-bottom: 3rem !important;
	margin-top: 0 !important;
	margin-bottom: 2.75rem !important;
	position: relative;
	overflow: hidden;
}

.wp-block-post-content .tkc-hero > * { margin-left: auto !important; margin-right: auto !important; }
.tkc-hero h1 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.2rem, 5.4vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff;
	margin-top: 0.6rem;
	margin-bottom: 1rem;
	text-wrap: balance;
}
.wp-block-post-content .tkc-hero p {
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
	line-height: 1.6;
	color: #c9d8e3;
	margin-top: 0;
	margin-bottom: 0.8rem;
}
.tkc-hero .tkc-breadcrumbs, .tkc-hero .tkc-breadcrumbs a { color: #9fb6c8; font-size: 0.88rem; }
.tkc-hero .tkc-breadcrumbs a:hover { color: #fff; }

.tkc-hero.has-photo {
	padding-top: clamp(4rem, 9vw, 7rem) !important;
	padding-bottom: clamp(5rem, 9vw, 7.5rem) !important;
}
.tkc-hero.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10,42,67,.88) 0%, rgba(10,42,67,.66) 50%, rgba(10,42,67,.18) 100%);
}
.tkc-hero.has-photo h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.tkc-hero:not(.has-photo) { padding-bottom: 5rem !important; }

/* Datos rápidos de la página (spots) */
.tkc-hero ul.tkc-facts {
	list-style: none;
	padding: 0;
	margin: 1.6rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.tkc-hero ul.tkc-facts li {
	background: rgba(10,42,67,.45);
	backdrop-filter: blur(4px);
	margin: 0;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.22);
	font-size: 0.92rem;
	color: #fff;
}
.tkc-hero ul.tkc-facts li strong { color: #9fb6c8; font-weight: 600; margin-right: 0.3rem; }
.tkc-hero ul.tkc-facts li.is-levante { border-color: var(--levante); box-shadow: inset 4px 0 0 var(--levante); }
.tkc-hero ul.tkc-facts li.is-poniente { border-color: #4fb3c4; box-shadow: inset 4px 0 0 #4fb3c4; }

/* ---------- Tipografía del contenido ---------- */
.wp-block-post-content h2 {
	font-family: var(--display);
	font-weight: 650;
	font-size: clamp(1.6rem, 3.2vw, 2.15rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin-top: 3.2rem;
	margin-bottom: 0.9rem;
}
.wp-block-post-content h3 {
	font-family: var(--text);
	font-size: 1.15rem;
	font-weight: 750;
	margin-top: 2rem;
	color: var(--ink-2);
}
.wp-block-post-content p, .wp-block-post-content li { font-size: 1.06rem; color: #1d3a52; }
.wp-block-post-content li { margin-bottom: 0.4rem; }
.wp-block-post-content strong { color: var(--ink); font-weight: 750; }
.wp-block-post-content ul.wp-block-list li::marker { color: var(--poniente); }
.wp-block-post-content ol.wp-block-list li::marker { color: var(--poniente); font-weight: 700; }

/* ---------- Tablas ---------- */
.tkc-table { margin: 1.8rem 0 2rem; overflow-x: auto; }
.tkc-table table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 520px; }
.tkc-table thead th {
	text-align: left;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--slate);
	padding: 0 1rem 0.7rem 0;
	border: 0;
	border-bottom: 2px solid var(--ink);
}
.tkc-table td { padding: 0.85rem 1rem 0.85rem 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tkc-table td:first-child { font-weight: 700; color: var(--ink); }
.tkc-table th.is-levante { color: var(--levante-deep); border-bottom-color: var(--levante); }
.tkc-table th.is-poniente { color: var(--poniente-deep); border-bottom-color: var(--poniente); }

/* ---------- Nota ---------- */
.tkc-note {
	background: var(--foam);
	border-radius: 6px;
	padding: 1.2rem 1.4rem !important;
	margin: 2.2rem 0;
	border-left: 4px solid var(--poniente);
}
.tkc-note p { margin: 0; }

/* ---------- "Keep reading" ---------- */
.wp-block-post-content ul.tkc-related {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	border-top: 1px solid var(--line);
	max-width: 68ch;
}
.wp-block-post-content ul.tkc-related li {
	margin: 0;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--line);
}
.wp-block-post-content ul.tkc-related li a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.wp-block-post-content ul.tkc-related li a:hover { color: var(--poniente-deep); text-decoration: underline; }

/* =========================================================================
   HOME
   ====================================================================== */
.home .tkc-breadcrumbs { display: none; }

.tkc-band { padding: 4.5rem 0; }
.home .wp-block-post-content > section,
.home .wp-block-post-content > .tkc-home-hero { margin-block-start: 0 !important; margin-top: 0 !important; }
.home .wp-block-post-content { padding-bottom: 0; }
.tkc-band--foam { background: var(--foam); }
.tkc-band--ink { background: var(--ink); color: #dce7ef; }
.tkc-container { width: min(1140px, 100% - 2.5rem); margin: 0 auto; }
.tkc-band h2 { margin-top: 0 !important; }
.tkc-lede { font-size: 1.15rem !important; color: var(--slate) !important; max-width: 60ch; margin-top: 0; }

/* Hero con foto */
.tkc-home-hero {
	position: relative;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--ink);
	overflow: hidden;
	isolation: isolate;
}
.tkc-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(10,42,67,.92) 0%, rgba(10,42,67,.72) 38%, rgba(10,42,67,.15) 72%, rgba(10,42,67,0) 100%),
		linear-gradient(0deg, rgba(10,42,67,.55) 0%, rgba(10,42,67,0) 30%);
}
.tkc-home-hero__content { padding: 6rem 0 8rem; }
.tkc-home-hero h1 {
	font-family: var(--display);
	font-weight: 750;
	font-size: clamp(2.8rem, 7vw, 5.4rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	color: #fff;
	margin: 0 0 1.4rem;
	max-width: 11ch;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(10,42,67,.35);
}
.tkc-home-hero p { color: #e6eef4 !important; font-size: clamp(1.08rem, 1.6vw, 1.25rem) !important; max-width: 44ch; margin: 0 0 2rem; }

/* Foto de fondo genérica */
.tkc-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.tkc-credit {
	position: absolute;
	right: 1rem;
	bottom: 4.6rem;
	font-size: 0.72rem;
	color: rgba(255,255,255,.75);
	z-index: 2;
}
.tkc-credit a { color: inherit !important; text-decoration: underline; }

/* Ola divisoria */
.tkc-wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: clamp(34px, 5vw, 70px);
	display: block;
	z-index: 1;
}
.tkc-wave--white path { fill: #fff; }
.tkc-wave--foam path { fill: var(--foam); }
.tkc-wave--ink path { fill: var(--ink); }

/* Banda del mapa */
.tkc-band--map { position: relative; padding-bottom: 7rem; }
.tkc-mapband { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .tkc-mapband { grid-template-columns: 0.75fr 1.25fr; gap: 3.5rem; } }
.tkc-mapband h2 { font-size: clamp(1.9rem, 4vw, 2.8rem) !important; line-height: 1.05 !important; }

/* Galería */
.tkc-mosaic {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.8rem;
	grid-template-columns: 1fr 1fr;
}
.tkc-mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 10px; min-height: 220px; }
.tkc-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.tkc-mosaic .tkc-credit { bottom: 0.6rem; right: 0.7rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tkc-mosaic__a, .tkc-mosaic__d { grid-column: 1 / -1; min-height: 300px !important; }
@media (min-width: 900px) {
	.tkc-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; }
	.tkc-mosaic__a { grid-column: 1; grid-row: 1 / 3; }
	.tkc-mosaic__b { grid-column: 2; grid-row: 1; }
	.tkc-mosaic__c { grid-column: 3; grid-row: 1; }
	.tkc-mosaic__d { grid-column: 2 / 4; grid-row: 2; min-height: 0 !important; }
}

.tkc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tkc-btn {
	display: inline-block;
	padding: 0.85rem 1.25rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none !important;
	line-height: 1.2;
}
.tkc-btn--solid { background: #fff; color: var(--ink) !important; }
.tkc-btn--solid:hover { background: var(--levante); }
.tkc-btn--ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.4); }
.tkc-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Mapa del Estrecho */
.tkc-map { margin: 0; }
.tkc-map svg {
	width: 100%;
	height: auto;
	display: block;
	background: #0a2c48;
	border-radius: 14px;
	border: 1px solid #22527a;
}
.tkc-map .land { fill: #2a5f88; }
.tkc-map .coast { fill: none; stroke: #2b5d82; stroke-width: 1.5; }
.tkc-map .sea-label { fill: #5f86a5; font: 600 15px var(--text); letter-spacing: .02em; }
.tkc-map .country { fill: #8fb0c9; font: 700 17px var(--text); }
.tkc-map .spot circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.tkc-map .spot text { fill: #fff; font: 700 16px var(--text); paint-order: stroke; stroke: #2a5f88; stroke-width: 4px; }
.tkc-map .spot--town circle { fill: var(--levante); }
.tkc-map .flow path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 26 18; }
.tkc-map .flow--levante path { stroke: var(--levante); }
.tkc-map .flow--poniente path { stroke: #4fb3c4; }
.tkc-map .flow { transition: opacity .35s ease; }
.tkc-map[data-wind="levante"] .flow--poniente, .tkc-map[data-wind="poniente"] .flow--levante { opacity: 0.08; }
.tkc-map[data-wind="levante"] .flow--levante path { animation: tkc-west 2.4s linear infinite; }
.tkc-map[data-wind="poniente"] .flow--poniente path { animation: tkc-east 3.2s linear infinite; }
@keyframes tkc-west { to { stroke-dashoffset: 44; } }
@keyframes tkc-east { to { stroke-dashoffset: -44; } }

.tkc-map__controls { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.tkc-map__controls button {
	font: 700 0.95rem var(--text);
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.3);
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.tkc-map__controls button[data-set="levante"][aria-pressed="true"] { background: var(--levante); border-color: var(--levante); color: var(--ink); }
.tkc-map__controls button[data-set="poniente"][aria-pressed="true"] { background: #4fb3c4; border-color: #4fb3c4; color: var(--ink); }
.tkc-map__caption { font-size: 0.95rem; color: #b8cbd9; margin: 0.9rem 0 0 !important; min-height: 3em; max-width: 60ch; }
.tkc-map__note { font-size: 0.8rem; color: #6f90aa; margin-left: auto; }

/* Paneles de viento */
.tkc-winds { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 820px) { .tkc-winds { grid-template-columns: 1fr 1fr; } }
.tkc-wind {
	background: #fff;
	border-radius: 8px;
	padding: 1.8rem 1.8rem 1.4rem;
	border-top: 6px solid;
}
.tkc-wind--levante { border-color: var(--levante); }
.tkc-wind--poniente { border-color: var(--poniente); }
.tkc-wind h3 {
	font-family: var(--display) !important;
	font-size: 2rem !important;
	font-weight: 700;
	margin: 0 0 0.2rem !important;
	color: var(--ink) !important;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.tkc-wind h3 svg { width: 34px; height: 34px; flex: none; }
.tkc-wind--levante h3 svg { color: var(--levante-deep); }
.tkc-wind--poniente h3 svg { color: var(--poniente); }
.tkc-wind > p { margin: 0 0 1.2rem; color: var(--slate) !important; }
.tkc-wind dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.tkc-wind dt, .tkc-wind dd { padding: 0.6rem 0; border-top: 1px solid var(--line); margin: 0; font-size: 0.98rem; }
.tkc-wind dt { color: var(--slate); padding-right: 1.2rem; font-weight: 600; }
.tkc-wind dd { color: var(--ink); font-weight: 600; }
.tkc-wind__more { display: inline-block; margin-top: 1rem; font-weight: 700; }

/* Spots */
.tkc-spots { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.tkc-spots li {
	display: grid;
	gap: 0.3rem 1.5rem;
	padding: 1.3rem 0;
	border-bottom: 1px solid var(--line);
	margin: 0;
}
@media (min-width: 820px) { .tkc-spots li { grid-template-columns: 220px 160px 1fr; align-items: baseline; } }
.tkc-spots .name { font-family: var(--display); font-size: 1.55rem; font-weight: 650; line-height: 1.2; }
.tkc-spots .name a { color: var(--ink); text-decoration: none; }
.tkc-spots .name a:hover { text-decoration: underline; }
.tkc-spots .desc { color: #1d3a52; font-size: 1.02rem; }

.tkc-chip {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
}
.tkc-chip--levante { background: var(--levante-wash); color: var(--levante-deep); }
.tkc-chip--poniente { background: var(--poniente-wash); color: var(--poniente-deep); }

/* Temporadas: secuencia real (meses del año) */
.tkc-seasons { display: grid; gap: 0; margin-top: 2rem; border-top: 2px solid var(--ink); }
@media (min-width: 820px) { .tkc-seasons { grid-template-columns: repeat(4, 1fr); } }
.tkc-season { padding: 1.2rem 1.4rem 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
	.tkc-season { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 1.4rem; }
	.tkc-season:first-child { padding-left: 0; }
	.tkc-season:last-child { border-right: 0; }
}
.tkc-season h3 { font-family: var(--display) !important; font-size: 1.45rem !important; margin: 0 !important; color: var(--ink) !important; }
.tkc-season .months { font-size: 0.9rem; color: var(--slate); font-weight: 600; margin: 0.1rem 0 0.7rem; }
.tkc-season p { font-size: 0.98rem !important; margin: 0; }

/* Banda de seguridad */
.tkc-band--ink h2 { color: #fff; font-family: var(--display); }
.tkc-band--ink p { color: #c9d8e3 !important; }
.tkc-band--ink a { color: #fff; }
.tkc-safety { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tkc-safety { grid-template-columns: 1.3fr 1fr; } }
.tkc-safety ul { margin: 0; padding: 0; list-style: none; }
.tkc-safety li { color: #fff !important; font-weight: 600; padding: 0.7rem 0 0.7rem 1.8rem; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.tkc-safety li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.9rem; height: 3px; background: var(--levante); }

/* Índice de guías */
.tkc-guides { display: grid; gap: 0 3rem; margin-top: 1.5rem; }
@media (min-width: 820px) { .tkc-guides { grid-template-columns: 1fr 1fr; } }
.tkc-guides a {
	display: block;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink);
}
.tkc-guides a strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 650; }
.tkc-guides a span { color: var(--slate); font-size: 1rem; }
.tkc-guides a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }

.tkc-data-line { font-size: 1rem !important; color: var(--slate) !important; margin-top: 2rem !important; }

/* ---------- Breadcrumbs (fuera de la cabecera) ---------- */
.tkc-breadcrumbs { font-size: 0.88rem; color: var(--slate); }

/* ---------- Pie ---------- */
.tkc-footer { background: var(--ink); color: #b9cad7; padding: 3rem 1.25rem 2.2rem; font-size: 0.95rem; }
.tkc-footer__inner { max-width: 1140px; margin: 0 auto; display: grid; gap: 1.5rem; }
.tkc-footer__brand a { color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-decoration: none; }
.tkc-footer__brand p { margin: 0.35rem 0 0; }
.tkc-footer__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.tkc-footer__nav a { color: #fff; text-decoration: none; font-weight: 600; }
.tkc-footer__nav a:hover { text-decoration: underline; }
.tkc-footer__legal { font-size: 0.85rem; color: #7f9bb2; margin: 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 782px) {
	.tkc-footer__inner { grid-template-columns: 1fr 2fr; align-items: start; }
	.tkc-footer__nav { justify-content: flex-end; }
	.tkc-footer__legal { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.tkc-map .flow path { animation: none !important; }
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Foto, crédito y ola ocupan todo el ancho de la cabecera (fuera del layout "constrained") */
.wp-block-post-content .tkc-hero > img.tkc-cover,
.wp-block-post-content .tkc-hero > svg.tkc-wave,
.wp-block-post-content .tkc-hero > span.tkc-credit {
	max-width: none !important;
	margin: 0 !important;
}
.wp-block-post-content .tkc-hero > span.tkc-credit { left: auto; right: 1rem; bottom: clamp(3rem, 6vw, 5rem); }
