/* Controlar la visibilidad de las tarjetas AJAX */
.card-inner[style*="display: none"] {
	display: none !important;
}

.card-inner[style*="display: block"] {
	display: block !important;
}

/* Transiciones suaves para las tarjetas */
.card-inner {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner.animated {
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preloader con animación más suave */
.preloader {
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader .spinner {
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading {
	text-align: center;
	padding: 50px;
	color: #ccc;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	transition: all 0.3s ease;
}

.loading i {
	font-size: 48px;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
	display: block;
	transition: all 0.3s ease;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.error {
	text-align: center;
	padding: 50px;
	color: #ff6b6b;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	transition: all 0.3s ease;
}

.error i {
	font-size: 48px;
	margin-bottom: 20px;
	display: block;
	transition: all 0.3s ease;
}

.alert-success,
.alert-error {
	margin: 20px 0;
	padding: 15px;
	border-radius: 4px;
	animation: slideIn 0.3s ease-in;
	z-index: 20;
	position: relative;
}

.alert-success {
	background: #4CAF50;
	color: white;
}

.alert-error {
	background: #f44336;
	color: white;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Cursor parpadeante para typewriter */
#typewriter::after {
	content: '|';
	animation: blink 1s infinite;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/* === ESTILOS PARA SECCIÓN CCTV SEO OPTIMIZADA === */
.cctv-section {
	margin: 30px 0;
	padding: 25px;
	background: linear-gradient(135deg, rgba(120, 204, 109, 0.1), rgba(255, 255, 255, 0.05));
	border-radius: 12px;
	border: 1px solid rgba(120, 204, 109, 0.2);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cctv-section h2 {
	color: #78cc6d !important;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 15px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cctv-section h3 {
	color: #5a9e5a;
	font-size: 22px;
	font-weight: 600;
	margin: 25px 0 15px 0;
}

.cctv-section h4 {
	color: #4a8a4a;
	font-size: 18px;
	font-weight: 500;
	margin: 20px 0 10px 0;
}

.cctv-section p {
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 16px;
}

.cctv-section strong {
	color: #333;
	font-weight: 600;
}

/* Grid de servicios CCTV */
.cctv-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 25px 0;
}

.cctv-service-item {
	background: rgba(255, 255, 255, 0.9);
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #78cc6d;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.cctv-service-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.95);
}

.cctv-service-item h4 {
	color: #78cc6d;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}

.cctv-service-item p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	color: #555;
}

/* Sección de keywords SEO */
.seo-keywords {
	background: linear-gradient(135deg, #78cc6d, #5a9e5a);
	color: white;
	padding: 20px;
	border-radius: 8px;
	margin-top: 25px;
}

.seo-keywords h4 {
	color: white !important;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}

.seo-keywords p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	font-weight: 500;
}

/* Responsive para móviles */
@media (max-width: 768px) {
	.cctv-services-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.cctv-section {
		margin: 20px 0;
		padding: 20px;
	}

	.cctv-section h2 {
		font-size: 24px;
	}

	.cctv-section h3 {
		font-size: 20px;
	}

	.cctv-service-item {
		padding: 15px;
	}
}

/* === ESTILOS PARA EL NUEVO DISEÑO COMPACTO Y ELEGANTE === */

/* Párrafo hero intro elegante */
.hero-intro {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.hero-intro:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-intro h2 {
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sección CCTV compacta */
.cctv-compact-section {
	background: rgba(255, 255, 255, 0.95);
	padding: 20px;
	border-radius: 10px;
	border: 1px solid rgba(120, 204, 109, 0.15);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cctv-compact-section h3 {
	font-weight: 600;
	margin-bottom: 15px;
}

/* Highlights de CCTV */
.cctv-highlights {
	border: 1px solid rgba(120, 204, 109, 0.3);
	transition: all 0.3s ease;
}

.cctv-highlights:hover {
	background: rgba(120, 204, 109, 0.08);
	border-color: rgba(120, 204, 109, 0.5);
}

/* Servicios CCTV en formato compacto */
.cctv-services-compact {
	margin-top: 15px;
}

.service-item-compact {
	transition: all 0.3s ease;
	border: 1px solid rgba(120, 204, 109, 0.2);
}

.service-item-compact:hover {
	background: rgba(120, 204, 109, 0.05) !important;
	transform: translateX(5px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.service-item-compact h5 {
	font-weight: 600;
	margin: 0 0 5px 0;
	transition: color 0.3s ease;
}

.service-item-compact:hover h5 {
	color: #5a9e5a;
}

/* Keywords SEO ocultas pero rastreables */
.seo-keywords-hidden {
	font-size: 1px;
	line-height: 1px;
	color: transparent;
	background: transparent;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Responsive para el nuevo diseño */
@media (max-width: 1023px) {
	.hero-intro {
		padding: 20px;
		margin-bottom: 20px;
	}

	.hero-intro h2 {
		font-size: 20px;
	}

	.cctv-compact-section {
		padding: 15px;
		margin-top: 15px;
	}

	.service-item-compact {
		padding: 8px;
		margin-bottom: 10px;
	}

	.service-item-compact h5 {
		font-size: 13px;
	}

	.service-item-compact p {
		font-size: 12px;
	}
}

@media (max-width: 560px) {
	.hero-intro {
		padding: 15px;
	}

	.hero-intro h2 {
		font-size: 18px;
	}

	.hero-intro p {
		font-size: 14px;
	}

	.cctv-compact-section {
		padding: 12px;
	}

	.cctv-highlights {
		padding: 12px;
	}

	.cctv-highlights p {
		font-size: 13px;
	}
}
