/*
Theme Name: Buho Chile
Theme URI: https://buho.cl
Description: Tema personalizado para Buho Chile - Soluciones para la Oficina. 95 años de experiencia en el mercado chileno.
Author: Buho Chile
Version: 1.0.21
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2
Text Domain: buho-theme
Tags: woocommerce, e-commerce, custom-menu
*/

/* ==========================================================================
   1. CSS Variables / Design Tokens
   ========================================================================== */
:root {
	--buho-text: #161615;
	--buho-bg: #ffffff;
	--buho-accent: #E30613;
	--buho-heading: #161615;
	--buho-border: #E7E5DD;
	--buho-btn-bg: #E30613;
	--buho-btn-text: #ffffff;
	--buho-btn-hover: #B90510;
	--buho-sale: #B90510;
	--buho-success: #008060;
	--buho-highlight: #B8860B;
	--buho-placeholder: #F5F3EC;
	--buho-overlay: rgba(22, 22, 21, 0.6);
	--buho-red: #E30613;

	--font-body: 'Poppins', sans-serif;
	--font-heading: 'Montserrat', sans-serif;
}

/* ==========================================================================
   2. Reset & Normalize
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 100%; /* 16px base on desktop */
}

@media (max-width: 768px) {
	html {
		font-size: 93.75%; /* 15px base on mobile */
	}
}

body {
	font-family: var(--font-body);
	color: var(--buho-text);
	background-color: var(--buho-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* red de seguridad: nada (marquee, carrusel, etc.) puede generar scroll horizontal de la página */
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

ul, ol {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--buho-heading);
	line-height: 1.2;
	margin-bottom: 1rem;
	font-weight: 600;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
	margin-bottom: 1rem;
}

/* ==========================================================================
   4. Layout & Components
   ========================================================================== */
.buho-container {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

@media (max-width: 768px) {
	.buho-container {
		padding: 0 1rem;
	}
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.buho-btn,
button,
input[type="submit"],
input[type="button"],
.button {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	padding: 12px 24px;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 0;
	transition: all 0.3s ease;
	line-height: 1;
	text-decoration: none;
}

.buho-btn--primary,
button:not(.buho-btn--outline),
input[type="submit"]:not(.buho-btn--outline),
.button:not(.buho-btn--outline) {
	background-color: var(--buho-btn-bg);
	color: var(--buho-btn-text);
	border-color: var(--buho-btn-bg);
}

.buho-btn--primary:hover,
button:not(.buho-btn--outline):hover,
input[type="submit"]:not(.buho-btn--outline):hover,
.button:not(.buho-btn--outline):hover {
	background-color: var(--buho-bg);
	color: var(--buho-btn-bg);
}

.buho-btn--outline {
	background-color: transparent;
	color: var(--buho-btn-bg);
	border-color: var(--buho-btn-bg);
}

.buho-btn--outline:hover {
	background-color: var(--buho-btn-bg);
	color: var(--buho-btn-text);
}

.buho-btn--large {
	padding: 16px 32px;
	font-size: 16px;
}

/* ==========================================================================
   6. Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 10px 0;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--buho-text);
	background-color: transparent;
	border: none;
	border-bottom: 1px solid var(--buho-border);
	border-radius: 0;
	outline: none;
	transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-bottom-color: var(--buho-accent);
}

input::placeholder,
textarea::placeholder {
	color: #999;
}

/* ==========================================================================
   7. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
