/*
Theme Name: JG Smart Lock
Theme URI: https://jgsmartlockdigital.com/
Author: JG Smart Lock Digital
Description: Tema a la medida para JG Smart Lock Digital: venta e instalación de cerraduras inteligentes en Medellín. Compatible con WooCommerce y Elementor. Se configura en Apariencia → Personalizar → JG Smart Lock.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jgsmartlock
*/

/* ---------- Colores y medidas ---------- */
:root {
	/* Colores de identidad tomados del logo */
	--blanco: #FFFFFF;
	--hielo: #F1F5FB;          /* fondo suave para separar secciones */
	--linea: #D5DFED;          /* líneas y bordes */
	--azul-noche: #0A1B3F;     /* menú, contacto y pie */
	--azul-noche-2: #07132E;
	--azul-marca: #002060;     /* títulos (azul del texto del logo) */
	--texto: #13305E;          /* texto principal en azul */
	--texto-2: #46618F;        /* texto secundario */
	--azul-vivo: #0040A8;      /* enlaces y botones (azul brillante del escudo) */
	--azul-vivo-2: #00337F;
	--azul-luz: #6AA6FF;       /* brillos sobre fondo oscuro */
	--plata: #C3D0E2;
	--wa: #177A42;
	--wa-hover: #10633A;
	--led-verde: #3DDC84;
	--led-rojo: #D9533F;

	/* Nombres usados en el resto de la hoja */
	--acero: var(--hielo);
	--acero-2: var(--linea);
	--grafito: var(--texto);
	--grafito-2: var(--texto-2);
	--petroleo: var(--azul-noche);
	--laton: var(--azul-vivo);
	--laton-oscuro: var(--azul-vivo);
	--laton-claro: var(--azul-luz);

	--f: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-titulo: "Exo 2", "Archivo", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--sec: clamp(3.5rem, 8vw, 6.5rem);
	--r-s: 6px;
	--r-m: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--blanco);
	color: var(--texto);
	font-family: var(--f);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--laton-oscuro); text-underline-offset: .18em; }
a:hover { color: var(--azul-marca); }
:focus-visible { outline: 3px solid var(--laton); outline-offset: 3px; border-radius: 2px; }
.site-main:focus { outline: none; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--azul-marca);
	font-family: var(--f-titulo);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -5rem; z-index: 100;
	background: var(--grafito); color: #fff; padding: .7rem 1rem; border-radius: var(--r-s);
}
.skip-link:focus { top: 1rem; color: #fff; }
.skip-link { background: var(--azul-noche); }
.jgs-anchor { display: block; height: 0; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3rem; padding: .75rem 1.4rem;
	border: 2px solid transparent; border-radius: var(--r-s);
	font: inherit; font-weight: 650; font-stretch: 90%; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--line { border-color: var(--azul-marca); color: var(--azul-marca); }
.btn--line:hover { background: var(--azul-marca); color: #fff; }
.btn--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.on-dark .btn--line { border-color: #C9D5DB; color: #fff; }
.on-dark .btn--line:hover { background: #fff; border-color: #fff; color: var(--petroleo); }

/* ---------- Encabezado ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--azul-noche);
	border-bottom: 1px solid rgba(106, 166, 255, .18);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
	padding-top: env(safe-area-inset-top, 0px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__bar { position: relative; display: flex; align-items: center; gap: 1.25rem; min-height: 5.75rem; }
.brand { margin-right: auto; }
.brand__link { display: block; line-height: 0; }
.site-header img.brand__logo { height: 66px; width: auto; }
.custom-logo { max-height: 54px; width: auto; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav li { position: relative; }
.site-nav a { color: #E3ECF8; text-decoration: none; font-weight: 560; font-stretch: 90%; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: #fff; text-decoration: underline; text-decoration-color: var(--azul-luz); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem;
	list-style: none; margin: 0; padding: .5rem 0; background: var(--azul-noche);
	border: 1px solid rgba(106, 166, 255, .25); border-radius: var(--r-s);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { display: block; padding: .5rem 1rem; }

.header-cart {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 2.6rem; height: 2.6rem; color: #fff;
}
.header-cart svg { width: 1.55rem; height: 1.55rem; }
.jgs-cart-count {
	position: absolute; top: 0; right: -3px; display: grid; place-items: center;
	min-width: 1.2rem; height: 1.2rem; padding: 0 .25rem; border-radius: 1rem;
	background: var(--azul-luz); color: var(--azul-noche); font-size: .72rem; font-weight: 700;
}
.jgs-cart-count[hidden] { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: .55rem; min-height: 2.6rem; padding: .4rem .8rem;
	background: transparent; border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--r-s);
	color: #fff; font: inherit; font-weight: 600; font-stretch: 90%; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-wa { display: none; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		padding: .5rem var(--gutter) 1.5rem; background: var(--azul-noche);
		border-bottom: 1px solid rgba(106, 166, 255, .18);
		max-height: calc(100vh - 5rem); overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 1.15rem; }
	.site-nav .sub-menu { display: block; position: static; border: 0; padding: 0 0 0 1rem; background: transparent; }
}
@media (max-width: 420px) {
	.site-header img.brand__logo { height: 50px; }
	.nav-toggle span:last-child { display: none; }
}

/* ---------- Portada: inicio ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: .4em; font-style: italic; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.hero__lead { max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--grafito-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero__facts {
	list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--acero-2);
	display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .95rem; color: var(--grafito-2);
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--laton); }

/* La cerradura dibujada en CSS */
.lock { justify-self: center; width: min(100%, 290px); padding-left: 48px; }
.lock__body {
	position: relative; padding: 22px 20px 96px; border-radius: 30px; color: #C9D2D8;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
		linear-gradient(165deg, #2B3F66 0%, #142449 45%, #0B1631 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .16),
		inset 0 0 0 1px rgba(106, 166, 255, .12),
		0 40px 60px -30px rgba(0, 32, 96, .55);
}
.lock__screen {
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	height: 44px; margin-bottom: 18px; padding: 0 12px;
	background: #060F24; border: 1px solid #263A62; border-radius: 10px;
	font-size: .78rem; font-stretch: 110%;
}
.lock__dots { display: flex; gap: 4px; min-width: 0; }
.lock__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--laton-claro); }
.lock__status { display: flex; align-items: center; gap: .4rem; color: #8C9AA4; white-space: nowrap; }
.lock__status::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: var(--led-rojo); box-shadow: 0 0 8px var(--led-rojo);
}
.lock__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lock__keys span {
	display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
	font-family: var(--f-titulo); font-weight: 600; font-size: 1.35rem; color: #7F93B8;
	transition: color .12s, text-shadow .12s, background-color .12s;
}
.lock__keys span.is-lit {
	color: #fff; background: rgba(106, 166, 255, .16);
	text-shadow: 0 0 14px rgba(106, 166, 255, 1);
}
.lock__finger {
	display: grid; place-items: center; width: 62px; height: 62px; margin: 16px auto 0;
	border: 1px solid #2E4570; border-radius: 50%; color: #557099; transition: color .3s, border-color .3s;
}
.lock__finger svg { width: 34px; height: 34px; }
.lock__handle {
	position: absolute; left: -48px; bottom: 34px; width: 128px; height: 26px;
	border-radius: 14px 6px 6px 14px;
	background: linear-gradient(180deg, #D9E2EE 0%, #9AA9BD 50%, #6E7E94 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 18px -8px rgba(0, 0, 0, .5);
	transform-origin: calc(100% - 13px) 50%;
	transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.lock__handle::after {
	content: ""; position: absolute; right: -4px; top: -7px; width: 40px; height: 40px; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #F2F6FB, #8E9DB2 70%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .35);
}
.lock.is-open .lock__status { color: var(--led-verde); }
.lock.is-open .lock__status::before { background: var(--led-verde); box-shadow: 0 0 10px var(--led-verde); }
.lock.is-open .lock__finger { color: var(--led-verde); border-color: rgba(61, 220, 132, .45); }
.lock.is-open .lock__handle { transform: rotate(-16deg); }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.lock { width: min(100%, 220px); justify-self: center; }
}

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec); }
.sec--white { background: var(--blanco); }
.sec--tint { background: var(--hielo); }
.sec--contact { background: var(--azul-noche); color: #D3DFEE; }
.sec--contact h2 { color: #fff; }
.sec__head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec__head h2 { margin: 0; }
.sec__head p { max-width: 32rem; margin: 0; color: var(--grafito-2); }

/* Productos en la portada */
.tiles {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.5rem 1.5rem;
}
.tile { display: flex; flex-direction: column; }
.tile__link { display: flex; flex-direction: column; gap: .9rem; flex: 1; color: inherit; text-decoration: none; }
.tile__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-m); background: var(--hielo); border: 1px solid var(--linea); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__title {
	color: var(--azul-marca);
	font-weight: 600; font-stretch: 88%; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile__link:hover .tile__title { text-decoration: underline; }
.tile__price { margin-top: .6rem; font-size: 1.25rem; font-weight: 750; font-stretch: 90%; }
.tile__price del { margin-right: .4rem; font-size: .95rem; font-weight: 400; color: var(--grafito-2); }
.tile__price ins { text-decoration: none; }
.tile__wa { margin-top: .35rem; font-size: .95rem; font-weight: 600; color: var(--wa); }
.tile__wa:hover { color: var(--wa-hover); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.services h3 { margin: 0; padding-bottom: .8rem; border-bottom: 2px solid var(--azul-vivo); }
.services dl { margin: 0; }
.services dt { padding-top: 1.1rem; font-size: 1.12rem; font-weight: 700; font-stretch: 88%; color: var(--azul-marca); }
.services dd { margin: .2rem 0 0; padding-bottom: 1.1rem; border-bottom: 1px solid var(--acero-2); color: var(--grafito-2); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Cómo trabajamos: es una secuencia real, por eso va numerada */
.steps {
	list-style: none; margin: 0; padding: 0; counter-reset: paso;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.steps li { counter-increment: paso; padding-top: 1.25rem; border-top: 2px solid var(--azul-vivo); }
.steps li::before {
	content: counter(paso); display: block; margin-bottom: .6rem;
	font-family: var(--f-titulo); font-style: italic; font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--azul-vivo);
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; color: var(--texto-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Sobre nosotros */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about--solo { grid-template-columns: minmax(0, 46rem); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); }
.about__text p { max-width: 38rem; }
.about__lead { font-size: 1.3rem; line-height: 1.45; font-weight: 500; color: var(--azul-marca); }
.reasons { list-style: none; margin: 2rem 0 0; padding: 0; }
.reasons li { padding: 1rem 0; border-top: 1px solid var(--acero-2); color: var(--grafito-2); }
.reasons strong { display: block; color: var(--azul-marca); font-stretch: 88%; font-size: 1.1rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r-s); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { max-width: 14ch; }
.contact__lead { max-width: 32rem; font-size: 1.2rem; color: #C9D7EC; }
.contact__list { margin: 0; }
.contact__list > div { padding: 1rem 0; border-top: 1px solid rgba(106, 166, 255, .25); }
.contact__list dt { font-size: .92rem; color: #93AACB; }
.contact__list dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 600; color: #fff; }
.contact__list a { color: #fff; }
.contact__form { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--r-m); background: var(--blanco); color: var(--grafito); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.site-footer { padding-block: 3.5rem 2rem; background: var(--azul-noche-2); color: #A9BAD3; font-size: .95rem; border-top: 1px solid rgba(106, 166, 255, .18); }
.site-footer a { color: #E3ECF8; }
.site-footer a:hover { color: var(--azul-luz); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { margin-bottom: 1rem; line-height: 0; }
.site-footer .footer__brand img { height: 84px; width: auto; }
.site-footer h2,
.site-footer .footer-title { margin-top: 0; font-weight: 700; }
.site-footer h2,
.site-footer .footer-title { margin-bottom: .75rem; font-size: 1rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__social { margin-top: 1rem !important; }
.footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
	margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem;
}
.footer__bottom p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
	position: fixed; z-index: 60;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
	background: var(--wa); color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 1.85rem; height: 1.85rem; }

/* ---------- Páginas y blog ---------- */
.content-area { padding-bottom: var(--sec); }
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.page-head h1 { margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--r-s); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.single__img { margin-bottom: 2rem; }
.single__img img { border-radius: var(--r-m); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem 2rem; }
.post-card__img img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); margin-bottom: 1rem; }
.post-card__title { font-size: 1.5rem; }
.post-card__title a { color: var(--azul-marca); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__meta { font-size: .9rem; color: var(--grafito-2); }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.nav-links .page-numbers { padding: .4rem .8rem; border: 1px solid var(--acero-2); border-radius: var(--r-s); text-decoration: none; color: var(--grafito); }
.nav-links .current { background: var(--azul-vivo); color: #fff; border-color: var(--azul-vivo); }

/* Contenido de Elementor: sin márgenes extra del tema */
.elementor-page .site-main > .elementor { margin: 0; }

/* ---------- WooCommerce ---------- */
.shop-wrap { padding-block: clamp(2rem, 5vw, 3.5rem) var(--sec); }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 1.5rem; font-size: .9rem; color: var(--grafito-2); }
.woocommerce .woocommerce-breadcrumb a { color: var(--grafito-2); }
.woocommerce-products-header__title.page-title,
.shop-wrap .page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.woocommerce ul.products {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.5rem 1.5rem; margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex; flex-direction: column; float: none; width: auto; margin: 0;
}
.woocommerce ul.products li.product a img {
	margin-bottom: .9rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); background: var(--hielo); border: 1px solid var(--linea);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0; font-size: 1rem; font-weight: 600; font-stretch: 88%; line-height: 1.3; color: var(--azul-marca);
}
.woocommerce ul.products li.product .price { margin-top: .5rem; font-size: 1.2rem; font-weight: 750; font-stretch: 90%; color: var(--grafito); }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	padding: .8rem 1.25rem; border-radius: var(--r-s); background: var(--azul-vivo); color: #fff;
	font-family: var(--f); font-weight: 650; font-stretch: 90%;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--azul-marca); color: #fff; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt { background: var(--azul-vivo); color: #fff; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover { background: var(--azul-marca); color: #fff; }

.woocommerce span.onsale { min-width: 0; min-height: 0; padding: .3rem .7rem; line-height: 1.3; border-radius: var(--r-s); background: var(--azul-vivo); color: #fff; font-weight: 700; }
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { font-size: 1.8rem; font-weight: 750; font-stretch: 90%; color: var(--grafito); }
.woocommerce div.product div.images img { border-radius: var(--r-m); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: var(--r-s) var(--r-s) 0 0; background: var(--acero-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--blanco); }
.jgs-single-wa { margin-top: 1rem; }

.woocommerce-message, .woocommerce-info { border-top-color: var(--laton); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--laton); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
	padding: .7rem .8rem; border: 1px solid #B4C3D9; border-radius: var(--r-s); background: #fff; font: inherit;
}


/* ---------- Páginas internas: Servicios, Cómo trabajamos, Nosotros, Contacto ---------- */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem); background: var(--hielo); border-bottom: 1px solid var(--linea); }
.page-hero h1 { margin-bottom: .3em; font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.page-hero__intro { max-width: 40rem; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--texto-2); }

.features { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature:nth-child(even) > .media { order: 2; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature p { max-width: 34rem; color: var(--texto-2); }
.feature__num {
	display: block; margin-bottom: .35rem;
	font-family: var(--f-titulo); font-style: italic; font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--azul-vivo);
}
.feature__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 800px) {
	.feature { grid-template-columns: 1fr; }
	.feature:nth-child(even) > .media { order: 0; }
}

.media {
	display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: var(--r-m); background: var(--hielo); border: 1px solid var(--linea);
}
.media--illus .illus { width: 100%; height: 100%; padding: 7%; }
.media--foto img { width: 100%; height: 100%; object-fit: cover; }
.sec--tint .media { background: var(--blanco); }

.checks { list-style: none; margin: 1.25rem 0 1.6rem; padding: 0; display: grid; gap: .55rem; }
.checks li { display: flex; align-items: flex-start; gap: .65rem; }
.checks li::before {
	content: ""; flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; border-radius: 50%;
	background: var(--azul-vivo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.checks--big li { font-size: 1.1rem; color: var(--azul-marca); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.faq details { padding: 1rem 0; border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary {
	display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
	font-size: 1.1rem; font-weight: 700; color: var(--azul-marca);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-titulo); font-size: 1.5rem; line-height: 1; color: var(--azul-vivo); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 44rem; margin: .6rem 0 0; color: var(--texto-2); }

.more-link { margin-top: 1.5rem; font-weight: 600; }

/* Enlaces "Cambiar foto" (solo visibles para administradores) */
.media, .about__photo { position: relative; }
.media__edit {
	position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
	padding: .45rem .8rem; border-radius: var(--r-s);
	background: var(--azul-noche); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.media__edit:hover { background: var(--azul-vivo); color: #fff; }
.edit-link { font-size: .95rem; font-weight: 600; }
.admin-hint { padding: 1.5rem; border: 2px dashed var(--linea); border-radius: var(--r-m); }
.admin-hint p { color: var(--texto-2); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 960px) { .site-header img.brand__logo { height: 56px; } .site-header__bar { min-height: 4.75rem; } }
@media (max-width: 420px) { .site-header img.brand__logo { height: 48px; } }
