/* --- RESET DE MÁRGENES (Quita el espacio blanco superior) --- */
		body, html {
			margin: 0 !important;
			padding: 0 !important;
		}

		/* --- ESTILOS HEADER SUPERIOR --- */
		.top-header {
			background-color: #ffffff;
			padding: 5px 0; 
			margin: 0;
			border-bottom: 1px solid #eaeaea; 
		}

		.header-wrapper {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.header-logo img {
			max-height: 55px; 
			width: auto;
		}

		.header-actions {
			display: flex;
			align-items: center;
			gap: 30px; 
		}

		.social-links {
			display: flex;
			gap: 18px;
		}

		.social-links a {
			color: #555;
			font-size: 22px;
			transition: color 0.3s ease, transform 0.3s ease;
		}

		.social-links a:hover {
			color: firebrick;
			transform: translateY(-2px);
		}

		.action-buttons {
			display: flex;
			gap: 12px;
		}

		.action-buttons .btn {
			padding: 6px 15px;
			border-radius: 4px;
			text-decoration: none;
			font-size: 13px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
		}

		.btn-outline-dark {
			color: #333;
			background-color: transparent;
			border: 2px solid #333;
			font-weight: 600;
			transition: all 0.3s ease;
		}

		.btn-outline-dark:hover {
			background-color: #333;
			color: #fff;
		}

		.btn-afiliat {
			background-color: firebrick;
			color: #fff;
			border: 2px solid firebrick;
			font-weight: 700;
			text-transform: uppercase;
			transition: all 0.3s ease;
			box-shadow: 0 2px 4px rgba(0,0,0,0.1);
		}

		.btn-afiliat:hover {
			background-color: #a01a1a;
			border-color: #a01a1a;
			color: #fff;
			box-shadow: 0 4px 8px rgba(0,0,0,0.2);
		}

		/* --- AJUSTES BARRA DE NAVEGACIÓN (NAVBAR) --- */
		.main-navbar {
			margin-bottom: 0 !important;
			border-radius: 0 !important;
			border: none !important;
		}

		.navbar-brand {
			display: flex !important;
			align-items: center;
			padding: 5px 15px !important;
			height: 50px;
		}
		
		.navbar-brand img {
			max-height: 35px; 
			width: auto;
			margin-right: 10px;
		}
		
		.navbar-brand span {
			color: #ffffff;
			font-weight: bold;
			font-size: 20px;
			line-height: 1;
		}

		.navbar-nav.navbar-right > li > a {
			display: flex;
			align-items: center;
			height: 50px; 
		}

		/* --- DROPDOWN SUBMENU CORREGIDO --- */
		.dropdown-submenu { position: relative; }
		
		/* Flecha indicadora por defecto */
		.dropdown-submenu > a:after {
			display: block; content: " "; float: right; width: 0; height: 0; 
			border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; 
			border-left-color: #ccc; margin-top: 5px; margin-right: -10px;
			transition: transform 0.3s ease;
		}

		/* ESCRITORIO (>768px) */
		@media (min-width: 768px) {
			.navbar-brand { display: none !important; }
			
			.dropdown-submenu > .dropdown-menu {
				top: 0; left: 100%; margin-top: -6px; margin-left: -1px; border-radius: 0 6px 6px 6px;
			}
			
			/* En escritorio sí usamos el hover */
			.navbar-nav > li.dropdown:hover > ul.dropdown-menu { display: block; }
			.dropdown-submenu:hover > .dropdown-menu { display: block; }
			.dropdown-submenu:hover > a:after { border-left-color: #fff; }
		}
		
		/* MÓVIL (<767px) */
		@media (max-width: 767px) {
			/*.header-wrapper { justify-content: center; }*/

			.header-logo { justify-content: left; }
			.header-logo img { max-height: 50px; }
			.social-links{ justify-content: right; }
			
			.dropdown-submenu > .dropdown-menu {
				display: none; position: static; float: none; background-color: transparent; 
				border: none; box-shadow: none; margin-left: 15px; padding-bottom: 5px;
			}
			
			/* En móvil NO usamos :hover. Solo abrimos con la clase .open que añade JS */
			.dropdown-submenu.open > .dropdown-menu { display: block; }
			
			/* Giramos la flecha hacia abajo por defecto, y hacia arriba al abrir */
			.dropdown-submenu > a:after { transform: rotate(90deg); margin-top: 6px; }
			.dropdown-submenu.open > a:after { transform: rotate(-90deg); }
		}

		