/*
Theme Name: Dotta Abogada
Theme URI: https://example.com/dotta-abogada
Author: Gabriela Dotta
Author URI: https://example.com
Description: Tema de WordPress para estudios jurídicos y profesionales independientes. Portada con presentación, áreas de práctica, perfil profesional, testimonios y contacto, botón flotante de WhatsApp, colores personalizables desde el Personalizador y soporte completo para el editor de bloques.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dotta-abogada
Tags: business, blog, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Reset y base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--nv-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--nv-text);
	background-color: var(--nv-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

figure {
	margin: 0 0 1.5rem;
}

a {
	color: var(--nv-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--nv-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nv-font-heading);
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: var(--nv-heading);
	font-weight: 700;
	letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1.25rem; }

ul, ol { padding-left: 1.35rem; }

blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 4px solid var(--nv-primary);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--nv-heading);
}

blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.9rem;
	font-style: normal;
	color: var(--nv-muted);
}

code, kbd, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

code {
	background: var(--nv-surface);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}

pre {
	background: var(--nv-surface);
	padding: 1.25rem;
	border-radius: var(--nv-radius);
	overflow-x: auto;
	border: 1px solid var(--nv-border);
}

hr {
	border: 0;
	border-top: 1px solid var(--nv-border);
	margin: 2.5rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

th, td {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--nv-border);
	text-align: left;
}

th {
	background: var(--nv-surface);
	font-weight: 600;
}

/* ==========================================================================
   2. Accesibilidad
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--nv-primary);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 8px 0;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--nv-primary);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.nv-container {
	width: 100%;
	max-width: var(--nv-width);
	margin-inline: auto;
	padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.nv-container--narrow {
	max-width: 780px;
}

.nv-section {
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.nv-section--surface {
	background: var(--nv-surface);
}

.nv-section__head {
	max-width: 680px;
	margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
	text-align: center;
}

.nv-section__head p {
	color: var(--nv-muted);
	font-size: 1.1rem;
	margin-bottom: 0;
}

.nv-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nv-primary);
	margin-bottom: 0.85rem;
}

.nv-grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nv-grid--3 { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 640px) {
	.nv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 940px) {
	.nv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/* Si la última fila queda con una sola tarjeta, la centra */
	.nv-grid--3 > *:last-child:nth-child(3n + 1) { grid-column: 2 / 3; }
}
.nv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.nv-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.nv-layout--sidebar {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
	.nv-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

/* ==========================================================================
   4. Botones
   ========================================================================== */

.nv-btn,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.7rem;
	border: 2px solid var(--nv-primary);
	border-radius: var(--nv-radius-btn);
	background: var(--nv-primary);
	color: #fff;
	font-family: var(--nv-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nv-btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--nv-primary-dark);
	border-color: var(--nv-primary-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px var(--nv-primary);
}

.nv-btn--ghost {
	background: transparent;
	color: var(--nv-primary);
}

.nv-btn--ghost:hover {
	background: var(--nv-primary);
	color: #fff;
}

.nv-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--nv-primary-dark);
}

.nv-btn--light:hover {
	background: rgba(255, 255, 255, 0.88);
	border-color: transparent;
	color: var(--nv-primary-dark);
}

.nv-btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	color: #fff;
}

.nv-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	color: #fff;
}

/* ==========================================================================
   5. Formularios
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius-btn);
	background: var(--nv-bg);
	color: var(--nv-text);
	font-family: inherit;
	font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--nv-primary);
	outline: none;
	box-shadow: 0 0 0 3px var(--nv-primary-soft);
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

/* ==========================================================================
   6. Cabecera y navegación
   ========================================================================== */

.nv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--nv-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--nv-border);
}

.nv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 74px;
}

.nv-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.nv-brand img {
	max-height: 46px;
	width: auto;
}

.nv-brand__name {
	font-family: var(--nv-font-heading);
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--nv-heading);
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-decoration: none;
}

.nv-brand__tagline {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--nv-muted);
	letter-spacing: 0;
}

.nv-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nv-header__cta {
	padding: 0.6rem 1.25rem;
	font-size: 0.94rem;
}

.nv-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
}

.nv-nav li {
	position: relative;
}

.nv-nav a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	color: var(--nv-heading);
	font-weight: 500;
	font-size: 0.98rem;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nv-nav a:hover,
.nv-nav .current-menu-item > a,
.nv-nav .current_page_item > a {
	background: var(--nv-primary-soft);
	color: var(--nv-primary-dark);
}

.nv-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0.4rem;
	background: var(--nv-bg);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
	box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nv-nav li:hover > .sub-menu,
.nv-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nv-nav .sub-menu .sub-menu {
	top: -0.4rem;
	left: 100%;
}

.nv-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--nv-border);
	border-radius: 10px;
}

.nv-menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--nv-heading);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nv-menu-toggle:hover {
	background: var(--nv-surface);
	box-shadow: none;
	transform: none;
}

.nv-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nv-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nv-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nv-menu-toggle { display: flex; }

	.nv-header__cta { display: none; }

	.nv-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--nv-bg);
		border-bottom: 1px solid var(--nv-border);
		box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.4);
		padding: 0.75rem clamp(1.15rem, 4vw, 2rem) 1.5rem;
		max-height: calc(100vh - 74px);
		overflow-y: auto;
	}

	.nv-nav.is-open { display: block; }

	.nv-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nv-nav a {
		padding: 0.8rem 0.5rem;
		border-bottom: 1px solid var(--nv-border);
		border-radius: 0;
	}

	.nv-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 1rem;
		min-width: 0;
		background: transparent;
	}
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.nv-hero {
	position: relative;
	color: #fff;
	background: linear-gradient(135deg, var(--nv-primary-dark) 0%, var(--nv-primary) 55%, var(--nv-accent) 130%);
	overflow: hidden;
}

.nv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(closest-side at 78% 18%, rgba(255, 255, 255, 0.22), transparent 70%);
	pointer-events: none;
}

.nv-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(9, 15, 33, 0.86) 10%, rgba(9, 15, 33, 0.55) 100%);
}

.nv-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nv-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(4.5rem, 10vw, 8rem);
	max-width: 720px;
}

.nv-hero__eyebrow {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1.35rem;
}

.nv-hero h1 {
	color: #fff;
	margin-bottom: 1.1rem;
}

.nv-hero__text {
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 2rem;
}

.nv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

/* Barra de confianza */
.nv-trust {
	border-bottom: 1px solid var(--nv-border);
	background: var(--nv-surface);
}

.nv-trust__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	padding-block: 2.25rem;
	text-align: center;
}

.nv-trust__num {
	display: block;
	font-family: var(--nv-font-heading);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
	font-weight: 800;
	color: var(--nv-primary);
	line-height: 1.1;
}

.nv-trust__label {
	display: block;
	font-size: 0.9rem;
	color: var(--nv-muted);
	letter-spacing: 0.02em;
}

/* ==========================================================================
   8. Tarjetas
   ========================================================================== */

.nv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	background: var(--nv-bg);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nv-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--nv-primary) 40%, var(--nv-border));
	box-shadow: 0 22px 45px -28px rgba(15, 23, 42, 0.55);
}

.nv-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.15rem;
	border-radius: 14px;
	background: var(--nv-primary-soft);
	color: var(--nv-primary-dark);
	font-size: 1.5rem;
	font-weight: 700;
}

.nv-card h3 {
	margin-bottom: 0.6rem;
}

.nv-card p {
	color: var(--nv-muted);
	margin-bottom: 0;
}

.nv-card__link {
	margin-top: 1.25rem;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.nv-card__link::after {
	content: " \2192";
	transition: margin-left 0.15s ease;
	display: inline-block;
}

.nv-card__link:hover::after {
	margin-left: 4px;
}

/* Sobre nosotros */
.nv-about {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
	.nv-about { grid-template-columns: 1fr 1fr; }
}

.nv-about__media img {
	border-radius: var(--nv-radius);
	box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.6);
	width: 100%;
}

.nv-about__placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--nv-radius);
	background: linear-gradient(135deg, var(--nv-primary-soft), color-mix(in srgb, var(--nv-accent) 22%, transparent));
	border: 1px solid var(--nv-border);
}

.nv-checklist {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: grid;
	gap: 0.75rem;
}

.nv-checklist li {
	position: relative;
	padding-left: 2rem;
	color: var(--nv-text);
}

.nv-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	background: var(--nv-primary-soft);
	color: var(--nv-primary-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

/* Testimonios */
.nv-quote {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	background: var(--nv-bg);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
}

.nv-quote__stars {
	color: #f59e0b;
	letter-spacing: 2px;
	margin-bottom: 0.85rem;
}

.nv-quote p {
	font-size: 1.05rem;
	color: var(--nv-heading);
	flex-grow: 1;
}

.nv-quote__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.nv-quote__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--nv-primary);
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.nv-quote__name {
	display: block;
	font-weight: 600;
	color: var(--nv-heading);
	line-height: 1.3;
}

.nv-quote__role {
	display: block;
	font-size: 0.85rem;
	color: var(--nv-muted);
}

/* CTA final */
.nv-cta {
	background: linear-gradient(135deg, var(--nv-primary-dark), var(--nv-primary));
	color: #fff;
	border-radius: var(--nv-radius);
	padding: clamp(2.25rem, 5vw, 3.75rem);
	text-align: center;
}

.nv-cta h2 { color: #fff; }

.nv-cta p {
	color: rgba(255, 255, 255, 0.88);
	max-width: 620px;
	margin-inline: auto;
	font-size: 1.1rem;
}

.nv-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: center;
	margin-top: 1.75rem;
}

/* ==========================================================================
   9. Entradas y páginas
   ========================================================================== */

.nv-page-header {
	background: var(--nv-surface);
	border-bottom: 1px solid var(--nv-border);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.nv-page-header h1 {
	margin-bottom: 0.5rem;
}

.nv-page-header p {
	color: var(--nv-muted);
	margin-bottom: 0;
	font-size: 1.1rem;
}

.nv-breadcrumb {
	font-size: 0.88rem;
	color: var(--nv-muted);
	margin-bottom: 0.75rem;
}

.nv-breadcrumb a { text-decoration: none; }

.nv-entry + .nv-entry {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--nv-border);
}

.nv-entry__thumb {
	margin-bottom: 1.25rem;
	border-radius: var(--nv-radius);
	overflow: hidden;
}

.nv-entry__thumb img {
	width: 100%;
	transition: transform 0.4s ease;
}

.nv-entry__thumb a:hover img { transform: scale(1.03); }

.nv-entry__title {
	margin-bottom: 0.5rem;
}

.nv-entry__title a {
	color: var(--nv-heading);
	text-decoration: none;
}

.nv-entry__title a:hover { color: var(--nv-primary); }

.nv-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	font-size: 0.88rem;
	color: var(--nv-muted);
	margin-bottom: 1rem;
}

.nv-meta a {
	color: var(--nv-muted);
	text-decoration: none;
}

.nv-meta a:hover { color: var(--nv-primary); }

.nv-card-list {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.nv-card-list .nv-entry + .nv-entry {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.nv-entry-content > *:last-child { margin-bottom: 0; }

.nv-entry-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nv-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.9rem;
}

.nv-tag {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--nv-surface);
	border: 1px solid var(--nv-border);
	color: var(--nv-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.nv-tag:hover {
	background: var(--nv-primary-soft);
	color: var(--nv-primary-dark);
}

.nv-post-nav {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: 2.5rem;
}

.nv-post-nav a {
	display: block;
	padding: 1.1rem 1.35rem;
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
	text-decoration: none;
	color: var(--nv-heading);
	font-weight: 600;
}

.nv-post-nav a:hover {
	border-color: var(--nv-primary);
	background: var(--nv-surface);
}

.nv-post-nav small {
	display: block;
	font-weight: 500;
	color: var(--nv-muted);
	margin-bottom: 0.2rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.nv-pagination {
	margin-top: 3rem;
}

.nv-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.nv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	border: 1px solid var(--nv-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--nv-heading);
	font-weight: 600;
}

.nv-pagination .page-numbers:hover,
.nv-pagination .page-numbers.current {
	background: var(--nv-primary);
	border-color: var(--nv-primary);
	color: #fff;
}

/* Imágenes de WP */
.alignleft { float: left; margin: 0.4rem 1.75rem 1.25rem 0; }
.alignright { float: right; margin: 0.4rem 0 1.25rem 1.75rem; }
.aligncenter { margin-inline: auto; display: block; }
.alignwide { width: min(100%, 1080px); margin-inline: auto; }
.alignfull { width: 100%; }
.wp-caption-text,
.wp-element-caption {
	font-size: 0.86rem;
	color: var(--nv-muted);
	text-align: center;
	margin-top: 0.5rem;
}
.sticky .nv-entry__title::before {
	content: "\2605 ";
	color: var(--nv-primary);
}

/* ==========================================================================
   10. Comentarios
   ========================================================================== */

.nv-comments {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--nv-border);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2.5rem;
}

.comment-list ol.children {
	list-style: none;
	padding-left: clamp(1rem, 3vw, 2.5rem);
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--nv-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 600;
	color: var(--nv-heading);
	margin-bottom: 0.35rem;
}

.comment-author img { border-radius: 50%; }

.comment-metadata {
	font-size: 0.84rem;
	color: var(--nv-muted);
	margin-bottom: 0.6rem;
}

.comment-metadata a { color: var(--nv-muted); text-decoration: none; }

.comment-respond {
	padding: clamp(1.35rem, 3vw, 2rem);
	background: var(--nv-surface);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
}

.comment-form p { margin-bottom: 1rem; }

.comment-form .form-submit { margin-bottom: 0; }

/* ==========================================================================
   11. Barra lateral y widgets
   ========================================================================== */

.nv-sidebar .widget {
	margin-bottom: 2rem;
	padding: 1.4rem 1.5rem;
	background: var(--nv-surface);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
}

.nv-sidebar .widget:last-child { margin-bottom: 0; }

.nv-sidebar .widget-title,
.nv-sidebar .wp-block-heading {
	font-size: 1.05rem;
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--nv-border);
}

.nv-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.nv-sidebar li + li {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--nv-border);
}

.nv-sidebar a {
	text-decoration: none;
	color: var(--nv-heading);
}

.nv-sidebar a:hover { color: var(--nv-primary); }

.nv-search-form {
	display: flex;
	gap: 0.5rem;
}

.nv-search-form .nv-btn { padding-inline: 1.1rem; }

/* ==========================================================================
   12. Pie de página
   ========================================================================== */

.nv-footer {
	margin-top: auto;
	background: var(--nv-footer-bg);
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.nv-footer h2,
.nv-footer h3,
.nv-footer .widget-title,
.nv-footer .wp-block-heading {
	color: #fff;
	font-size: 1.05rem;
	margin-bottom: 1rem;
	border: 0;
}

.nv-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.nv-footer a:hover { color: #fff; }

.nv-footer__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	padding-bottom: 2.75rem;
}

.nv-footer__brand {
	font-family: var(--nv-font-heading);
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	display: block;
	margin-bottom: 0.75rem;
}

.nv-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.nv-footer .widget { margin-bottom: 0; }

.nv-social {
	display: flex;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.nv-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.nv-social a:hover {
	background: var(--nv-primary);
	transform: translateY(-2px);
}

.nv-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.nv-contact-list {
	display: grid;
	gap: 0.7rem;
}

.nv-contact-list li {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.nv-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.88rem;
}

.nv-footer__bottom p { margin: 0; }

/* ==========================================================================
   13. Utilidades
   ========================================================================== */

.nv-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.nv-site > main { flex: 1 0 auto; }

.nv-text-center { text-align: center; }

.nv-mb-0 { margin-bottom: 0; }

.nv-lead {
	font-size: 1.15rem;
	color: var(--nv-muted);
}

.nv-404 {
	text-align: center;
	padding-block: clamp(4rem, 9vw, 7rem);
}

.nv-404__code {
	font-family: var(--nv-font-heading);
	font-size: clamp(4.5rem, 12vw, 9rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(120deg, var(--nv-primary), var(--nv-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Ajustes para la barra de administración */
.admin-bar .nv-header { top: 32px; }

@media screen and (max-width: 782px) {
	.admin-bar .nv-header { top: 46px; }
}

/* ==========================================================================
   14. Estudio jurídico · personalizaciones
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.005em;
}

.nv-brand__name {
	letter-spacing: 0.01em;
}

.nv-eyebrow,
.nv-hero__eyebrow {
	color: var(--nv-accent);
}

/* Botón dorado */
.nv-btn--gold {
	background: var(--nv-accent);
	border-color: var(--nv-accent);
	color: #12213a;
}

.nv-btn--gold:hover {
	background: #fff;
	border-color: #fff;
	color: var(--nv-primary-dark);
	box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}

/* Hero en dos columnas con retrato */
.nv-hero--split {
	background: linear-gradient(140deg, #0b1729 0%, var(--nv-primary) 62%, var(--nv-primary-dark) 100%);
}

.nv-hero--split::after {
	background:
		radial-gradient(60% 55% at 72% 10%, rgba(180, 136, 74, 0.28), transparent 72%),
		radial-gradient(70% 60% at 0% 100%, rgba(255, 255, 255, 0.07), transparent 70%);
}

.nv-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3rem);
	align-items: end;
}

@media (min-width: 880px) {
	.nv-hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}
}

.nv-hero--split .nv-hero__inner {
	max-width: 620px;
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.nv-hero__eyebrow {
	background: rgba(180, 136, 74, 0.18);
	border-color: rgba(180, 136, 74, 0.5);
	color: #f0d9b4;
}

.nv-hero h1 {
	text-wrap: balance;
}

.nv-hero__contact {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2rem;
	font-size: 0.98rem;
}

.nv-hero__contact li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.86);
}

.nv-hero__contact a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding-bottom: 1px;
}

.nv-hero__contact a:hover {
	color: #f0d9b4;
	border-color: #f0d9b4;
}

/* Retrato decorado */
.nv-hero__figure {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.nv-portrait {
	position: relative;
	width: min(100%, 430px);
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.nv-portrait::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(100%, 400px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.04) 62%, transparent 70%);
	border: 1px solid rgba(240, 217, 180, 0.35);
}

.nv-portrait::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -14px;
	transform: translateX(-50%);
	width: min(86%, 340px);
	height: 22px;
	border-radius: 50%;
	background: rgba(4, 10, 20, 0.45);
	filter: blur(14px);
}

.nv-portrait img {
	position: relative;
	z-index: 2;
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 22px 38px rgba(4, 10, 20, 0.45));
}

.nv-portrait__card {
	position: absolute;
	z-index: 3;
	left: 0;
	bottom: 8%;
	display: grid;
	gap: 0.15rem;
	padding: 0.8rem 1.15rem;
	background: rgba(255, 255, 255, 0.96);
	border-left: 3px solid var(--nv-accent);
	border-radius: 4px;
	box-shadow: 0 18px 34px -20px rgba(4, 10, 20, 0.8);
}

.nv-portrait__card strong {
	font-family: var(--nv-font-heading);
	font-size: 1.08rem;
	color: var(--nv-heading);
	line-height: 1.2;
}

.nv-portrait__card span {
	font-size: 0.8rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--nv-accent);
	font-weight: 600;
}

@media (max-width: 879px) {
	.nv-portrait {
		width: min(100%, 340px);
		margin-inline: auto;
	}

	.nv-portrait__card {
		left: -0.5rem;
		bottom: 4%;
	}
}

/* Íconos de las áreas de práctica */
.nv-card__icon {
	background: var(--nv-accent-soft);
	color: #8c6427;
	font-family: var(--nv-font-heading);
	font-size: 1.7rem;
	border-radius: 8px;
}

.nv-card {
	border-top: 3px solid transparent;
}

.nv-card:hover {
	border-top-color: var(--nv-accent);
}

.nv-checklist li::before {
	background: var(--nv-accent-soft);
	color: #8c6427;
}

.nv-trust__num {
	color: var(--nv-primary);
}

/* Retrato en la sección de perfil */
.nv-about__frame {
	position: relative;
	padding: 1.75rem 1.75rem 0 0;
}

.nv-about__frame::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 68%;
	height: 72%;
	border: 2px solid var(--nv-accent);
	border-radius: var(--nv-radius);
}

.nv-about__frame img {
	position: relative;
	width: 100%;
	padding: 7% 6% 0;
	border-radius: var(--nv-radius);
	background: linear-gradient(160deg, #14304f 0%, var(--nv-primary) 100%);
	box-shadow: 0 30px 55px -32px rgba(4, 10, 20, 0.75);
}

.nv-about__action {
	margin-top: 1.75rem;
	margin-bottom: 0;
}

.nv-quote__body {
	border: 0;
	margin: 0;
	padding: 0;
	font-style: normal;
	flex-grow: 1;
}

.nv-quote {
	border-top: 3px solid var(--nv-accent);
}

.nv-quote__avatar {
	background: var(--nv-primary);
}

.nv-cta {
	background: linear-gradient(135deg, #0b1729 0%, var(--nv-primary) 100%);
	position: relative;
	overflow: hidden;
}

.nv-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(closest-side at 82% 8%, rgba(180, 136, 74, 0.28), transparent 70%);
	pointer-events: none;
}

.nv-cta > * {
	position: relative;
	z-index: 2;
}

/* Aviso legal del pie */
.nv-footer__legal {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.5);
	max-width: 720px;
	margin: 0 0 1.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Botón flotante de WhatsApp */
.nv-wa {
	position: fixed;
	right: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.75rem);
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.15rem;
	border-radius: 999px;
	background: #25d366;
	color: #06331a;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 0 16px 32px -14px rgba(4, 40, 20, 0.65);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nv-wa:hover {
	color: #06331a;
	transform: translateY(-2px);
	box-shadow: 0 20px 38px -14px rgba(4, 40, 20, 0.75);
}

.nv-wa svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.nv-wa__text {
		display: none;
	}

	.nv-wa {
		padding: 0.9rem;
	}
}

/* ==========================================================================
   15. Páginas de área de práctica
   ========================================================================== */

.nv-area-header {
	position: relative;
	background: linear-gradient(140deg, #0b1729 0%, var(--nv-primary) 100%);
	color: #fff;
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
	overflow: hidden;
}

.nv-area-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(55% 60% at 88% 0%, rgba(180, 136, 74, 0.26), transparent 70%);
	pointer-events: none;
}

.nv-area-header > * {
	position: relative;
	z-index: 2;
}

.nv-area-header h1 {
	color: #fff;
	max-width: 20ch;
	margin-bottom: 0;
	text-wrap: balance;
}

.nv-area-header .nv-eyebrow {
	color: #e0c090;
}

.nv-area-header .nv-breadcrumb {
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 1rem;
}

.nv-area-header .nv-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.nv-area-header .nv-breadcrumb a:hover {
	color: #fff;
}

.nv-area-header .nv-breadcrumb span {
	margin-inline: 0.4rem;
}

.nv-area-header__text {
	max-width: 62ch;
	margin: 1rem 0 0;
	font-size: 1.12rem;
	color: rgba(255, 255, 255, 0.86);
}

.nv-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}

@media (min-width: 960px) {
	.nv-area {
		grid-template-columns: minmax(0, 1fr) 340px;
	}

	.nv-area__aside {
		position: sticky;
		top: 100px;
	}
}

.nv-area__body {
	max-width: 72ch;
}

.nv-area__body h2 {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nv-border);
}

.nv-area__body h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.nv-area__body h3 {
	margin-top: 1.75rem;
	color: var(--nv-primary);
}

.nv-area__body ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.7rem;
	margin-bottom: 1.75rem;
}

.nv-area__body ul li {
	position: relative;
	padding-left: 1.75rem;
}

.nv-area__body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--nv-accent);
}

.nv-area__body ol {
	padding-left: 1.2rem;
	margin-bottom: 1.75rem;
}

.nv-area__body ol li {
	margin-bottom: 0.6rem;
	padding-left: 0.35rem;
}

.nv-area-card {
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--nv-surface);
	border: 1px solid var(--nv-border);
	border-top: 3px solid var(--nv-accent);
	border-radius: var(--nv-radius);
}

.nv-area-card h2 {
	font-size: 1.35rem;
	margin-bottom: 0.6rem;
}

.nv-area-card p {
	color: var(--nv-muted);
	font-size: 0.98rem;
}

.nv-area-card__btn {
	width: 100%;
	margin-bottom: 1.25rem;
}

.nv-area-card__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.6rem;
	font-size: 0.95rem;
}

.nv-area-card__list li {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.nv-area-card__list a {
	text-decoration: none;
	color: var(--nv-heading);
	font-weight: 600;
}

.nv-area-card__list a:hover {
	color: var(--nv-primary);
}

.nv-area-links {
	margin-top: 1.75rem;
	padding: clamp(1.35rem, 3vw, 1.75rem);
	border: 1px solid var(--nv-border);
	border-radius: var(--nv-radius);
}

.nv-area-links h2 {
	font-size: 1.1rem;
	margin-bottom: 0.9rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--nv-border);
}

.nv-area-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.nv-area-links a {
	display: block;
	text-decoration: none;
	color: var(--nv-heading);
	font-weight: 600;
	padding: 0.35rem 0;
}

.nv-area-links a::after {
	content: " \2192";
	color: var(--nv-accent);
	opacity: 0;
	transition: opacity 0.15s ease, margin-left 0.15s ease;
}

.nv-area-links a:hover {
	color: var(--nv-primary);
}

.nv-area-links a:hover::after {
	opacity: 1;
	margin-left: 4px;
}

/* Rejilla de dos columnas para 2 o 4 áreas */
.nv-grid--pairs {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
	.nv-grid--pairs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================================
   16. Preguntas frecuentes
   ========================================================================== */

.nv-faq {
	max-width: 860px;
	margin-inline: auto;
	display: grid;
	gap: 0.85rem;
}

.nv-faq__item {
	background: var(--nv-bg);
	border: 1px solid var(--nv-border);
	border-left: 3px solid var(--nv-accent);
	border-radius: var(--nv-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.nv-faq__item[open] {
	box-shadow: 0 18px 38px -26px rgba(11, 23, 41, 0.5);
}

.nv-faq__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem clamp(1.15rem, 3vw, 1.75rem);
	font-family: var(--nv-font-heading);
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
	font-weight: 700;
	color: #8c6427;
	cursor: pointer;
	list-style: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nv-faq__q::-webkit-details-marker {
	display: none;
}

.nv-faq__q::after {
	content: "+";
	flex-shrink: 0;
	width: 1.7rem;
	height: 1.7rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--nv-accent-soft);
	color: #8c6427;
	font-family: var(--nv-font-body);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.2s ease, background-color 0.15s ease;
}

.nv-faq__item[open] .nv-faq__q::after {
	content: "\2212";
	background: var(--nv-accent);
	color: #fff;
}

.nv-faq__q:hover {
	background: var(--nv-accent-soft);
}

.nv-faq__a {
	padding: 0 clamp(1.15rem, 3vw, 1.75rem) 1.4rem;
	color: var(--nv-text);
}

.nv-faq__a p:last-child {
	margin-bottom: 0;
}

/* Bloque "Detalles" del editor dentro de las páginas de área */
.nv-area__body .wp-block-details {
	margin-bottom: 1.25rem;
	padding: 0;
	background: var(--nv-surface);
	border: 1px solid var(--nv-border);
	border-left: 3px solid var(--nv-accent);
	border-radius: var(--nv-radius);
}

.nv-area__body .wp-block-details summary {
	padding: 1rem 1.35rem;
	font-family: var(--nv-font-heading);
	font-weight: 700;
	font-size: 1.1rem;
	color: #8c6427;
	cursor: pointer;
}

.nv-area__body .wp-block-details[open] summary {
	border-bottom: 1px solid var(--nv-border);
}

.nv-area__body .wp-block-details > *:not(summary) {
	padding-inline: 1.35rem;
}

.nv-area__body .wp-block-details > *:not(summary):first-of-type {
	padding-top: 1.1rem;
}

.nv-area__body .wp-block-details > *:last-child {
	padding-bottom: 1.1rem;
	margin-bottom: 0;
}
