/* =========================================================
   PÁGINAS DE SERVICIO (templates/servicio-*.php)
   Compartido por Derecho Minero, TAX y los servicios que se agreguen.
   Textos en /data/servicios/{clave}.json; este archivo solo presenta.
   ========================================================= */

/* ---------- 1. Tokens y reset ---------- */
.sv-page {
	--sv-orange: #FF6A16;
	--sv-orange-dark: #E9570A;
	--sv-navy: #0B1424;
	--sv-navy-2: #14213A;
	--sv-ink: #1C1C1E;
	--sv-text: #4A4A4F;
	--sv-muted: #7A7A80;
	--sv-line: #E4E2DF;
	--sv-gris: #F4F3F1;
	--sv-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--sv-header-h: 100px; /* alto del header del sitio */
	position: relative;
	font-family: var(--sv-font);
	color: var(--sv-text);
	background: #fff;
}
.sv-page,
.sv-page *,
.sv-page *::before,
.sv-page *::after { box-sizing: border-box; }
.sv-page p { margin: 0; }
.sv-page h1, .sv-page h2, .sv-page h3 { margin: 0; font-family: var(--sv-font); }
.sv-page ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.sv-page li { margin: 0; }
.sv-page li::before { display: none; }
.sv-page [hidden] { display: none !important; }
.sv-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- 2. Header del sitio superpuesto ---------- */
body.sv-page-body main.sv-page { margin-top: calc(-1 * var(--sv-header-h)) !important; padding-top: 0 !important; z-index: 1; }
body.sv-page-body .site-content,
body.sv-page-body .page-content { margin-top: 0 !important; padding-top: 0 !important; }
body.sv-page-body #masthead { position: relative; z-index: 10; }

/* ---------- 3. Portada ---------- */
.sv-hero {
	position: relative;
	padding: calc(var(--sv-header-h) + 86px) 0 130px;
	background-color: var(--sv-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}
.sv-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 20, 36, .72) 0%, rgba(11, 20, 36, .45) 45%, rgba(11, 20, 36, .7) 100%);
}
.sv-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.sv-hero__eyebrow { font-size: 15px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: #fff !important; }
.sv-hero__linea { display: block; width: 130px; height: 3px; margin: 16px auto 18px; border-radius: 3px; background: var(--sv-orange); }
.sv-hero__title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: #fff !important; }
.sv-hero__subtitle { margin-top: 14px !important; font-size: clamp(14px, 1.4vw, 18px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .92) !important; }

/* ---------- 4. Introducción + servicios (tarjeta blanca que monta sobre la portada) ---------- */
.sv-intro { position: relative; z-index: 2; margin-top: -48px; padding: 64px 0 72px; border-radius: 32px 32px 0 0; background: #fff; }
.sv-intro__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.sv-title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; font-weight: 800; color: var(--sv-ink) !important; }
.sv-lead { margin-top: 18px !important; font-size: 16px; line-height: 1.7; color: var(--sv-text); }
.sv-subtitle { margin-top: 30px !important; font-size: 17px; font-weight: 700; color: var(--sv-ink) !important; }

.sv-page .sv-lista { display: flex; flex-direction: column; gap: 16px; margin-top: 20px !important; }
.sv-lista li { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 2px 16px; border-left: 3px solid var(--sv-orange); }
.sv-lista strong { font-size: 15.5px; line-height: 1.35; font-weight: 700; color: var(--sv-ink); }
.sv-lista span { font-size: 14.5px; line-height: 1.6; color: var(--sv-text); }

.sv-intro__foto { position: sticky; top: 30px; margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 24px 50px rgba(20, 30, 50, .16); }
.sv-intro__foto img { display: block; width: 100%; height: auto; aspect-ratio: 536 / 551; object-fit: cover; }

/* Botones (el tema los pinta de fucsia en :focus/:active: se neutraliza) */
.sv-page .sv-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	font-family: var(--sv-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}
.sv-page .sv-btn svg { flex: 0 0 auto; width: 20px; height: 20px; }
.sv-page .sv-btn--oscuro { background: var(--sv-navy-2); color: #fff !important; }
.sv-page .sv-btn--oscuro:hover,
.sv-page .sv-btn--oscuro:focus,
.sv-page .sv-btn--oscuro:active { background: var(--sv-ink) !important; color: #fff !important; transform: translateY(-1px); }
.sv-page .sv-btn--naranja { flex: 0 0 auto; margin-top: 0; background: var(--sv-orange); color: #fff !important; white-space: nowrap; }
.sv-page .sv-btn--naranja:hover,
.sv-page .sv-btn--naranja:focus,
.sv-page .sv-btn--naranja:active { background: var(--sv-orange-dark) !important; color: #fff !important; transform: translateY(-1px); }

/* ---------- 5. Títulos destacados compartidos ---------- */
.sv-centro { text-align: center; }
.sv-destacado { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 800; text-transform: uppercase; color: var(--sv-orange) !important; }
.sv-destacado__sub { margin-top: 6px !important; font-size: clamp(17px, 1.6vw, 21px); color: var(--sv-ink); }
.sv-espaciado { margin-top: 12px !important; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sv-ink) !important; }
.sv-espaciado--fuerte { margin-top: 0 !important; font-size: 17px; font-weight: 700; letter-spacing: .14em; }

/* ---------- 6. Pilares (p. ej. TAX 360°) ---------- */
.sv-pilares { padding: 64px 0 72px; background: linear-gradient(180deg, var(--sv-gris) 0%, #fff 100%); }
.sv-pilares__texto { max-width: 640px; margin: 14px auto 0 !important; font-size: 15.5px; line-height: 1.6; }
.sv-page .sv-pilares__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px !important; }
.sv-pilar { padding: 4px 26px; border-left: 1px solid var(--sv-line); }
.sv-pilar:first-child { border-left: 0; padding-left: 0; }
.sv-pilar__icono { display: inline-flex; color: var(--sv-orange); }
.sv-pilar__icono svg { width: 30px; height: 30px; }
.sv-pilar__titulo { margin-top: 10px !important; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sv-ink) !important; }
.sv-pilar__texto { margin-top: 8px !important; font-size: 14.5px; line-height: 1.6; }

/* ---------- 7. Cifras ---------- */
.sv-cifras { position: relative; overflow: hidden; padding: 68px 0 56px; background: #F7F7F7; }
.sv-cifras::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--sv-cifras-img);
	background-size: cover;
	background-position: center;
	filter: grayscale(1);
	opacity: .1;
}
.sv-cifras .sv-wrap { position: relative; }
.sv-cifras__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 40px; }
.sv-cifras .sv-centro + .sv-cifras__grid { margin-top: 44px; }
.sv-cifras > .sv-wrap > .sv-cifras__grid:first-child { margin-top: 0; }
.sv-cifra { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 40px 8px 0; border-right: 1px solid #C9C7C3; }
.sv-cifra__numero { padding-left: 22px; border-left: 4px solid var(--sv-orange); font-size: clamp(88px, 10vw, 140px); line-height: .9; font-weight: 800; letter-spacing: -.04em; color: var(--sv-orange); }
.sv-cifra__texto { display: flex; flex-direction: column; gap: 6px; }
.sv-cifra__texto strong { max-width: 240px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 800; text-transform: uppercase; color: var(--sv-ink); }
.sv-cifra__texto span { font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sv-text); }
.sv-cifras__lista { padding-left: 48px; }
.sv-page .sv-cifras__lista ul { display: flex; flex-direction: column; gap: 12px; margin-top: 18px !important; }
.sv-cifras__lista li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; color: var(--sv-ink); }
.sv-cifras__lista li.sin-icono { gap: 0; }
.sv-cifras__icono { display: inline-flex; color: var(--sv-orange); }
.sv-cifras__pie { display: flex; align-items: center; gap: 22px; margin-top: 44px !important; font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--sv-orange-dark); }
.sv-cifras__pie::before,
.sv-cifras__pie::after { content: ''; flex: 1; height: 1px; background: var(--sv-orange); opacity: .7; }
.sv-cifras__pie span { text-align: center; }

/* ---------- 8. Cierre ---------- */
.sv-cierre { padding: 60px 0; background: linear-gradient(160deg, var(--sv-navy) 0%, var(--sv-navy-2) 100%); }
.sv-cierre__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.sv-cierre__frase { max-width: 720px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; font-weight: 600; font-style: italic; color: #fff !important; }
.sv-cierre__frase::before { content: '“'; color: var(--sv-orange); }
.sv-cierre__frase::after { content: '”'; color: var(--sv-orange); }

/* ---------- 9. Página en preparación ---------- */
.sv-page--preparacion { padding: calc(var(--sv-header-h) + 120px) 0 120px; background: var(--sv-navy); text-align: center; }
.sv-preparacion { font-size: 28px; color: #fff !important; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1024px) {
	.sv-intro__grid { grid-template-columns: 1fr; gap: 40px; }
	.sv-intro__foto { position: relative; top: 0; order: -1; max-width: 640px; }
	.sv-intro__foto img { aspect-ratio: 16 / 10; }
	.sv-page .sv-pilares__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.sv-pilar:nth-child(3) { border-left: 0; padding-left: 0; }
	.sv-cifras__grid { grid-template-columns: 1fr; gap: 36px; }
	.sv-cifra { justify-content: flex-start; padding-right: 0; border-right: 0; }
	.sv-cifras__lista { padding-left: 0; }
	.sv-cierre__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
	.sv-wrap { padding: 0 18px; }
	.sv-hero { padding: calc(var(--sv-header-h) + 50px) 0 96px; }
	.sv-hero__eyebrow { font-size: 13px; letter-spacing: .32em; }
	.sv-hero__subtitle { letter-spacing: .08em; }
	.sv-intro { margin-top: -36px; padding: 44px 0 52px; border-radius: 24px 24px 0 0; }
	.sv-pilar { padding: 0 0 22px; border-left: 0; border-bottom: 1px solid var(--sv-line); }
	.sv-pilar:last-child { border-bottom: 0; padding-bottom: 0; }
	.sv-cifra { gap: 16px; }
	.sv-cifra__numero { padding-left: 14px; }
	.sv-cifras__pie { gap: 12px; letter-spacing: .14em; font-size: 11.5px; }
	.sv-page .sv-btn { width: 100%; justify-content: center; text-align: center; }
	.sv-page .sv-btn--naranja { white-space: normal; }
	.sv-page .sv-pilares__grid { grid-template-columns: 1fr; row-gap: 22px; }
}
