/*
========================================
    style.css - Estilos Unificados
========================================
*/

/* ===== VARIABLES CSS ===== */
:root {
	--primary-color: #4f46e5;
	--secondary-color: #374151;
	--accent-color: #218838;
}

/* ===== ESTILOS BASE Y TIPOGRAFÍA ===== */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #0f172a;
	line-height: 1.6; /* Uniforme para legibilidad en documentos legales */
	background: #f8fafc;
}

/* ===== BARRA DE NAVEGACIÓN (NAVBAR) ===== */
.navbar {
	background: #fff;
	box-shadow: 0 2px 12px rgba(2, 6, 23, 0.06);
}

.navbar-brand {
	color: #374151;
	font-weight: 700;
	font-size: 1.2rem;
}

.nav-link {
	color: #374151;
	font-weight: 600;
	transition: all 0.2s;
}

/* Uniformidad en efecto hover del nav-link */
.nav-link:hover {
	text-shadow: 0 0 8px rgba(79, 70, 229, 0.6); /* Del archivo 'condiciones-de-uso' */
	transform: translateY(-2px);
}

/* ===== BOTONES GENERALES (UNIFICADOS) ===== */
/* Base para botones */
.btn-primary-custom, .btn-accede {
	color: white;
	padding: 10px 16px; /* Estandarizado al 10px 16px (versión de archivos legales) */
	border-radius: 8px;
	font-weight: 700;
	transition: all 0.3s;
	border: none;
	text-decoration: none;
	display: inline-block;
}

/* Botón Primario */
.btn-primary-custom {
	background: var(--primary-color);
}

.btn-primary-custom:hover {
	background: #4338ca; /* Ligeramente más oscuro, de 'legalidad-dispositivos-personales' */
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
	transform: translateY(-2px);
	color: white;
}

/* Botón Acceso (Accent) */
.btn-accede {
	background: var(--accent-color);
}

.btn-accede:hover {
	background: #1e7e34; /* Ligeramente más oscuro, de 'legalidad-dispositivos-personales' */
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4); /* Mantenemos la sombra estándar */
	transform: translateY(-2px);
	color: white;
}

/* ===== ESTILOS ESPECÍFICOS DE PÁGINAS LEGALES ===== */

/* Header general para páginas legales (Unificado a la versión de Condiciones y LOPD) */
.legal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 80px 0 60px;
	margin-bottom: 40px;
}

/* Header de Legalidad de Dispositivos (si necesitas un diseño distinto) */
.legal-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
	color: white;
	padding: 80px 0;
	text-align: center;
}

.legal-container {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
	margin-bottom: 40px;
}

.legal-section {
	margin-bottom: 35px;
}

.legal-section h2 {
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-bottom: 15px;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
}

.legal-section h3 {
	color: #374151;
	font-size: 1.2rem;
	margin: 20px 0 10px;
}

.legal-section p {
	color: #475569;
	margin-bottom: 12px;
}

.legal-section ul {
	color: #475569;
	margin-bottom: 15px;
	padding-left: 20px;
}

.legal-section li {
	margin-bottom: 8px;
}

.contact-info {
	background: #f1f5f9;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

/* Estilos de Legalidad Dispositivos Personales */
.eyebrow {
	font-weight: 600;
	color: #e0e7ff;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.legal-card {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e7eb;
	margin-bottom: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.legal-highlight {
	background: #eef2ff;
	border-left: 4px solid var(--primary-color);
	padding: 1.5rem;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.legal-warning {
	background: #fef3f2;
	border-left: 4px solid #dc2626;
	padding: 1.5rem;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.legal-success {
	background: #f0fdf4;
	border-left: 4px solid #16a34a;
	padding: 1.5rem;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.legal-danger {
	background: #fef2f2;
	border-left: 4px solid #ef4444;
	padding: 1.5rem;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.law-reference {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	border-left: 4px solid #94a3b8;
}

.timeline {
	position: relative;
	padding-left: 2rem;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--primary-color);
}

.timeline-item {
	position: relative;
	margin-bottom: 2rem;
	padding-left: 1.5rem;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -0.5rem;
	top: 0.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary-color);
	border: 2px solid white;
	box-shadow: 0 0 0 3px var(--primary-color);
}

.legal-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.sanction-card {
	border-left: 4px solid;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.sanction-minor {
	border-left-color: #f59e0b;
	background: #fffbeb;
}

.sanction-serious {
	border-left-color: #f97316;
	background: #fff7ed;
}

.sanction-very-serious {
	border-left-color: #dc2626;
	background: #fef2f2;
}

/* Estilos de Cumplimiento LOPD */
.compliance-badge {
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 15px;
	border-radius: 8px;
	text-align: center;
	margin: 20px 0;
}

.data-category {
	background: #f8fafc;
	border-left: 4px solid var(--primary-color);
	padding: 15px;
	margin: 15px 0;
	border-radius: 0 8px 8px 0;
}

.security-measures {
	background: #ecfdf5;
	border: 1px solid #d1fae5;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

/* Mejoras para el acordeón (Legalidad Dispositivos) */
.accordion-button:not(.collapsed) {
	background-color: #eef2ff;
	color: var(--primary-color);
	font-weight: 600;
}

.accordion-button:focus {
	box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
	border-color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
	background: #1e293b;
	color: #cbd5e1;
	padding: 48px 0; /* Estandarizado a 48px 0 (versión de Condiciones/LOPD) */
	border-top: 4px solid var(--primary-color);
	margin-top: 3rem; /* Añadido un margen superior para separarlo del contenido legal */
}

footer strong {
	color: white;
	margin-bottom: 6px;
	display: block;
	font-size: 1.1rem;
}

footer a {
	color: #60a5fa;
	transition: all 0.3s;
}

footer a:hover {
	text-decoration: underline;
}

/* ===== WHATSAPP FLOTANTE (DE 'legalidad-dispositivos-personales') ===== */
.whatsapp-float {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 1000;
}

.whatsapp-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: #25D366;
	color: white;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
	transition: all 0.3s ease;
}

.whatsapp-link:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
	color: white;
}

/* ===== RESPONSIVE / MÓVILES ===== */

/* Estilos mejorados para el navbar en móvil (Unificado) */
.navbar-nav .nav-link.btn-accede,
.navbar-nav .nav-link.btn-primary-custom {
	display: inline-block;
	width: auto;
	margin: 5px 0;
	text-align: center;
}

.navbar-collapse .navbar-nav {
	align-items: flex-start;
}

.navbar-collapse .nav-item {
	width: 100%;
}

.navbar-collapse .nav-link {
	padding: 8px 0;
}

.btn-group-mobile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 10px;
}

.btn-group-mobile .btn {
	text-align: center;
	width: 100%;
}

@media (max-width: 768px) {
	/* Ajustes generales para páginas legales */
	.legal-header {
		padding: 60px 0 40px;
	}

	.legal-container {
		padding: 25px 20px;
		margin: 0 10px 30px;
	}
	
	.legal-hero {
		padding: 50px 0;
	}
	.legal-hero h1 {
		font-size: 1.8rem;
	}
	.legal-card {
		padding: 1.5rem;
		margin-bottom: 1rem;
	}

	.navbar-nav {
		padding: 10px 0;
	}
	
	/* Whatsapp */
	.whatsapp-float {
		bottom: 15px;
		right: 15px;
	}
	.whatsapp-link {
		width: 50px;
		height: 50px;
	}
}

/* Ajustes específicos para escritorio */
@media (min-width: 992px) {
	.navbar-nav .btn-accede,
	.navbar-nav .btn-primary-custom {
		margin-left: 10px;
		white-space: nowrap;
	}
}