/* ==========================================================================
   Granada & Costa · Base del sistema de diseño
   Lujo minimalista: blanco, tinta azul, filetes de 1 px, esquinas rectas.
   Gloock (títulos) + Jost (texto, menús, botones).
   ========================================================================== */

/* ---------- Fuentes alojadas en el tema (SIL OFL) ---------- */
@font-face {
	font-family: "Gloock";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("../fonts/gloock-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Gloock";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("../fonts/gloock-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
	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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	/* Corporativos */
	--gc-blue: #1F618D;        /* azul principal: botones, barras, acentos */
	--gc-blue-deep: #184E72;   /* mismo azul, más oscuro (hover) */
	--gc-teal: #0A77A2;        /* foco */
	--gc-sky: #3592C6;         /* celeste del logo */
	--gc-sky-soft: #5499C7;    /* celeste del tema */
	--gc-violet: #381A78;      /* violeta del logo: solo detalles mínimos */

	/* Neutros fríos (sin crema) */
	--gc-ink: #13202A;         /* tinta para títulos */
	--gc-text: #34414B;
	--gc-muted: #6B7680;
	--gc-line: #E2E6EA;
	--gc-line-strong: #C9D0D6;
	--gc-surface: #FFFFFF;
	--gc-wash: #F6F7F8;
	--gc-wash-blue: #F6F7F8;

	/* Tipografía */
	--gc-font-display: "Gloock", "Didot", Georgia, serif;
	--gc-font-text: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
	--gc-track: .16em;         /* espaciado de las mayúsculas pequeñas */

	/* Forma: recta. Sin sombras decorativas */
	--gc-radius-sm: 0;
	--gc-radius: 0;
	--gc-radius-lg: 0;
	--gc-shadow-sm: none;
	--gc-shadow: none;
	--gc-shadow-lg: 0 18px 40px -24px rgba(19, 32, 42, .35);

	/* Ritmo */
	--gc-container: 1280px;
	--gc-gutter: clamp(20px, 5vw, 48px);
	--gc-section: clamp(4.5rem, 10vw, 8rem);
	--gc-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px;
	scrollbar-color: #C9D0D6 transparent;
}

body {
	font-family: var(--gc-font-text);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--gc-text);
	background: var(--gc-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}

p {
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--gc-font-display);
	color: var(--gc-ink);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

a {
	color: var(--gc-blue);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .25em;
	text-decoration-color: rgba(31, 97, 141, .35);
	transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover {
	color: var(--gc-ink);
	text-decoration-color: currentColor;
}

strong, b {
	font-weight: 500;
	color: var(--gc-ink);
}

::selection {
	background: var(--gc-blue);
	color: #fff;
}

:focus-visible {
	outline: 1px solid var(--gc-blue);
	outline-offset: 4px;
}

/* Elementor fuerza su propia fuente en widgets: unificamos */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-icon-box .elementor-icon-box-description,
.elementor-widget-image-box .elementor-image-box-description {
	font-family: var(--gc-font-text);
}
.elementor-heading-title,
.elementor-icon-box-title,
.elementor-image-box-title {
	font-family: var(--gc-font-display);
}

/* Títulos de sección (widget Título de Elementor) */
.elementor-widget-heading .elementor-widget-container > .elementor-heading-title {
	color: var(--gc-ink);
	text-align: center;
	text-transform: none;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	padding: 0;
	margin: 0 0 .6em;
}
.elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
}
.elementor-widget-heading h3.elementor-heading-title {
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}
/* Filete fino bajo los títulos de sección */
.elementor-widget-heading h2.elementor-heading-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin: .55em auto 0;
	background: var(--gc-blue);
}

/* ---------- Botones: rectángulo, mayúsculas espaciadas ---------- */
.gc-btn,
.elementor-button-wrapper > a.elementor-button,
input[type="submit"],
button.wpcf7-submit,
.es-btn.es-btn--request-info,
.es-btn.es-btn--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .9em;
	min-height: 52px;
	padding: 0 2.1em;
	font-family: var(--gc-font-text);
	font-size: .78rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: var(--gc-track);
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid transparent;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.gc-btn--primary,
.elementor-button-wrapper > a.elementor-button,
input[type="submit"],
button.wpcf7-submit,
.es-btn.es-btn--request-info,
.es-btn.es-btn--primary {
	background-color: var(--gc-blue);
	border-color: var(--gc-blue);
	color: #fff;
}
.gc-btn--primary:hover,
.elementor-button-wrapper > a.elementor-button:hover,
input[type="submit"]:hover,
button.wpcf7-submit:hover,
.es-btn.es-btn--request-info:hover {
	background-color: var(--gc-ink);
	border-color: var(--gc-ink);
	color: #fff;
}

.gc-btn--outline {
	background: transparent;
	color: var(--gc-ink);
	border-color: var(--gc-ink);
}
.gc-btn--outline:hover {
	background: var(--gc-ink);
	color: #fff;
}

.gc-btn--block {
	display: flex;
	width: 100%;
}

.gc-btn .gc-icon {
	flex: none;
	width: 18px;
	height: 18px;
}

/* Flecha fina tras el texto de los botones de Elementor */
.elementor-button .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
}
.elementor-button .elementor-button-text {
	color: inherit;
}
.elementor-button .elementor-button-content-wrapper::after {
	content: "";
	width: 22px;
	height: 10px;
	margin-left: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20.5M16.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20.5M16.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .35s var(--gc-ease-out);
}
.elementor-button:hover .elementor-button-content-wrapper::after {
	transform: translateX(4px);
}

/* ---------- Utilidades ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: .9em 1.2em;
	background: var(--gc-surface);
	color: var(--gc-ink);
	border: 1px solid var(--gc-ink);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Variantes de botón para widgets de Elementor (clase en "Avanzado → Clases CSS") ---------- */
/* gc-btn-line: enlace con filete inferior, sin caja */
.gc-btn-line .elementor-button-wrapper > a.elementor-button {
	min-height: 0;
	padding: 0 0 .55em;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--gc-ink);
}
.gc-btn-line .elementor-button-wrapper > a.elementor-button:hover {
	background: none;
	border-color: var(--gc-blue);
	color: var(--gc-blue);
}
/* gc-btn-alt: contorno (sobre fondo oscuro se vuelve blanco) */
.gc-btn-alt .elementor-button-wrapper > a.elementor-button {
	background: transparent;
	border-color: var(--gc-ink);
	color: var(--gc-ink);
}
.gc-btn-alt .elementor-button-wrapper > a.elementor-button:hover {
	background: var(--gc-ink);
	color: #fff;
}
.gc-btn-alt .elementor-button .elementor-button-content-wrapper::after {
	content: none;
}
/* gc-title-left: título de sección alineado a la izquierda */
.gc-title-left .elementor-widget-container > .elementor-heading-title {
	text-align: left;
}
.gc-title-left h2.elementor-heading-title::after {
	margin-left: 0;
}
