/*
Theme Name: Farecor
Theme URI: https://smalldev.es
Author: Small Development
Author URI: https://smalldev.es
Description: Tema WordPress a medida para Farecor (suministro y producción de cementos), maquetado a partir del diseño Figma "FARECOR". HTML/CSS a medida sobre WordPress como CMS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farecor
*/

/* -------------------------------------------------------------------------
   Design tokens (extraídos de Figma vía get_variable_defs)
   ------------------------------------------------------------------------- */
:root {
	--color-primary: #d31223; /* Primary */
	--color-dark: #5d5f57; /* Gris Oscuro */
	--color-light: #a2a39a; /* Gris Claro */
	--color-light-bg: #f3f3f2;
	--color-white: #ffffff;
	--color-black: #000000;

	--font-base: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

	--fs-h1: 48px;
	--lh-h1: 55px;
	--fs-h2: 36px;
	--lh-h2: 43px;
	--fs-h3: 28px;
	--lh-h3: 35px;
	--fs-h4: 22px;
	--lh-h4: 29px;
	--fs-h5: 18px;
	--lh-h5: 25px;
	--fs-body: 16px;
	--lh-body: 24px;
	--fs-small: 14px;
	--lh-small: 21px;

	--shadow-box: 4px 8px 8px rgba(0, 0, 0, 0.15);
	--container-width: 1300px;
	--radius-pill: 100px;
}

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

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

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-dark);
	background: var(--color-white);
}

img {
	max-width: 100%;
	display: block;
}

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

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

button {
	font-family: inherit;
	cursor: pointer;
}

input,
textarea,
button {
	font-family: inherit;
	font-size: inherit;
}

/* -------------------------------------------------------------------------
   Tipografía
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
	color: var(--color-dark);
}

h1 {
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
}
h2 {
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
}
h3 {
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: var(--lh-h3);
}
h4 {
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: var(--lh-h4);
}
h5 {
	font-size: var(--fs-h5);
	font-weight: 600;
	line-height: var(--lh-h5);
}

p {
	margin: 0 0 1em;
}

/* -------------------------------------------------------------------------
   Layout utilities
   ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.section {
	padding-block: 80px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	padding: 4px 12px;
	margin-bottom: 14px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-weight: 500;
	font-size: var(--fs-h5);
	line-height: var(--lh-h5);
	border: 2px solid transparent;
	padding: 8px 24px;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover {
	opacity: 0.85;
}

.btn-white-pill {
	background: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-primary);
	border-radius: var(--radius-pill);
	padding: 16px 32px;
}

.btn-outline {
	background: transparent;
	border-color: var(--color-dark);
	color: var(--color-dark);
	padding: 8px 32px;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

@media (max-width: 1023px) {
	:root {
		--fs-h1: 36px;
		--lh-h1: 43px;
		--fs-h2: 28px;
		--lh-h2: 35px;
		--fs-h3: 22px;
		--lh-h3: 29px;
	}
	.section {
		padding-block: 56px;
	}
}
