/* ============================================
   BARÓN BUENO - STYLESHEET v1.9
   Paleta monocromática premium
   Updated: Mobile offcanvas nav redesign
============================================ */

:root {
	--primary-color: #000000;
	--secondary-color: #1C1C1C;
	--light-gray: #F5F5F5;
	--white: #FFFFFF;
	--gray: #6c757d;
	--success: #25d366; /* Solo para WhatsApp */
}

/* Override Bootstrap colors with monochrome palette */
.btn-primary {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: var(--white) !important;
	transition: all 0.3s ease !important;
}

.btn-primary:hover {
	background-color: #2a2a2a !important;
	border-color: #fff !important;
	color: #fff !important;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.25), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
	transform: translateY(-2px) scale(1.02) !important;
}

.btn-outline-primary {
	color: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color) !important;
	color: var(--white) !important;
}

.btn-success {
	background-color: var(--success) !important;
	border-color: var(--success) !important;
	transition: all 0.3s ease !important;
}

.btn-success:hover {
	background-color: #1ea952 !important;
	border-color: #fff !important;
	color: #fff !important;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(37, 211, 102, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
	transform: translateY(-2px) scale(1.02) !important;
}

.text-primary {
	color: var(--primary-color) !important;
}

.bg-primary {
	background-color: var(--primary-color) !important;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #333;
	line-height: 1.6;
	overflow-x: hidden;
}

/* ============================================
   NAVBAR
============================================ */

.navbar {
	transition: all 0.3s ease;
}

.navbar.bg-dark {
	background-color: rgba(0, 0, 0, 0.95) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
	transition: all 0.3s ease;
}

.nav-link {
	font-weight: 500;
	transition: all 0.3s ease;
	padding: 0.5rem 1rem !important;
}

.nav-link:hover {
	color: #fff !important;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.btn-secondary {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	color: #fff;
}

.btn-secondary:hover {
	background-color: #2c2c2c;
	border-color: #2c2c2c;
	transform: translateY(-2px);
}

/* ============================================
   HEADER / HERO
============================================ */

header {
	position: relative;
	display: flex;
	align-items: center;
}

header .caption h1 {
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
	margin-bottom: 1.5rem;
}

header .caption p {
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Counters */
.home-counters {
	color: #fff;
}

.home-counters .amount {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.home-counters .amount .icon {
	font-size: 1.5rem;
	margin-right: 0.5rem;
}

.home-counters .count {
	display: inline-block;
}

.home-counters p:last-child {
	font-size: 0.9rem;
	margin-bottom: 0;
	opacity: 0.9;
}

/* ============================================
   SECTIONS
============================================ */

section {
	position: relative;
}

.subtitle {
	font-size: 0.875rem;
	letter-spacing: 2px;
	margin-bottom: 0.5rem;
}

h2.title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
	h2.title {
		font-size: 1.75rem;
	}
}

/* Cards */
.card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body ul li {
	padding: 0.25rem 0;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
============================================ */

.whatsapp-float {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 30px;
	right: 30px;
	background-color: #25d366;
	color: #fff;
	border-radius: 50%;
	text-align: center;
	font-size: 30px;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	text-decoration: none;
}

.whatsapp-float:hover {
	background-color: #1ea952;
	color: #fff;
	transform: scale(1.1);
	box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
	margin: 0;
}

/* ============================================
   FORM STYLES
============================================ */

.form-control, .form-select {
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.form-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #333;
}

.form-check-input:checked {
	background-color: var(--secondary);
	border-color: var(--secondary);
}

/* ============================================
   FOOTER
============================================ */

footer {
	background-color: #1a1a1a;
}

footer a:hover {
	color: var(--secondary) !important;
}

/* Byzz SmartAI Branding */
.byzz-branding {
	text-align: center;
	padding-top: 1rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
}

.byzz-text {
	background: linear-gradient(90deg, #a3a3a3 20%, #ffffff 50%, #a3a3a3 80%);
	background-size: 200% auto;
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	animation: shine-byzz 3s linear infinite;
	font-weight: 700;
	letter-spacing: 0.5px;
}

@keyframes shine-byzz {
	to {
		background-position: 200% center;
	}
}

/* ============================================
   UTILITY CLASSES
============================================ */

.bg-light {
	background-color: #f8f9fa !important;
}

.text-primary {
	color: var(--secondary) !important;
}

.object-fit-cover {
	object-fit: cover;
}

/* ============================================
   ANIMATIONS
============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
	.whatsapp-float {
		width: 50px;
		height: 50px;
		bottom: 20px;
		right: 20px;
		font-size: 24px;
	}
	
	.home-counters .amount {
		font-size: 1.5rem;
	}
	
	.home-counters p:last-child {
		font-size: 0.75rem;
	}
}

/* ============================================
   EXIT-INTENT POPUP (DESKTOP ONLY)
============================================ */

#exit-intent-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#exit-intent-popup.show {
	opacity: 1;
	visibility: visible;
}

.exit-popup-content {
	max-width: 500px;
	max-height: 90vh;
	width: 90%;
	overflow-y: auto;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
	backdrop-filter: blur(40px);
	-webkit-backdrop-filter: blur(40px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 20px;
	padding: 30px 25px;
	position: relative;
	box-shadow: 
		0 20px 60px rgba(0, 0, 0, 0.5),
		0 0 40px rgba(255, 255, 255, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

#exit-intent-popup.show .exit-popup-content {
	transform: scale(1);
}

.exit-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 18px;
	z-index: 10;
	outline: none;
}

.exit-popup-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.exit-popup-icon {
	font-size: 40px;
	color: #fff;
	text-align: center;
	margin-bottom: 15px;
	filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.exit-popup-title {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.exit-popup-subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	text-align: center;
	margin-bottom: 8px;
	font-weight: 600;
}

.exit-popup-description {
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.5;
}

.exit-popup-features {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
}

.exit-popup-features li {
	color: rgba(255, 255, 255, 0.9);
	padding: 8px 0;
	font-size: 15px;
	position: relative;
	padding-left: 30px;
}

.exit-popup-features li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #25d366;
	font-weight: 700;
	font-size: 18px;
}

.exit-popup-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.exit-popup-input {
	width: 100%;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	color: #fff;
	font-size: 14px;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.exit-popup-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.exit-popup-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.exit-popup-btn {
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.exit-popup-btn:hover {
	background: linear-gradient(135deg, #1a1a1a 0%, var(--primary-color) 100%);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
}

.exit-popup-success {
	display: none;
	text-align: center;
	padding: 20px;
}

.exit-popup-success-icon {
	font-size: 60px;
	color: #25d366;
	margin-bottom: 20px;
}

.exit-popup-success-title {
	font-size: 24px;
	color: #fff;
	margin-bottom: 10px;
	font-weight: 700;
}

.exit-popup-success-text {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	line-height: 1.6;
}

.exit-popup-description-subtitle {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 5px;
	font-weight: 400;
	font-style: italic;
}

.exit-popup-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.exit-popup-footer svg {
	width: 12px;
	height: 12px;
	opacity: 0.5;
}

/* Mobile styles - Option C: Soft modal after scroll (only on index.html) */
@media (max-width: 1023px) {
	#exit-intent-popup {
		padding: 20px;
	}
	
	.exit-popup-content {
		max-width: 90%;
		width: 90%;
		max-height: 85vh;
		overflow-y: auto;
		padding: 30px 20px;
		border-radius: 16px;
	}
	
	.exit-popup-icon {
		font-size: 40px;
	}
	
	.exit-popup-title {
		font-size: 22px;
		margin-bottom: 8px;
	}
	
	.exit-popup-subtitle {
		font-size: 14px;
	}
	
	.exit-popup-description {
		font-size: 13px;
		margin-bottom: 20px;
	}
	
	.exit-popup-features {
		font-size: 13px;
		margin-bottom: 25px;
	}
	
	.exit-popup-features li {
		margin-bottom: 8px;
	}
	
	.exit-popup-input {
		font-size: 14px;
		padding: 12px 15px;
	}
	
	.exit-popup-btn {
		font-size: 14px;
		padding: 14px 20px;
	}
	
	.exit-popup-footer {
		font-size: 11px;
	}
	
	.exit-popup-close {
		width: 30px;
		height: 30px;
		font-size: 24px;
		top: 10px;
		right: 10px;
	}
}

/* ============================================
   NAVBAR SCROLL EFFECT
============================================ */

.navbar {
	padding: 1rem 0;
}

.navbar.scrolled {
	padding: 0.5rem 0;
	background-color: rgba(0, 0, 0, 0.95) !important;
}

/* ============================================
   IMAGE PLACEHOLDERS
   (temporal hasta tener imágenes reales)
============================================ */

img[src*="placeholder"] {
	background-color: #e9ecef;
	border: 2px dashed #dee2e6;
}

/* ============================================
   ANTES Y DESPUÉS BANNER INFINITO
============================================ */

#antes-despues {
	background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.antes-despues-banner {
	overflow: hidden;
	position: relative;
	padding: 30px 0;
	background: #ffffff;
	border-radius: 8px;
}

.antes-despues-track {
	display: flex;
	gap: 30px;
	will-change: transform;
}

.antes-despues-item {
	flex-shrink: 0;
	position: relative;
	width: 250px;
	height: 175px;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.antes-despues-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.badge-overlay {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.badge-overlay .badge {
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	opacity: 0.95;
	font-weight: 600;
}

/* ============================================
   OFFCANVAS MOBILE NAV
============================================ */

/* Ocultar offcanvas en desktop — la nav horizontal toma su lugar */
@media (min-width: 992px) {
	#offcanvas-navbar {
		display: none !important;
	}
}

#offcanvas-navbar {
	background: #0d0d0d;
	width: 300px !important;
	border-right: none;
}

#offcanvas-navbar .offcanvas-header {
	padding: 1.4rem 1.5rem 1.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	align-items: center;
}

#offcanvas-navbar .offcanvas-body {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.5rem;
	overflow-y: auto;
}

/* Nav items as styled section selectors */
#offcanvas-navbar .navbar-nav {
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 0;
}

#offcanvas-navbar .offcanvas-nav-item .nav-link {
	display: flex !important;
	align-items: center;
	padding: 0.9rem 1rem !important;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.2s ease, color 0.2s ease;
	text-decoration: none !important;
	letter-spacing: 0.2px;
}

#offcanvas-navbar .offcanvas-nav-item .nav-link:hover,
#offcanvas-navbar .offcanvas-nav-item .nav-link:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.18);
}

#offcanvas-navbar .offcanvas-nav-item .nav-link .nav-icon {
	width: 28px;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
	flex-shrink: 0;
}

#offcanvas-navbar .offcanvas-nav-item .nav-link .nav-label {
	flex: 1;
}

#offcanvas-navbar .offcanvas-nav-item .nav-link .nav-arrow {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.25);
	margin-left: auto;
}

/* Action buttons area */
#offcanvas-navbar .offcanvas-actions {
	margin-top: auto;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

#offcanvas-navbar .offcanvas-actions .btn {
	width: 100% !important;
	padding: 0.8rem 1rem;
	font-size: 0.95rem;
	border-radius: 10px;
}

@media (max-width: 768px) {
	.antes-despues-banner {
		padding: 20px 0;
	}
	
	.antes-despues-track {
		gap: 20px;
	}
	
	.antes-despues-item {
		width: 175px;
		height: 125px;
	}
	
	.badge-overlay .badge {
		font-size: 0.75rem;
		padding: 0.4rem 0.8rem;
	}
}

/* ============================================
   MÓVIL — RESPONSIVIDAD GLOBAL (max-width: 767px)
============================================ */

@media (max-width: 767px) {

	/* --- HERO PRINCIPAL (index.html) --- */
	header .caption {
		text-align: center;
	}

	header .caption h1 {
		font-size: 1.9rem;
		line-height: 1.2;
	}

	header .caption .lead {
		font-size: 0.95rem;
	}

	header .caption .btn {
		width: 100%;
		margin-right: 0 !important;
		margin-bottom: 0.6rem;
	}

	/* Counters — centrar y reducir */
	.home-counters {
		text-align: center;
	}

	.home-counters .amount {
		font-size: 1.3rem;
	}

	.home-counters p:last-child {
		font-size: 0.7rem;
	}

	/* --- SECTION HEADINGS --- */
	.col-sm-8.offset-sm-2 {
		padding: 0 1rem;
	}

	h2.h1 {
		font-size: 1.65rem !important;
	}

	h2.h3 {
		font-size: 1.3rem !important;
	}

	.display-3 {
		font-size: 2rem !important;
	}

	.display-4 {
		font-size: 2rem !important;
	}

	/* --- SECTION PADDING --- */
	.py-5 {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	section .container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	/* --- SERVICE CARDS (thumbnails horizontales) --- */
	.service-card-img {
		min-height: 130px;
		overflow: hidden;
	}

	.service-card-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0.375rem 0 0 0.375rem !important;
	}

	.card-body {
		padding: 0.85rem !important;
	}

	.card-title {
		font-size: 1rem !important;
	}

	.card-text {
		font-size: 0.85rem;
	}

	.card-body .list-unstyled {
		display: none; /* ocultar checklist en móvil para ganar espacio */
	}

	/* --- CTA SECTION --- */
	section .btn-lg.d-block,
	section .btn-lg {
		display: block !important;
		width: 100%;
		margin-bottom: 0.75rem;
		text-align: center;
	}

	/* --- "POR QUÉ ELEGIRNOS" --- */
	section .col-12.col-md-6 .img-fluid.rounded.shadow {
		max-width: 220px;
		margin-bottom: 1.5rem;
	}

	/* --- CONTACT SECTION --- */
	.col-md-6 .h1,
	.col-12.col-md-6 .h1 {
		font-size: 1.5rem !important;
	}

	/* --- HERO SERVICE PAGES --- */
	.hero-service {
		min-height: 40vh !important;
		padding-top: 80px;
		padding-bottom: 2rem;
	}

	.hero-service h1 {
		font-size: 1.75rem !important;
	}

	/* --- FEATURE CARDS (páginas de servicio) --- */
	.col-md-6.col-lg-3 .card,
	.col-lg-3 .card {
		margin-bottom: 0;
	}

	/* --- FOOTER --- */
	footer .col-12.col-md-4 {
		text-align: center;
	}

	footer .col-6.col-md-2 {
		text-align: left;
	}

	footer a[href^="mailto"] {
		word-break: break-all;
		font-size: 0.8rem;
	}

	footer .col-12.col-md-6.text-center.text-md-start {
		text-align: center !important;
	}

	footer .col-12.col-md-6.text-center.text-md-end {
		text-align: center !important;
	}

	/* --- NAVBAR OFFCANVAS --- */
	.offcanvas-body .navbar-nav .nav-link {
		font-size: 1.1rem;
		padding: 0.75rem 1rem !important;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}

	.offcanvas-body .btn {
		width: 100%;
		margin-bottom: 0.5rem;
		padding: 0.8rem 1rem;
	}
	.bg-light .card.text-center.p-4 {
		padding: 1.25rem !important;
	}

	/* --- SIDE-BY-SIDE SECTIONS (img + text col-md-6) --- */
	section .row.align-items-center > .col-md-6 img.img-fluid,
	section .row.align-items-center > .col-12.col-md-6 img.img-fluid {
		border-radius: 0.5rem;
		max-height: 220px;
		width: 100%;
		object-fit: cover;
	}

	/* --- BOTONES HÉROE — evitar doble margin en móvil --- */
	.mt-4 .btn-lg + .btn-lg {
		margin-top: 0 !important;
	}

	/* Hero caption buttons — full width stacked */
	header .caption .btn-lg {
		display: block !important;
		width: 100%;
		margin-right: 0 !important;
	}

	/* --- FORM CARD SPACING --- */
	.card.border-0.shadow-sm .card-body.p-4 {
		padding: 1.25rem !important;
	}

	/* --- INLINE-BLOCK BUTTONS → BLOCK en móvil --- */
	.d-sm-inline-block {
		display: block !important;
		width: 100%;
	}
}

/* ============================================
   PÁGINAS LEGALES — RESPONSIVIDAD MÓVIL
============================================ */

@media (max-width: 767px) {

	/* Hero */
	.legal-hero {
		min-height: 150px !important;
		padding-top: 72px !important;
		padding-bottom: 1.5rem !important;
	}
	.legal-hero h1 {
		font-size: 1.6rem !important;
		line-height: 1.2 !important;
	}
	.legal-hero p {
		font-size: 0.85rem !important;
	}

	/* Contenido principal — menos padding vertical */
	main.py-5 {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}

	/* Texto */
	.legal-content h2 {
		font-size: 1.1rem !important;
		margin-top: 1.75rem !important;
	}
	.legal-content h3 {
		font-size: 0.95rem !important;
	}
	.legal-content p,
	.legal-content li {
		font-size: 0.9rem !important;
		line-height: 1.7 !important;
	}

	/* Tablas — wrapper Bootstrap gestiona el scroll horizontal */
	.legal-content .table-responsive {
		border: 1px solid #e9ecef;
		border-radius: 8px;
		margin-bottom: 1rem;
		-webkit-overflow-scrolling: touch;
	}
	.legal-content table {
		font-size: 0.78rem !important;
		margin-bottom: 0 !important;
		min-width: 480px; /* fuerza scroll en vez de aplastar columnas */
	}
	.legal-content table th,
	.legal-content table td {
		padding: 0.5rem 0.65rem !important;
		white-space: normal;
		word-break: break-word;
	}
	/* Sin .table-responsive (politica-privacidad) — fallback directo */
	.legal-content > table {
		min-width: 0;
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Highlight box */
	.legal-highlight {
		padding: 0.9rem 1rem !important;
	}
	.legal-highlight p {
		font-size: 0.875rem !important;
	}

	/* Aviso de actualización */
	.legal-update {
		font-size: 0.8rem !important;
		padding: 0.65rem 0.9rem !important;
	}

	/* Cards de derechos — 1 columna en xs, 2 en sm */
	.rights-card {
		padding: 1rem !important;
	}
	.rights-card .rights-icon {
		width: 38px !important;
		height: 38px !important;
		font-size: 0.95rem !important;
	}
	.rights-card h4 {
		font-size: 0.88rem !important;
	}
	.rights-card p {
		font-size: 0.8rem !important;
	}

	/* Cards de navegadores (politica-cookies) */
	.browser-config-card {
		padding: 0.85rem 1rem !important;
	}
	.browser-config-card h5 {
		font-size: 0.85rem !important;
	}

	/* Card de contacto en privacidad */
	.card.border-0.shadow-sm .row.g-3 .col-sm-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* ToC — ya es static en móvil por el inline style, solo ajustamos padding */
	.toc-nav {
		padding: 1rem 1.1rem !important;
		margin-bottom: 1.5rem !important;
	}
	.toc-nav a {
		font-size: 0.82rem !important;
		padding: 0.35rem 0 !important;
	}

	/* Cookie type badge */
	.cookie-type-badge {
		font-size: 0.7rem !important;
		padding: 0.15rem 0.45rem !important;
	}

	/* Tabla de 2 cols (aviso-legal / privacidad) — primera col más estrecha */
	.legal-content > table td:first-child {
		width: 38%;
	}
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

#cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	background: #1a1a1a;
	border-top: 3px solid #f39c12;
	padding: 1rem 1.5rem;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
	animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

@keyframes slideDownBanner {
	from { transform: translateY(0); }
	to   { transform: translateY(110%); }
}

.cookie-banner-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cookie-banner-text {
	color: #ccc;
	font-size: 0.88rem;
	flex: 1;
	min-width: 240px;
	line-height: 1.5;
}

.cookie-banner-text i { color: #f39c12; }

.cookie-banner-link {
	color: #f39c12;
	text-decoration: underline;
}

.cookie-banner-link:hover { color: #fff; }

.cookie-banner-actions {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
	align-items: center;
}

.cookie-btn {
	padding: 0.45rem 1.2rem;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid #f39c12;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	line-height: 1.4;
}

.cookie-btn-primary {
	background: #f39c12;
	color: #111;
}

.cookie-btn-primary:hover {
	background: #e67e22;
	border-color: #e67e22;
}

.cookie-btn-outline {
	background: transparent;
	color: #f39c12;
}

.cookie-btn-outline:hover {
	background: rgba(243, 156, 18, 0.1);
}

@media (max-width: 575px) {
	#cookie-banner { padding: 0.85rem 1rem; }

	.cookie-banner-content {
		flex-direction: column;
		gap: 0.75rem;
	}

	.cookie-banner-actions {
		width: 100%;
	}

	.cookie-btn {
		flex: 1;
		text-align: center;
	}
}
