/* Grupo La Telera — home of the group: gold, ink and cream; Cormorant Garamond uppercase
   headings over Outfit text (the fonts and colors of the previous WordPress page). */

/* ---------------------------------------------------------------- fonts (self-hosted, latin) */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/outfit-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
	--gold: #bc9050;        /* top bar, rules, icons */
	--gold-light: #cc9d59;  /* big titles, links on dark */
	--gold-dark: #946a2b;   /* small text and buttons: readable on white and cream */
	--ink: #1e1e1e;
	--text: #3a3a3a;
	--muted: #6b6560;
	--cream: #fdf8f1;
	--line: #e6dccd;
	--white: #fff;

	--font-heading: "Cormorant Garamond", "Times New Roman", serif;
	--font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

	--section-y: clamp(56px, 7vw, 100px);
	--gutter: clamp(20px, 4vw, 48px);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.65;
	text-wrap: pretty;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
	font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
	line-height: 1.12; letter-spacing: 0.01em; color: var(--ink); margin: 0; text-wrap: balance;
}
p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong, b { font-weight: 600; }
a { color: var(--gold-dark); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--gold) 34%, transparent); }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px;
	background: var(--ink); color: var(--white); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: var(--section-y) 0; scroll-margin-top: 20px; }

.title-gold { font-size: clamp(42px, 5.6vw, 70px); color: var(--gold-light); }
.eyebrow {
	font-size: 14px; line-height: 1.4; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--gold-dark);
}

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	cursor: pointer; text-decoration: none;
	font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 1.2;
	letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
	color: var(--white); background: var(--gold-dark);
	border: 1px solid var(--gold-dark); border-radius: 2px;
	padding: 13px 26px;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); text-decoration: none; }
.btn--outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); padding: 9px 14px; }
.btn--outline:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 400; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 22px; min-height: 46px; padding-block: 6px; }
.topbar a { color: inherit; }
.topbar__home { margin-right: auto; font-family: var(--font-heading); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .social { gap: 12px; }
@media (max-width: 600px) {
	.topbar__inner { justify-content: center; }
	.topbar__home { margin-right: 0; width: 100%; text-align: center; }
	.topbar__contact { justify-content: center; }
}

.social { display: flex; gap: 16px; }
.social a { display: grid; place-items: center; color: var(--ink); }
.social a:hover { color: var(--gold-dark); }
.social--round { justify-content: center; gap: 14px; }
.social--round a { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--white); }
.social--round a:hover { background: var(--white); color: var(--gold-dark); }

/* ---------------------------------------------------------------- hero */
.hero {
	position: relative; isolation: isolate;
	min-height: min(86vh, 800px); display: grid; align-items: center;
	padding: clamp(64px, 9vw, 120px) 0;
	background: var(--ink); color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / .55); }
/* Gold line that crosses into the next section. */
.hero::after { content: ""; position: absolute; left: 50%; bottom: -36px; width: 1px; height: 72px; background: var(--gold); }
.hero__inner { display: grid; justify-items: center; gap: clamp(20px, 3vw, 34px); text-align: center; }
.hero__logo { width: clamp(180px, 22vw, 300px); }
.hero__claim {
	font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
	font-size: clamp(30px, 4.4vw, 58px); line-height: 1.12; letter-spacing: 0.02em; max-width: 30ch; text-wrap: balance;
	text-shadow: 0 2px 18px rgb(0 0 0 / .35);
}

/* ---------------------------------------------------------------- intro + logos */
.intro { padding-top: calc(var(--section-y) + 24px); }
.intro h1 { margin-bottom: 26px; }
.intro p + p { margin-top: 18px; }
.intro__lead { font-weight: 600; color: var(--ink); }
.brands {
	display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 48px);
	margin-top: clamp(40px, 5vw, 64px);
}
.brands a { display: block; border-radius: 50%; }
.brands img { width: clamp(96px, 11vw, 120px); transition: transform .35s ease; }
.brands a:hover img { transform: scale(1.07); }
@media (max-width: 560px) { .brands { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; } }

/* ---------------------------------------------------------------- the four lines */
.lines { padding-bottom: var(--section-y); }
.line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.line__photo { position: relative; min-height: clamp(300px, 34vw, 450px); }
/* The photo fills the row; the row height comes from the text (portrait photos would stretch it). */
.line__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line__text {
	display: grid; align-content: center; gap: 22px;
	padding: clamp(32px, 5vw, 64px) clamp(26px, 5vw, 60px);
	background: var(--cream);
}
.line__text h2 { font-size: clamp(30px, 3vw, 40px); }
.line__text p { max-width: 46ch; font-size: 16.5px; }
.line__text .btn { margin-top: 6px; }
.line--reverse .line__photo { order: 2; }
@media (max-width: 760px) {
	.line { grid-template-columns: 1fr; }
	.line--reverse .line__photo { order: 0; }
	.line__photo { min-height: 0; aspect-ratio: 4 / 3; }
	.line + .line { margin-top: 20px; }
}

/* ---------------------------------------------------------------- experience */
.experience {
	padding: clamp(80px, 10vw, 140px) 0;
	color: var(--white);
	background-color: var(--ink);
	background-image: linear-gradient(rgb(0 0 0 / .62), rgb(0 0 0 / .62)), var(--bg-sm);
	background-size: cover; background-position: center;
}
@media (min-width: 901px) { .experience { background-image: linear-gradient(rgb(0 0 0 / .62), rgb(0 0 0 / .62)), var(--bg-lg); } }
.experience h2 { color: var(--white); font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 26px; }
.experience p + p { margin-top: 16px; }
.experience__contact { display: grid; justify-items: center; gap: 4px; margin-top: 30px !important; }
.experience__contact a { color: var(--gold-light); font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; letter-spacing: 0.02em; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.experience .social { margin-top: 30px; }

/* ---------------------------------------------------------------- contact */
.contact__head { margin-bottom: clamp(36px, 4.6vw, 56px); }
.contact__head h2 { font-size: clamp(38px, 4.6vw, 56px); margin-top: 6px; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(32px, 6vw, 76px); align-items: start; }
.contact__info { display: grid; gap: 30px; }
.datos > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.datos > div:first-child { padding-top: 0; }
.datos dt { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.datos dd { color: var(--text); }
.datos a { color: inherit; }
.jobs { padding: 24px 26px; background: var(--cream); font-weight: 600; color: var(--ink); }
.jobs a { color: var(--gold-dark); }

.form-card { display: grid; gap: 22px; align-content: start; }
.field > label:not(.check) {
	display: block; margin-bottom: 7px;
	font-size: 13px; line-height: 1.3; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.input {
	width: 100%; min-height: 44px; padding: 8px 12px;
	font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--gold-dark);
	background: #fafafa; border: 1px solid #cfcac3; border-radius: 4px;
}
.input:hover { border-color: #a9a39b; }
.input:focus-visible { border-color: var(--gold-dark); outline: 2px solid color-mix(in srgb, var(--gold) 40%, transparent); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #a3372b; }
textarea.input { min-height: 110px; resize: vertical; }
.select { position: relative; display: grid; }
.select select { appearance: none; padding-right: 42px; cursor: pointer; }
.select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-dark); cursor: pointer; }
.field-error { margin-top: 6px; font-size: 14px; line-height: 1.4; color: #a3372b; }
.field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card__legal { font-size: 13px; line-height: 1.55; color: var(--muted); }
.form-alert { padding: 12px 16px; font-size: 15px; line-height: 1.5; border-left: 3px solid #a3372b; background: #fbeeec; }
.form-card--sent { justify-items: start; gap: 18px; padding: clamp(28px, 4vw, 44px); background: var(--cream); }
.form-card__check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--white); }
.form-card--sent h3 { font-size: clamp(28px, 3vw, 36px); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #cfcac3; font-size: 14px; line-height: 1.6; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; padding-block: 22px; }
.site-footer a, .site-footer .link-button { color: inherit; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer__legal li + li::before { content: "|"; margin-right: 6px; color: var(--gold); }

/* ---------------------------------------------------------------- legal pages and 404 */
.page-legal { min-height: 62vh; }
.page-legal .title-gold { margin: 10px 0 18px; }
.page-legal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.breadcrumb { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: inherit; text-decoration: underline; }
.prose h1 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 14px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 40px 0 12px; }
.prose p, .prose ul { margin-bottom: 16px; }
.legal-updated { font-style: italic; color: var(--muted); }
.legal-data { padding-left: 1.2em; list-style: disc; }
.pending { background: #fff3a6; color: #5a4600; padding: 0 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose thead th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------- cookie consent (only with GA) */
.cookie-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
	background: var(--ink); color: var(--white);
	border-top: 2px solid var(--gold); padding: 18px 0;
}
.cookie-banner__inner { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 15px; line-height: 1.6; }
.cookie-banner__inner > p:first-child { flex: 1 1 420px; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn, .cookie-settings .btn { padding: 11px 18px; font-size: 12px; }
.cookie-banner .btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold-light); }
.cookie-settings { max-width: 560px; width: calc(100% - 32px); padding: 28px; border: 1px solid var(--gold); background: var(--white); color: var(--text); }
.cookie-settings::backdrop { background: rgb(0 0 0 / .7); }
.cookie-settings h2 { font-size: 28px; margin-bottom: 12px; }
.cookie-settings p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.cookie-settings fieldset { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 0 0 12px; }
.cookie-settings legend { display: flex; justify-content: space-between; width: 100%; font-weight: 600; }
.cookie-settings__always { font-size: 13px; font-weight: 400; font-style: italic; }
.cookie-settings__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- reveal on scroll (site.js) */
.reveal-wait { opacity: 0; }
.reveal-in { animation: lt-rise .8s cubic-bezier(.2, .75, .3, 1) both; }
@keyframes lt-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
