/* SITE GENERAL */

/* Barra superior de sitios hermanos */
.top-bar {
	/*
	background: #4b5563;
	*/
	background: #77808c;
	padding: 0.5rem 0;
	border-bottom: 2px solid #374151;
}

.sister-sites {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}

.sister-site-logo {
	height: 28px;
	width: auto;
	cursor: pointer;
	transition: all 0.2s;
	opacity: 0.9;
}

.sister-site-logo:hover {
	opacity: 1;
	transform: scale(1.05);
}

#mobileMenu .sister-site-logo {
	/*width: 200px;
	*/
	height: 30px;
}

/* Header principal */
.main-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: white;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-container {
	height: 50px;
	display: flex;
	align-items: center;
}

.logo-container img {
	max-height: 60px;
	/*
	width: auto;
	*/
	max-width: 100%;
}

/* Buscador */
.search-container {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.search-input {
	width: 100%;
	padding: 0.6rem 1rem 0.6rem 2.5rem;
	border: 2px solid #e5e7eb;
	border-radius: 2rem;
	font-size: 0.95rem;
	transition: all 0.3s;
}

.search-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	font-size: 1.1rem;
}

/* Links de autenticación */
.auth-links {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

.auth-links a {
	color: #374151;
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	transition: background-color 0.2s;
	white-space: nowrap;
	font-size: 0.9rem;
}

.auth-links a:hover {
	background-color: #f3f4f6;
}

/* Segunda fila de navegación */
.secondary-nav {
	background: #f9fafb;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e5e7eb;
}

/* Dropdown de categorías */
.category-dropdown {
	min-width: 280px;
}

.category-dropdown .btn {
	padding: 0.5rem 1.25rem;
	font-weight: 500;
	border: 2px solid #d1d5db;
	background: white;
	color: #374151;
	border-radius: 0.5rem;
	transition: all 0.2s;
}

.category-dropdown .btn:hover {
	border-color: #3b82f6;
	background: #eff6ff;
	color: #3b82f6;
}

.category-dropdown .dropdown-menu {
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	padding: 0.5rem;
	max-height: 400px;
	overflow-y: auto;
}

.category-dropdown .dropdown-item {
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.category-dropdown .dropdown-item:hover {
	background: #eff6ff;
	color: #3b82f6;
	padding-left: 1.25rem;
}

/* Link Tips */
.tips-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	background: #fef3c7;
	color: #92400e;
	text-decoration: none;
	font-weight: 600;
	border-radius: 0.5rem;
	transition: all 0.2s;
	border: 2px solid #fbbf24;
}

.tips-link:hover {
	background: #fde68a;
	color: #78350f;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.tips-link i {
	font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
	display: none;
	background: white;
	border: 2px solid #e5e7eb;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	color: #374151;
	font-size: 1.25rem;
	cursor: pointer;
	transition: all 0.2s;
}

.mobile-menu-btn:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}

.mobile-search-btn {
	display: none;
	background: white;
	border: 2px solid #e5e7eb;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	color: #374151;
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.2s;
}

.mobile-search-btn:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}

/* Offcanvas personalizado */
.offcanvas-header {
	border-bottom: 1px solid #e5e7eb;
}

.offcanvas-body .nav-link {
	padding: 1rem 1.25rem;
	color: #374151;
	font-weight: 500;
	border-radius: 0.5rem;
	margin-bottom: 0.5rem;
	transition: all 0.2s;
}

.offcanvas-body .nav-link:hover {
	background: #f3f4f6;
	color: #3b82f6;
}

.offcanvas-body .nav-link i {
	margin-right: 0.75rem;
	font-size: 1.1rem;
}

/* Estilos de tarjetas */
.ad-card {
	width: 450px;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transition: transform .12s ease, box-shadow .12s ease;
	background: white;
	margin-bottom: 1.5rem;
	cursor: pointer;
}

.ad-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.ad-card .meta {
	font-size: .85rem;
	color: #6b7280;
}

.ad-card .excerpt {
	color: #374151;
	overflow: hidden;
	line-height: 1.5;
}

.ad-card .tag {
	font-size: .78rem;
	padding: .18rem .5rem;
	border-radius: .5rem;
	background: #f3f4f6;
	margin-right: .35rem;
	color: #4b5563;
}

.ad-image {
	object-fit: cover;
	width: 100%;
	height: 200px;
}

.contact-icons img,
.contact-icons i {
	width: 24px;
	height: 24px;
	margin-right: 0.5rem;
	color: #6b7280;
}

/* Grid Masonry */
.masonry-grid {
	display: grid;
	grid-gap: 1.5rem;
}

/* Responsive columns */
@media (min-width: 576px) {
	.masonry-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (min-width: 768px) {
	.masonry-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.masonry-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1400px) {
	.masonry-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Utilidades */
.main-content {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

/* Responsive */
@media (max-width: 991px) {
	.desktop-search {
		display: none !important;
	}

	.desktop-nav {
		display: none !important;
	}

	.mobile-menu-btn,
	.mobile-search-btn {
		display: block;
	}

	.secondary-nav {
		display: none !important;
	}

	.mobile-controls {
		display: flex !important;
		gap: 0.5rem;
		align-items: center;
	}

	.top-bar {
		padding: 0.35rem 0;
	}

	.sister-site-logo {
		height: 24px;
	}

	.sister-sites {
		gap: 1rem;
	}
}

@media (min-width: 992px) {
	.mobile-controls {
		display: none !important;
	}
}

/* Ajustes para pantallas medianas */
@media (min-width: 992px) and (max-width: 1199px) {
	.search-container {
		max-width: 350px;
	}

	.auth-links a {
		font-size: 0.85rem;
		padding: 0.5rem 0.6rem;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.search-container {
		max-width: 450px;
	}
}







/* AD DETAILS */

/* Header fijo */
.top-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: white;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-container {
	height: 50px;
	display: flex;
	align-items: center;
}

.logo-container img {
	max-height: 40px;
	width: auto;
}

.auth-links a {
	color: #374151;
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	transition: background-color 0.2s;
}

.auth-links a:hover {
	background-color: #f3f4f6;
}

/* Breadcrumb */
.breadcrumb-section {
	background: #f9fafb;
	padding: 1rem 0;
	border-bottom: 1px solid #e5e7eb;
}

/* Imagen principal */
.main-image {
	width: 100%;
	height: 500px;
	object-fit: cover;
	border-radius: 0.75rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Información del anuncio */
.ad-title {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.5rem;
}

.ad-category {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #10b981;
	color: white;
	border-radius: 2rem;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.price-tag {
	font-size: 2.5rem;
	font-weight: 800;
	color: #10b981;
	margin-bottom: 1rem;
}

.original-price {
	font-size: 1.5rem;
	color: #9ca3af;
	text-decoration: line-through;
	margin-left: 1rem;
}

.discount-badge {
	display: inline-block;
	background: #ef4444;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-weight: 600;
	margin-left: 1rem;
}

.ad-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	color: #6b7280;
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.ad-meta i {
	margin-right: 0.35rem;
}

.ad-description {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #374151;
	margin-bottom: 2rem;
}

/* Sección de contacto */
.contact-section {
	background: #f9fafb;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.contact-section h5 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #111827;
}

.contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	margin-bottom: 0.75rem;
}

.contact-btn i {
	font-size: 1.25rem;
}

.btn-phone {
	background: #3b82f6;
	color: white;
}

.btn-phone:hover {
	background: #2563eb;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-whatsapp {
	background: #25d366;
	color: white;
}

.btn-whatsapp:hover {
	background: #20ba5a;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-email {
	background: #6b7280;
	color: white;
}

.btn-email:hover {
	background: #4b5563;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Información del cliente */
.client-info {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.client-info h5 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: #111827;
}

.client-name {
	font-size: 1rem;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Mapa */
.map-container {
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
}

.map-container iframe {
	width: 100%;
	height: 400px;
	border: 0;
}

/* Fechas de vigencia */
.validity-dates {
	background: #fef3c7;
	border-left: 4px solid #f59e0b;
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 2rem;
}

.validity-dates h6 {
	font-weight: 600;
	color: #92400e;
	margin-bottom: 0.5rem;
}

.validity-dates p {
	margin: 0;
	color: #78350f;
	font-size: 0.95rem;
}

/* Características del producto */
.product-features {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.product-features h5 {
	color: #166534;
	font-weight: 600;
	margin-bottom: 1rem;
}

.product-features ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.product-features li {
	padding: 0.5rem 0;
	color: #166534;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.product-features li i {
	color: #10b981;
	font-size: 1.2rem;
}

/* Botón volver */
.back-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	transition: all 0.2s;
	margin-bottom: 1.5rem;
}

.back-btn:hover {
	background: #eff6ff;
	color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
	.main-image {
		height: 300px;
	}

	.ad-title {
		font-size: 1.5rem;
	}

	.price-tag {
		font-size: 2rem;
	}

	.original-price {
		font-size: 1.2rem;
	}

	.ad-meta {
		font-size: 0.85rem;
	}
}