/* ==========================================================================
   Tivadar Abogados — hoja de estilos principal
   Paleta: marfil claro dominante, azul marino y dorado como acentos.
   ========================================================================== */

:root {
	--navy: #1e2b3f;
	--navy-deep: #141f30;
	--gold: #b18c3e;
	--gold-light: #d4b36a;
	--gold-pale: #f0e6cf;
	--ivory: #faf8f3;
	--white: #ffffff;
	--ink: #2a3646;
	--muted: #6b7686;
	--line: #e6e0d2;
	--serif: Georgia, 'Times New Roman', serif;
	--sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--shadow: 0 10px 30px rgba(20, 31, 48, 0.10);
	--radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ivory);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }

.tiv-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tiv-section { padding: 72px 0; }
.tiv-section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiv-center { text-align: center; }
.tiv-muted { color: var(--muted); }
.tiv-hl { color: var(--gold); }

.tiv-section-title {
	text-align: center;
	font-size: clamp(26px, 3.2vw, 36px);
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.tiv-section-title.tiv-left { text-align: left; }
.tiv-ornament {
	color: var(--gold);
	text-align: center;
	letter-spacing: .4em;
	font-size: 14px;
	margin: 0 0 36px;
	user-select: none;
}
.tiv-ornament--light { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.tiv-btn {
	display: inline-block;
	padding: 13px 30px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-radius: 3px;
	border: 1px solid transparent;
	transition: all .25s;
}
.tiv-btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); }
.tiv-btn--gold:hover { filter: brightness(1.07); color: var(--navy-deep); transform: translateY(-1px); }
.tiv-btn--ghost { border-color: rgba(255,255,255,.65); color: var(--white); }
.tiv-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.tiv-btn--navy { background: var(--navy); color: var(--white); }
.tiv-btn--navy:hover { background: var(--navy-deep); color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.tiv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	border-bottom: 1px solid rgba(212, 179, 106, .25);
	transition: background .3s, box-shadow .3s;
}
.tiv-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.tiv-header--overlay.is-scrolled,
.tiv-header.is-scrolled { background: var(--navy); box-shadow: 0 4px 18px rgba(0,0,0,.25); border-bottom-color: rgba(212, 179, 106, .25); }

.tiv-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}
.tiv-brand { display: flex; align-items: center; }
.tiv-brand img, .tiv-logo { height: 52px; width: auto; display: block; }

.tiv-nav { margin-left: auto; }
.tiv-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.tiv-menu > li { position: relative; }
.tiv-menu a {
	display: block;
	color: rgba(255,255,255,.92);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 12px 13px;
}
.tiv-menu a:hover { color: var(--gold-light); }
.tiv-menu .current-menu-item > a,
.tiv-menu .current-menu-ancestor > a { color: var(--gold-light); }

/* Submenús */
.tiv-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--navy-deep);
	border: 1px solid rgba(212, 179, 106, .3);
	border-radius: 0 0 var(--radius) var(--radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .22s;
}
.tiv-menu li:hover > .sub-menu,
.tiv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tiv-menu .sub-menu a { padding: 9px 20px; text-transform: none; letter-spacing: .03em; font-weight: 400; font-size: 14px; }

.tiv-header-actions { display: flex; align-items: center; gap: 16px; }
.tiv-btn--header { padding: 10px 20px; font-size: 12px; }

/* Selector de idioma (Polylang) */
.tiv-langs ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.tiv-langs li { display: flex; }
.tiv-langs a {
	color: rgba(255,255,255,.75);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 8px;
	border: 1px solid transparent;
	border-radius: 3px;
}
.tiv-langs li.current-lang a { color: var(--gold-light); border-color: var(--gold); }
.tiv-langs li + li::before { content: "|"; color: rgba(255,255,255,.35); align-self: center; }

/* Burger móvil */
.tiv-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.tiv-burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all .25s; }

/* --------------------------------------------------------------------------
   Hero de portada
   -------------------------------------------------------------------------- */
.tiv-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse at 50% 30%, #2c3d58 0%, var(--navy) 55%, var(--navy-deep) 100%);
	overflow: hidden;
}
.tiv-hero-media, .tiv-hero-media video, .tiv-hero-image, .tiv-hero-overlay {
	position: absolute;
	inset: 0;
}
.tiv-hero-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.6s ease;
}
/* Opacidad reducida: el vídeo actúa como fondo sutil bajo el contenido */
.tiv-hero-media video.is-active { opacity: .5; }
.tiv-hero-image { background-size: cover; background-position: center; }
.tiv-hero-overlay {
	background: linear-gradient(180deg, rgba(20,31,48,.55) 0%, rgba(20,31,48,.35) 45%, rgba(20,31,48,.75) 100%);
}
.tiv-hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 24px 80px; }
.tiv-hero-logo { height: 110px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.tiv-hero-title {
	color: var(--white);
	font-size: clamp(34px, 6.5vw, 72px);
	letter-spacing: .12em;
	margin: 0 0 6px;
	text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.tiv-gold-cap { color: var(--gold-light); }
.tiv-hero-tagline {
	color: rgba(255,255,255,.92);
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(17px, 2.4vw, 23px);
	min-height: 2.2em;
	margin: 0 auto 34px;
	max-width: 720px;
	transition: opacity .6s;
}
.tiv-hero-tagline.is-fading { opacity: 0; }
.tiv-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.tiv-hero-scroll {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 28px;
	height: 46px;
	border: 2px solid rgba(255,255,255,.6);
	border-radius: 16px;
}
.tiv-hero-scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	background: var(--gold-light);
	border-radius: 2px;
	animation: tivScroll 1.8s infinite;
}
@keyframes tivScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Bandas de título de páginas interiores
   -------------------------------------------------------------------------- */
.tiv-page-hero {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
	padding: 118px 0 54px;
	text-align: center;
	position: relative;
}
.tiv-page-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at 80% 0%, rgba(212,179,106,.12), transparent 55%);
	pointer-events: none;
}
.tiv-page-hero h1 {
	color: var(--white);
	font-size: clamp(28px, 4vw, 44px);
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.tiv-page-hero .tiv-ornament { margin-bottom: 0; }
.tiv-page-hero-meta { color: rgba(255,255,255,.7); margin: 14px 0 0; font-size: 14px; }
.tiv-page-hero-icon { font-size: 40px; margin: 0 0 8px; }

/* Cabecera de página con vídeo de fondo */
.tiv-page-hero--video {
	min-height: 52vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 180px 0 80px;
	overflow: hidden;
}
.tiv-page-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .45;
}
.tiv-page-hero--video::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,31,48,.55) 0%, rgba(20,31,48,.3) 50%, rgba(20,31,48,.7) 100%);
	z-index: 1;
}
.tiv-page-hero--video .tiv-container { position: relative; z-index: 2; }
.tiv-page-hero--video h1 { font-size: clamp(32px, 5vw, 56px); text-shadow: 0 3px 16px rgba(0,0,0,.5); }

/* --------------------------------------------------------------------------
   Bloques de acceso (portada)
   -------------------------------------------------------------------------- */
.tiv-tiles {
	position: relative;
	background:
		radial-gradient(ellipse at 50% -20%, rgba(212,179,106,.14), transparent 55%),
		radial-gradient(ellipse at 90% 110%, rgba(212,179,106,.08), transparent 45%),
		linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 70%);
}
.tiv-tiles .tiv-section-title { color: var(--white); }
.tiv-tiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	counter-reset: tile;
}
.tiv-tile {
	position: relative;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(212,179,106,.28);
	border-radius: var(--radius);
	padding: 34px 22px 28px;
	text-align: center;
	color: rgba(255,255,255,.85);
	transition: all .3s;
	counter-increment: tile;
	overflow: hidden;
	backdrop-filter: blur(2px);
}
.tiv-tile::before {
	content: counter(tile, decimal-leading-zero);
	position: absolute;
	top: 10px;
	right: 16px;
	font-family: var(--serif);
	font-size: 15px;
	color: rgba(212,179,106,.55);
	letter-spacing: .1em;
}
.tiv-tile::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--gold-light), var(--gold));
	transform: translateX(-50%);
	transition: width .35s;
}
.tiv-tile:hover {
	transform: translateY(-6px);
	background: rgba(212,179,106,.09);
	border-color: var(--gold);
	color: rgba(255,255,255,.92);
	box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.tiv-tile:hover::after { width: 60%; }
.tiv-tile-sep {
	display: block;
	width: 34px;
	height: 1px;
	margin: 12px auto 14px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.tiv-tile h3 { font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0; }
.tiv-tile p { font-size: 13.5px; color: rgba(255,255,255,.65); margin: 0; }

/* --------------------------------------------------------------------------
   Noticias
   -------------------------------------------------------------------------- */
.tiv-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 26px;
	margin-bottom: 36px;
}
.tiv-news-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s, transform .25s;
}
.tiv-news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tiv-news-thumb img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tiv-news-body { padding: 22px; }
.tiv-news-body time { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tiv-news-body h2, .tiv-news-body h3 { font-size: 20px; margin: 8px 0 10px; }
.tiv-news-body h2 a, .tiv-news-body h3 a { color: var(--navy); }
.tiv-news-body p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.tiv-more { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Sede (portada) y mapa
   -------------------------------------------------------------------------- */
.tiv-sede {
	position: relative;
	background:
		radial-gradient(ellipse at 10% 15%, rgba(212,179,106,.10), transparent 45%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 85%);
	overflow: hidden;
}
.tiv-sede::after {
	content: "◆";
	position: absolute;
	right: -60px;
	bottom: -80px;
	font-size: 340px;
	color: rgba(212,179,106,.05);
	pointer-events: none;
	line-height: 1;
}
.tiv-sede .tiv-section-title { color: var(--white); }
.tiv-sede-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; position: relative; z-index: 2; }
.tiv-sede-grid p { color: rgba(255,255,255,.8); }
.tiv-sede-grid a:not(.tiv-btn) { color: var(--gold-light); }
.tiv-sede-grid a:not(.tiv-btn):hover { color: var(--white); }
.tiv-sede-grid .tiv-muted { color: rgba(255,255,255,.55); }
.tiv-sede-addr { font-size: 18px; font-weight: 600; color: var(--white); }
.tiv-sede-map {
	border: 1px solid rgba(212,179,106,.35);
	border-radius: var(--radius);
	padding: 8px;
	background: rgba(255,255,255,.03);
}
.tiv-sede-map iframe {
	display: block;
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: 4px;
	/* Mapa en modo oscuro vía filtro CSS */
	filter: invert(88%) hue-rotate(185deg) grayscale(.2) contrast(.92) brightness(.95);
}

/* --------------------------------------------------------------------------
   Sección "Queremos escucharte" + formulario
   -------------------------------------------------------------------------- */
.tiv-listen { position: relative; background: var(--navy-deep); overflow: hidden; }
.tiv-listen-bg {
	position: absolute; inset: -30px;
	background-image: url('../img/bg-listen.jpg');
	background-size: cover;
	background-position: center;
	filter: blur(5px) brightness(.45) saturate(.85);
	transform: scale(1.06);
}
.tiv-listen::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20,31,48,.72) 0%, rgba(20,31,48,.45) 40%, rgba(20,31,48,.78) 100%);
	z-index: 1;
}
.tiv-listen-inner { position: relative; z-index: 2; text-align: center; }
.tiv-listen-title { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .14em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tiv-listen-sub { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 34px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tiv-form-icon {
	width: 58px;
	height: 58px;
	margin: 0 auto -29px;
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold-light), var(--gold));
	color: var(--navy-deep);
	box-shadow: 0 8px 22px rgba(0,0,0,.45);
}

.tiv-form-card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	max-width: 760px;
	margin: 0 auto;
	padding: 52px 44px 42px;
	text-align: left;
}
.tiv-form-card .tiv-form-intro { text-align: center; }
.tiv-form-intro { font-size: 15px; color: var(--muted); margin-top: 0; }

/* Contact Form 7 */
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--gold);
	background: transparent;
	padding: 10px 2px;
	font: inherit;
	color: var(--ink);
	outline: none;
	transition: border-color .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-bottom: 2px solid var(--navy); }
.wpcf7 textarea { min-height: 110px; resize: vertical; }
.tiv-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.wpcf7 .wpcf7-acceptance { font-size: 13px; }
.wpcf7 .wpcf7-acceptance label { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.wpcf7 .wpcf7-submit {
	display: block;
	margin: 10px auto 0;
	background: linear-gradient(135deg, var(--gold-light), var(--gold));
	color: var(--navy-deep);
	border: 0;
	padding: 14px 42px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-radius: 3px;
	cursor: pointer;
	transition: filter .2s;
}
.wpcf7 .wpcf7-submit:hover { filter: brightness(1.08); }
.wpcf7-not-valid-tip { font-size: 12px; color: #b3392f; }
.wpcf7-response-output { border-radius: 4px; font-size: 14px; padding: 10px 14px; }
.tiv-rgpd { font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Contenido general (Gutenberg)
   -------------------------------------------------------------------------- */
.tiv-content { max-width: 980px; margin: 0 auto; }
.tiv-content--narrow { max-width: 760px; }
.tiv-content h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: .06em; text-transform: uppercase; margin-top: 4em; text-align: center; }
/* WP pone margin-block-start:0 al primer hijo de cada grupo; lo recuperamos
   para que los títulos de sección respiren, salvo el primero de la página. */
.tiv-content .wp-block-group__inner-container > h2:first-child { margin-top: 4em !important; }
.tiv-content > h2:first-child,
.tiv-content > *:first-child .wp-block-group__inner-container > h2:first-child { margin-top: .5em !important; }
.tiv-content h2::after { content: "— ◆ —"; display: block; color: var(--gold); font-size: 13px; letter-spacing: .4em; margin-top: 10px; }
.tiv-content h3 { font-size: 21px; }
.tiv-content ul { padding-left: 1.2em; }
.tiv-content li { margin-bottom: .35em; }
/* Equipo (Quiénes somos) */
.tiv-team { margin: 40px 0 48px; gap: 40px; }
.tiv-team-photo img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
	width: 100%;
	height: auto;
}
.tiv-team h3 { font-size: 26px; margin-bottom: 4px; }
.tiv-roles {
	color: var(--gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-top: 0;
}
.tiv-single-thumb { margin: 0 0 28px; }
.tiv-single-thumb img { border-radius: var(--radius); }
.tiv-backlink { margin-top: 40px; }
.tiv-lead { font-size: 19px; font-family: var(--serif); font-style: italic; color: var(--navy); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Tarjetas con texto revelado al pasar el cursor (valores, elegirnos...)
   Nota: WP envuelve los grupos legacy en .wp-block-group__inner-container,
   por lo que el grid se aplica a ese contenedor interno. */
.tiv-cards { margin: 34px 0; }
.tiv-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	counter-reset: valor;
}
.tiv-card {
	position: relative;
	background:
		radial-gradient(ellipse at 50% -30%, rgba(212,179,106,.14), transparent 60%),
		linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 90%);
	border: 1px solid rgba(212,179,106,.3);
	border-radius: var(--radius);
	padding: 34px 26px 30px;
	text-align: center;
	cursor: pointer;
	transition: all .3s;
	overflow: hidden;
	counter-increment: valor;
}
.tiv-card::before {
	content: counter(valor, decimal-leading-zero);
	position: absolute;
	top: 10px;
	right: 16px;
	font-family: var(--serif);
	font-size: 15px;
	color: rgba(212,179,106,.55);
	letter-spacing: .1em;
}
.tiv-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--gold-light), var(--gold));
	transform: translateX(-50%);
	transition: width .35s;
}
.tiv-card:hover, .tiv-card.is-open {
	transform: translateY(-4px);
	border-color: var(--gold);
	box-shadow: 0 18px 40px rgba(20,31,48,.35);
}
.tiv-card:hover::after, .tiv-card.is-open::after { width: 60%; }
.tiv-card-icon { display: none; }
.tiv-card h3 { font-size: 20px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--gold-light); }
.tiv-card h3::after {
	content: "";
	display: block;
	width: 34px;
	height: 1px;
	margin: 13px auto 0;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.tiv-card-quote { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: rgba(255,255,255,.65); }
.tiv-card-body {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .5s ease, opacity .4s ease, margin .4s;
	margin: 0;
}
.tiv-card:hover .tiv-card-body,
.tiv-card.is-open .tiv-card-body { max-height: 460px; opacity: 1; margin-top: 14px; }
.tiv-card-body p { font-size: 14.5px; text-align: left; color: rgba(255,255,255,.85); margin: 0; }

/* Pasos "Cómo trabajamos" */
.tiv-steps { margin: 34px 0; }
.tiv-steps > .wp-block-group__inner-container {
	counter-reset: paso;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.tiv-step {
	position: relative;
	background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 90%);
	border: 1px solid rgba(212,179,106,.3);
	border-radius: var(--radius);
	padding: 26px 24px 26px 74px;
	cursor: pointer;
	transition: all .25s;
	counter-increment: paso;
}
.tiv-step::before {
	content: counter(paso, decimal-leading-zero);
	position: absolute;
	left: 22px;
	top: 24px;
	font-family: var(--serif);
	font-size: 26px;
	color: var(--gold-light);
}
.tiv-step:hover, .tiv-step.is-open {
	border-color: var(--gold);
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(20,31,48,.35);
}
.tiv-step h3 { font-size: 16.5px; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: rgba(255,255,255,.92); }
.tiv-step .tiv-card-body p { font-size: 14.5px; color: rgba(255,255,255,.85); }
.tiv-step:hover .tiv-card-body,
.tiv-step.is-open .tiv-card-body { max-height: 420px; opacity: 1; margin-top: 12px; }

/* Acordeón (details) */
.tiv-content details {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 12px;
	padding: 0;
}
.tiv-content details summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 52px 18px 22px;
	font-family: var(--serif);
	font-size: 17px;
	color: var(--navy);
	font-weight: 600;
	position: relative;
}
.tiv-content details summary::-webkit-details-marker { display: none; }
.tiv-content details summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gold);
	font-size: 24px;
	font-family: var(--sans);
	transition: transform .25s;
}
.tiv-content details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tiv-content details[open] { border-color: var(--gold); }
.tiv-content details > :not(summary) { padding: 0 22px; }
.tiv-content details > p:last-child { padding-bottom: 18px; }

/* "¿Dónde estamos?" (La Firma): banda oscura a ancho completo, como la sede de la home */
#donde-estamos, #unde-suntem {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: 56px;
	padding: 64px max(24px, calc(50vw - 490px)) 72px;
	background:
		radial-gradient(ellipse at 10% 15%, rgba(212,179,106,.10), transparent 45%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 85%);
	color: rgba(255,255,255,.82);
	position: relative;
	overflow: hidden;
}
#donde-estamos::after, #unde-suntem::after {
	content: "◆";
	position: absolute;
	right: -60px;
	bottom: -80px;
	font-size: 340px;
	color: rgba(212,179,106,.05);
	pointer-events: none;
	line-height: 1;
}
#donde-estamos > *, #unde-suntem > * { position: relative; z-index: 2; }
#donde-estamos h2, #unde-suntem h2 { color: var(--white); }
#donde-estamos .wp-block-group__inner-container > h2:first-child,
#unde-suntem .wp-block-group__inner-container > h2:first-child { margin-top: 0 !important; }
#donde-estamos .tiv-lead, #unde-suntem .tiv-lead { color: rgba(255,255,255,.88); }
#donde-estamos li, #unde-suntem li { color: rgba(255,255,255,.8); }
#donde-estamos strong, #unde-suntem strong { color: var(--gold-light); }
#donde-estamos iframe, #unde-suntem iframe {
	border: 1px solid rgba(212,179,106,.35) !important;
	border-radius: 6px;
	filter: invert(88%) hue-rotate(185deg) grayscale(.2) contrast(.92) brightness(.95);
}

/* --------------------------------------------------------------------------
   Página Servicios: pestañas de categorías y filas de áreas
   -------------------------------------------------------------------------- */
.tiv-serv-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 26px 24px;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 76px;
	z-index: 50;
}
.tiv-serv-tab {
	padding: 11px 26px;
	border: 1px solid var(--line);
	border-radius: 30px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	transition: all .25s;
}
.tiv-serv-tab:hover, .tiv-serv-tab.is-active {
	border-color: var(--gold);
	color: var(--gold);
	background: rgba(212, 179, 106, .07);
}
.tiv-serv .tiv-lead { margin-bottom: 40px; }
.tiv-serv-areas { scroll-margin-top: 150px; }

.tiv-serv-row {
	display: grid;
	grid-template-columns: 230px 210px 1fr;
	align-items: stretch;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 26px;
	box-shadow: 0 4px 16px rgba(20, 31, 48, .05);
	transition: box-shadow .25s;
}
.tiv-serv-row:hover { box-shadow: var(--shadow); }
.tiv-serv-photo { display: block; }
.tiv-serv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiv-serv-id {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px 18px;
	text-align: center;
	border-right: 1px solid var(--line);
}
.tiv-serv-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: var(--gold-light);
	border: 1px solid rgba(212, 179, 106, .4);
}
.tiv-serv-id h2 { font-size: 18px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.tiv-serv-id h2 a { color: var(--navy); }
.tiv-serv-id h2 a:hover { color: var(--gold); }
.tiv-serv-list { padding: 26px 30px; }
.tiv-serv-list ul {
	columns: 2;
	column-gap: 34px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}
.tiv-serv-list li {
	position: relative;
	padding: 4px 0 4px 18px;
	font-size: 14.5px;
	break-inside: avoid;
	border-bottom: 1px dotted var(--line);
}
.tiv-serv-list li::before {
	content: "◆";
	position: absolute;
	left: 0;
	top: 6px;
	font-size: 8px;
	color: var(--gold);
}

/* Datos de la oficina (Contacto): tres tarjetas oscuras */
.tiv-contact-data { margin: 36px 0; }
.tiv-contact-data > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.tiv-contact-item {
	background:
		radial-gradient(ellipse at 50% -30%, rgba(212,179,106,.12), transparent 60%),
		linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 90%);
	border: 1px solid rgba(212,179,106,.3);
	border-radius: var(--radius);
	padding: 28px 22px;
	text-align: center;
	transition: all .25s;
}
.tiv-contact-item:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,31,48,.3); }
.tiv-contact-label {
	color: var(--gold-light) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin: 0 0 10px !important;
}
.tiv-contact-label::after {
	content: "";
	display: block;
	width: 30px;
	height: 1px;
	margin: 10px auto 0;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.tiv-contact-item p { color: rgba(255,255,255,.88); margin: 0; font-size: 15.5px; }
.tiv-contact-item a { color: var(--gold-light); }
.tiv-contact-item a:hover { color: var(--white); }

/* Listas a dos columnas en "Asesoría y trámites" */
#asesoria-y-tramites ul, #consultanta-si-formalitati ul { columns: 2; column-gap: 40px; }
#asesoria-y-tramites li, #consultanta-si-formalitati li { break-inside: avoid; }

/* Áreas jurídicas */
.tiv-areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.tiv-area-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius);
	padding: 34px 28px;
	text-align: center;
	color: var(--ink);
	transition: all .25s;
}
.tiv-area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tiv-area-icon { font-size: 38px; display: block; margin-bottom: 14px; }
.tiv-area-card h2 { font-size: 21px; letter-spacing: .05em; }
.tiv-area-card p { font-size: 14.5px; color: var(--muted); }
.tiv-area-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.tiv-area-content h2 { text-align: left; }
.tiv-area-content h2::after { display: none; }
.tiv-aside-card {
	background: var(--navy);
	border-radius: var(--radius);
	padding: 30px 26px;
	text-align: center;
	position: sticky;
	top: 100px;
}
.tiv-aside-card h2 { color: var(--white); font-size: 20px; }
.tiv-aside-card p { color: rgba(255,255,255,.8); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.tiv-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); }
.tiv-footer a { color: rgba(255,255,255,.82); }
.tiv-footer a:hover { color: var(--gold-light); }
.tiv-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 60px 24px 30px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
}
.tiv-footer h3 { color: var(--gold-light); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.tiv-footer p { margin: 0 0 10px; font-size: 14.5px; }
.tiv-footer-name { font-family: var(--serif); letter-spacing: .14em; color: var(--white); margin-top: 12px; }
.tiv-footer-tag { font-style: italic; font-size: 13.5px; color: rgba(255,255,255,.6); }
.tiv-footer-menu { list-style: none; margin: 0; padding: 0; }
.tiv-footer-menu li { margin-bottom: 8px; font-size: 14.5px; }
.tiv-social { display: flex; gap: 14px; }
.tiv-social a { opacity: .85; }
.tiv-social a:hover { opacity: 1; }
.tiv-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 22px 24px 30px; font-size: 13px; }
.tiv-footer-bottom .tiv-ornament { margin-bottom: 8px; }

/* Paginación */
.tiv-pagination { text-align: center; }
.tiv-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.tiv-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--white);
}
.tiv-pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.tiv-area-layout { grid-template-columns: 1fr; }
	.tiv-aside-card { position: static; }
	.tiv-cards > .wp-block-group__inner-container,
	.tiv-steps > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.tiv-cards > .wp-block-group__inner-container,
	.tiv-steps > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.tiv-contact-data > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.tiv-serv-row { grid-template-columns: 1fr; }
	.tiv-serv-photo img { max-height: 180px; }
	.tiv-serv-id { border-right: 0; border-bottom: 1px solid var(--line); }
	.tiv-serv-list ul,
	#asesoria-y-tramites ul, #consultanta-si-formalitati ul { columns: 1; }
	.tiv-serv-tabs { position: static; }
}
@media (max-width: 860px) {
	.tiv-burger { display: block; }
	/* Idioma y hamburguesa a la derecha (la nav sale del flujo al ser fixed) */
	.tiv-header-actions { margin-left: auto; }
	.tiv-nav {
		position: fixed;
		top: 76px;
		left: 0; right: 0;
		background: var(--navy-deep);
		padding: 12px 0 20px;
		transform: translateY(-130%);
		transition: transform .3s;
		z-index: 99;
		max-height: calc(100vh - 76px);
		overflow-y: auto;
	}
	.tiv-nav.is-open { transform: translateY(0); }
	.tiv-menu { flex-direction: column; gap: 0; }
	.tiv-menu a { padding: 13px 28px; }
	.tiv-menu .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; background: rgba(255,255,255,.04); padding: 0 0 6px;
	}
	.tiv-menu .sub-menu a { padding: 9px 44px; }
	.tiv-sede-grid { grid-template-columns: 1fr; }
	.tiv-form-card { padding: 30px 22px; }
	.tiv-form-2col { grid-template-columns: 1fr; }
	.tiv-section { padding: 52px 0; }
	.tiv-btn--header { display: none; }
}
