/*
Theme Name: Vertex
Theme URI: https://www.miprimeraweb.cl
Author: Fabian Ibañez
Author URI: https://www.miprimeraweb.cl
Author Email: Hola@miprimeraweb.cl
Description: Vertex con Helvetica en encabezados, Inter en contenidos y fondo #f8f8f8. Estructura, SEO, widgets y compatibilidad con Elementor y WooCommerce. Theme by Mi primera web · Hola@miprimeraweb.cl
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: vertex
Tags: minimal, elementor, woocommerce, blank
*/

/* =========================================================
   RESET BÁSICO
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}

:root {
	--vertex-bg: #f8f8f8;
	--vertex-text: #1a1a1a;
	--vertex-heading: #111111;
	--vertex-border: rgba(0, 0, 0, 0.1);
	--vertex-accent-bg: #111111;
	--vertex-accent-text: #f8f8f8;
}

body {
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
}

/* =========================================================
   TIPOGRAFÍA
   Contenidos: Inter (Google Fonts, cargada en functions.php)
   Encabezados: Helvetica (fuente de sistema, sin carga externa)
   ========================================================= */
body,
p,
li,
a,
button,
input,
textarea,
select,
table,
th,
td {

	font-weight: 400;
	line-height: 1.6;
	font-size: 15px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	margin-top: 0;
	margin-bottom: 0.6em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

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

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

/* =========================================================
   ESTRUCTURA MÍNIMA
   ========================================================= */
.site {
	width: 100%;
}

.site-header,
.site-footer {
	padding: 24px 32px;
}

.site-content {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 32px;
}

/* Contenedor para plantillas con sidebar (single, archive, tienda):
   pone el contenido y el widget-area lado a lado. */
.content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px;
}

.content-wrapper .site-content {
	max-width: none;
	margin: 0;
	padding: 0;
	flex: 1 1 0%;
	min-width: 280px;
}

.content-wrapper .widget-area {
	flex: 0 0 300px;
	max-width: 300px;
}

@media (max-width: 782px) {
	.content-wrapper .widget-area {
		flex-basis: 100%;
		max-width: none;
	}
}

.site-branding a {
	font-size: 1.4rem;
	font-weight: 700;
}

.main-navigation ul {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

/* =========================================================
   WIDGETS Y SIDEBAR
   ========================================================= */
.widget-area {
	width: 100%;
}

.widget {
	margin-bottom: 32px;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 0.8em;
}

.widget ul li {
	margin-bottom: 8px;
}

/* Columnas de widgets en el footer */
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding-bottom: 32px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--vertex-border);
}

.footer-widgets-column .widget {
	margin-bottom: 24px;
}

.footer-widgets-column .widget-title {
	font-size: 1rem;
}

/* =========================================================
   COMPATIBILIDAD CON ELEMENTOR
   ========================================================= */
.elementor-page .site-content {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* =========================================================
   COMPATIBILIDAD CON WOOCOMMERCE
   ========================================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
	background-color: var(--vertex-accent-bg);
	color: var(--vertex-accent-text);
	border-radius: 2px;
	padding: 12px 24px;
	border: none;
	transition: opacity 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
	opacity: 0.85;
	background-color: var(--vertex-accent-bg);
	color: var(--vertex-accent-text);
}
