/*
Theme Name: Tarjeta Vecino 2026
Theme URI: https://sitiopwa.test
Author: ResIT
Description: Tema base de presentación para el sitio informativo Tarjeta Vecino. Toda la funcionalidad PWA (manifest, service worker, offline, instalación, push) vive en el mu-plugin, no en este tema.
Version: 1.9.27
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarjetavecino-theme
*/

/* Estilos mínimos del tema. La maqueta real se construye con Elementor. */

:root {
	--tv-theme-color: #6eb92b;
	--tv-bg-color: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	background: var(--tv-bg-color);
	line-height: 1.5;
}

.tv-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.tv-shell h1 {
	color: var(--tv-theme-color);
}

.tv-install-btn {
	display: none; /* register.js lo muestra cuando hay beforeinstallprompt disponible */
	margin-top: 1.5rem;
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	color: #fff;
	background: var(--tv-theme-color);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

/* Header + menú estático (sin administración: enlaces fijos en header.php). */
.tv-header {
	background: var(--tv-theme-color);
}

.tv-nav {
	max-width: 960px;
	margin: 0 auto;
	padding: 0.6rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
}

.tv-nav__brand {
	margin-right: auto;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.tv-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

.tv-nav__menu a {
	display: inline-block;
	padding: 0.35rem 0.25rem;
	color: #fff;
	text-decoration: none;
}

.tv-nav__menu a:hover,
.tv-nav__menu a:focus {
	text-decoration: underline;
}

/* Footer simple. */
.tv-footer {
	margin-top: 3rem;
	padding: 1.5rem 1.25rem;
	border-top: 1px solid #e0e0e0;
	color: #50575e;
	font-size: 0.9rem;
	text-align: center;
}

/* Pantallas de comercio: login + validación por QR. */
.tv-comercio {
	max-width: 420px;
	margin: 2rem auto;
	padding: 0 1.25rem;
}

.tv-card {
	width: 100%;
}

.tv-card h1 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.tv-field {
	margin: 1rem 0;
}

/* Estilos LEGACY de formulario (comercio/mi-cuenta aún sin re-skin). Se excluyen los
   controles de la entrega (.tv-field__control / .tv-field__label) para no pisar su tamaño
   v3 (36px) en las pantallas ya migradas (login/registro/activar). */
.tv-field label:not(.tv-field__label) {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.tv-field input:not(.tv-field__control) {
	width: 100%;
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
}

.tv-btn {
	width: 100%;
	padding: 0.8rem 1rem;
	font-size: 1rem;
	color: #fff;
	background: var(--tv-theme-color);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.tv-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.tv-msg {
	min-height: 1.2em;
	margin-top: 1rem;
	color: #b32d2e;
}

.tv-status {
	min-height: 1.2em;
	margin-top: 0.5rem;
	color: #50575e;
	font-size: 0.9rem;
}

.tv-btn-link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0;
	background: none;
	border: 0;
	color: #2271b1;
	font-size: 0.95rem;
	text-decoration: underline;
	cursor: pointer;
}
