/*
Theme Name: Santolina Jardinería
Description: Tema ligero y optimizado para SEO local para Santolina Jardinería (Menorca). Al activarlo crea las páginas de servicio, el menú y los títulos SEO.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: santolina
*/

:root {
	--fondo: #f7f5ee;
	--papel: #ffffff;
	--tinta: #1f2a22;
	--suave: #5b665d;
	--verde: #3d5a40;
	--verde-osc: #2a3f2d;
	--salvia: #dfe5d6;
	--flor: #e2b52c;
	--linea: #dcd8cb;
	--ancho: 1120px;
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--fondo);
	color: var(--tinta);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-osc); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--verde-osc); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 1.8em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 760px; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--papel); padding: 10px 14px; z-index: 100; }
.saltar:focus { left: 10px; top: 10px; }

/* Botones */
.boton {
	display: inline-block; padding: .8em 1.4em; border-radius: 999px;
	background: var(--flor); color: var(--tinta); font-weight: 600; text-decoration: none;
	border: 2px solid var(--flor); transition: transform .15s ease, background .15s ease;
}
.boton:hover { background: #edc441; color: var(--tinta); transform: translateY(-1px); }
.boton--linea { background: transparent; border-color: currentColor; color: inherit; }
.boton--linea:hover { background: rgba(255,255,255,.12); color: inherit; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Cabecera */
.cabecera { background: var(--papel); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 50; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { font-family: var(--serif); font-size: 1.35rem; color: var(--verde-osc); text-decoration: none; line-height: 1.1; }
.marca small { display: block; white-space: nowrap; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.marca img { max-height: 48px; width: auto; }
.menu-boton { display: none; background: none; border: 1px solid var(--linea); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--tinta); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--tinta); text-decoration: none; border-radius: 8px; font-size: .98rem; }
.nav a:hover, .nav .current-menu-item > a { background: var(--salvia); }
.nav .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; min-width: 280px;
	background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 8px;
	flex-direction: column; align-items: stretch; box-shadow: 0 12px 30px rgba(31,42,34,.12);
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.cabecera .boton { padding: .55em 1.1em; font-size: .95rem; white-space: nowrap; }

/* Portada */
.hero { background: linear-gradient(160deg, var(--verde-osc), var(--verde) 70%, #55744f); color: #fff; padding: clamp(56px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(226,181,44,.35), rgba(226,181,44,0) 65%);
}
.hero .contenedor { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15em; }
.hero p { font-size: 1.2rem; max-width: 38em; color: #e9efe3; }
.hero__etiqueta { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--flor); margin-bottom: 1em; }

.seccion { padding: clamp(48px, 7vw, 84px) 0; }
.seccion--papel { background: var(--papel); border-block: 1px solid var(--linea); }
.seccion > .contenedor > h2:first-child { margin-top: 0; }
.entrada { color: var(--suave); max-width: 44em; font-size: 1.1rem; }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 2em; list-style: none; padding: 0; }
.tarjeta {
	background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; padding: 26px; margin: 0;
	display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease;
}
.seccion--papel .tarjeta { background: var(--fondo); }
.tarjeta:hover { border-color: var(--verde); transform: translateY(-2px); }
.tarjeta h3 { margin-bottom: .4em; }
.tarjeta h3 a { text-decoration: none; color: inherit; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta { position: relative; }
.tarjeta p { color: var(--suave); margin: 0; font-size: 1rem; }
.tarjeta__mas { margin-top: auto; padding-top: 1em; color: var(--verde); font-weight: 600; font-size: .95rem; }

.puntos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 2em; }
.puntos h3 { font-size: 1.15rem; }
.puntos p { color: var(--suave); margin: 0; }
.zonas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin-top: 1.4em; }
.zonas li { margin: 0; background: var(--salvia); border-radius: 999px; padding: 6px 16px; font-size: .95rem; }

.llamada { background: var(--verde-osc); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 48px); margin: 3em 0 0; }
.llamada h2 { color: #fff; margin-top: 0; }
.llamada p { color: #e2e9db; max-width: 40em; }

/* Páginas interiores */
.titular { background: var(--salvia); padding: clamp(36px, 6vw, 64px) 0; }
.titular h1 { margin: 0; max-width: 18em; }
.migas { font-size: .9rem; color: var(--suave); margin-bottom: 1em; }
.migas a { color: var(--suave); }
.contenido { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.contenido .wp-block-image img, .destacada { border-radius: 16px; }
.destacada { margin-bottom: 2em; width: 100%; }
.contacto-datos { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 12px; }
.contacto-datos li { background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 16px 20px; margin: 0; }
.contacto-datos strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--suave); font-weight: 600; }
.aviso { background: #fff7dc; border: 1px solid #ecd58a; border-radius: 12px; padding: 14px 18px; font-size: .95rem; }
.lista-entradas { list-style: none; padding: 0; }
.lista-entradas li { padding: 22px 0; border-bottom: 1px solid var(--linea); }
.lista-entradas h2 { margin: 0 0 .3em; font-size: 1.5rem; }
.lista-entradas h2 a { text-decoration: none; }

/* Pie */
.pie { background: var(--verde-osc); color: #d6dfd0; padding: 48px 0 28px; font-size: .97rem; }
.pie a { color: #fff; }
.pie__rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.pie h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .8em; font-family: var(--sans); font-weight: 600; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie__legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #aebba8; }

@media (max-width: 900px) {
	.menu-boton { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papel); border-bottom: 1px solid var(--linea); padding: 10px 20px 18px; max-height: calc(100vh - 68px); overflow: auto; }
	.nav.abierto { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.cabecera .boton { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
