/* ==========================================================================
   APRA Energy — Tema de marca
   Rebasa la paleta del template a la identidad del flyer APRA:
   azul marino + verde hoja + dorado + naranja.
   Se carga DESPUÉS de custom.css para sobrescribir sin tocar el original.
   ========================================================================== */

:root {
	--primary-color   : #0F2D4D;              /* azul marino: textos oscuros y fondos oscuros */
	--accent-color    : #6FBE44;              /* verde hoja: botones, enlaces, destacados */
	--overlay-color   : rgba(15, 45, 77, 0.72); /* overlay azul marino sobre imágenes */
	--gold-color      : #FDB913;              /* dorado: palabras destacadas */
	--orange-color    : #F58634;              /* naranja: iconos de check */
	--navy-dark       : #0A2138;              /* azul marino más profundo */
}

/* --- Desactivar el cursor mágico del template (bolita verde) en todo el sitio --- */
#magic-cursor {
	display: none !important;
}

/* --- Palabras destacadas dentro de títulos → dorado (como el flyer) --- */
.section-title h1 span,
.section-title h2 span,
.hero-content .section-title h1 span {
	color: var(--gold-color);
}

/* --- Iconos de check de las listas → naranja (como el flyer) --- */
.about-content ul li:before {
	color: var(--orange-color);
}

/* --- Título CTA "¿Estás listo para ahorrar?" resaltado en dorado --- */
.cta-content h3 span {
	color: var(--gold-color);
}

/* --- Botones: reforzar verde hoja con texto marino para mejor contraste --- */
.btn-default {
	background: var(--accent-color);
	color: var(--primary-color);
	font-weight: 600;
}
.btn-default:hover {
	color: var(--white-color);
}
.btn-default.btn-border {
	color: var(--white-color);
	border-color: var(--accent-color);
}

/* --- Sección "¿Quieres ahorrar sin invertir?" en azul marino con dorado --- */
.save-without-invest {
	background: var(--primary-color);
	padding: 70px 0;
}
.save-without-invest .section-title h2 {
	color: var(--white-color);
}
.save-without-invest .section-title p {
	color: #d6e0ea;
	max-width: 760px;
	margin: 15px auto 0;
}

/* ==========================================================================
   Tarjetas "Proyectos a tu medida" — header de color (navy) + cuerpo blanco
   ========================================================================== */
/* Igualar alturas por fila */
.our-process .row > .col-lg-4 {
	display: flex;
}
.our-process .pricing-item2 {
	margin-top: 0;
	padding: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 45, 77, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.our-process .pricing-item2:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 42px rgba(15, 45, 77, 0.16);
}
/* Header de color: caja de icono + título forman una sola banda navy */
.our-process .pricing-item2 .package-icon-box {
	width: 100%;
	height: auto;
	background: var(--primary-color);
	border-radius: 0;
	margin: 0;
	top: 0;
	padding: 26px 0 12px;
}
.our-process .pricing-item2 .package-icon-box:before,
.our-process .pricing-item2 .package-icon-box:after {
	display: none;
}
.our-process .pricing-item2 .package-icon-box img {
	width: 58px;
	height: auto;
}
.our-process .pricing-item2 .price-header {
	background: var(--primary-color);
	margin: 0;
	padding: 0 20px 22px;
	border-bottom: 4px solid var(--accent-color); /* acento verde de marca */
}
.our-process .pricing-item2 .price-header h2 {
	color: #fff;
}
/* Cuerpo blanco */
.our-process .pricing-item2 .price-body {
	padding: 28px 26px 22px;
}
.our-process .pricing-item2 .price-body ul li {
	color: var(--primary-color);
	margin-bottom: 16px;
}
.our-process .pricing-item2 .price-body ul li:before {
	color: var(--accent-color);
}
/* Pie de tarjeta: separador + botón de ancho completo */
.our-process .pricing-item2 .price-buy-button {
	margin-top: auto;
	padding: 20px 26px 26px;
	border-top: 1px solid #eef1f4;
}
.our-process .pricing-item2 .price-buy-button .btn-default {
	display: block;
	width: 100%;
	text-align: center;
}

/* ==========================================================================
   Tarjetas de "Nuestros Servicios" (home) — imagen arriba + cuerpo
   ========================================================================== */
/* Igualar alturas por fila (solo columnas de servicio, no el botón col-md-12) */
.our-services .row > .col-lg-4 {
	display: flex;
	margin-bottom: 30px;
}
.our-services .service-item {
	height: 100%;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 45, 77, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.our-services .service-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 42px rgba(15, 45, 77, 0.16);
}
/* Imagen superior a altura fija */
.our-services .service-item .service-image {
	margin: 0;
	position: relative;
	height: 210px;
	overflow: hidden;
}
.our-services .service-item .service-image figure {
	margin: 0;
	height: 100%;
}
.our-services .service-item .service-image figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Anular el overlay oscuro deslizante del template */
.our-services .service-item .service-image:before {
	display: none;
}
/* Cuerpo blanco debajo (no flotante) */
.our-services .service-item .service-content {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	margin: 0;
	padding: 26px 24px 28px;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	flex: 1 1 auto;
}
.our-services .service-item:hover .service-content {
	bottom: auto;
}
/* Círculo con icono */
.our-services .service-icon-circle {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--accent-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 16px;
}
.our-services .service-item .service-content h3 {
	color: var(--primary-color);
	margin-bottom: 10px;
}
.our-services .service-item .service-content p {
	color: var(--text-color);
}

/* ==========================================================================
   Video de instalación (home) — dos columnas + gradiente + play animado
   ========================================================================== */
.intro-video .section-title {
	margin-bottom: 0;
}
.intro-video .intro-video-cta {
	margin-top: 28px;
}
.intro-video .intro-video-box {
	box-shadow: 0 18px 45px rgba(15, 45, 77, 0.18);
}
/* Gradiente navy en lugar del overlay plano (deja ver más la imagen) */
.intro-video .intro-video-box:before {
	background: linear-gradient(180deg, rgba(15, 45, 77, 0.12) 0%, rgba(15, 45, 77, 0.55) 100%);
}
.intro-video .video-image img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}
/* Etiqueta sobre el video */
.intro-video .intro-video-label {
	position: absolute;
	left: 22px;
	bottom: 20px;
	z-index: 2;
	color: #fff;
	font-family: var(--accent-font);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
	background: rgba(15, 45, 77, 0.55);
	padding: 8px 16px;
	border-radius: 30px;
}
@media (max-width: 991px) {
	.intro-video .col-lg-5 {
		margin-bottom: 34px;
	}
	.intro-video .video-image img {
		height: 300px;
	}
}

/* ==========================================================================
   "Por qué elegirnos" — hover elevar + icono en círculo verde
   ========================================================================== */
.why-choose-item {
	box-shadow: 0 10px 30px rgba(15, 45, 77, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-choose-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 42px rgba(15, 45, 77, 0.18);
}
.why-choose-content .why-choose-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.why-choose-content .why-choose-icon img {
	max-height: 32px;
	width: 32px;
	height: 32px;
	filter: brightness(0) invert(1); /* icono en blanco sobre el círculo */
}

/* ==========================================================================
   Contacto — tarjeta partida: info (navy) + formulario (protagonista)
   ========================================================================== */
.contact-section {
	padding: 90px 0 100px;
}
.contact-split {
	display: flex;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 25px 60px rgba(15, 45, 77, 0.15);
	margin-top: 20px;
}
/* Columna de información (navy) */
.contact-split-info {
	flex: 0 0 38%;
	max-width: 38%;
	background: var(--primary-color);
	color: #fff;
	padding: 52px 42px;
}
.contact-split-info h3 {
	color: #fff;
	font-size: 26px;
	margin-bottom: 14px;
}
.contact-split-info > p {
	color: #c9d4de;
	margin-bottom: 36px;
}
.contact-split-list {
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
}
.contact-split-list li {
	display: flex;
	gap: 16px;
	margin-bottom: 26px;
}
.cs-ico {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.cs-text {
	display: flex;
	flex-direction: column;
}
.cs-text strong {
	color: #fff;
	font-size: 16px;
	margin-bottom: 4px;
}
.cs-text span,
.cs-text a {
	color: #c9d4de;
	font-size: 15px;
	line-height: 1.75;
}
.cs-text a:hover {
	color: var(--accent-color);
}
.contact-split-social {
	display: flex;
	gap: 12px;
}
.contact-split-social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}
.contact-split-social a:hover {
	background: var(--accent-color);
}
/* Columna del formulario (protagonista) */
.contact-split-form {
	flex: 1 1 auto;
	padding: 52px 48px;
}
.contact-split-form h3 {
	color: var(--primary-color);
	font-size: 26px;
	margin-bottom: 6px;
}
.contact-split-form .cs-form-sub {
	color: var(--text-color);
	margin-bottom: 28px;
}
.contact-split-form .form-control {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid #e2e7ec;
	border-radius: 10px;
	background: #f7f9fb;
	box-shadow: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-split-form .form-control:focus {
	border-color: var(--accent-color);
	background: #fff;
	outline: none;
}
.contact-split-form textarea.form-control {
	resize: vertical;
	min-height: 130px;
}
.contact-split-form .btn-default {
	width: 100%;
}
@media (max-width: 991px) {
	.contact-split {
		flex-direction: column;
	}
	.contact-split-info,
	.contact-split-form {
		flex: 1 1 100%;
		max-width: 100%;
		padding: 40px 30px;
	}
}

/* --- Filtro de la galería de proyectos alineado a la paleta --- */
.project-filter .filter-btn {
	border-color: var(--accent-color);
	color: var(--accent-color);
}
.project-filter .filter-btn:hover,
.project-filter .filter-btn.active {
	background: var(--accent-color);
	color: var(--primary-color);
}

/* --- Barra superior de contacto del footer sobre marino --- */
.footer-contact {
	background: var(--navy-dark);
}

/* --- Enlaces del footer en hover → dorado --- */
.footer-links ul li a:hover,
.footer-about a:hover {
	color: var(--gold-color);
}

/* ==========================================================================
   Logo APRA en el header
   El header es una tarjeta blanca (arriba y al fijarse), así que se usa
   siempre la versión de texto oscuro.
   ========================================================================== */
.navbar-brand {
	display: inline-block;
	line-height: 0;
}
.navbar-brand img {
	height: 70px;
	width: auto;
}

/* ==========================================================================
   Barra superior de contacto (dentro del header)
   ========================================================================== */
.apra-topbar {
	border-bottom: 1px solid #e8ebee;
	padding: 8px 0;
}
.apra-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.apra-topbar ul {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.apra-topbar-contact a {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.apra-topbar-contact a i {
	color: var(--accent-color);
	font-size: 14px;
}
.apra-topbar-contact a:hover {
	color: var(--accent-color);
}
.apra-topbar-social {
	gap: 16px;
}
.apra-topbar-social a {
	color: var(--accent-color);
	font-size: 15px;
	transition: color 0.25s ease;
}
.apra-topbar-social a:hover {
	color: var(--primary-color);
}

/* Menú y botón Cotizar */
header.main-header .header-sticky {
	padding-top: 12px;
	padding-bottom: 12px;
}
.main-menu .navbar-nav.mx-auto {
	margin-left: auto;
	margin-right: auto;
}
.apra-nav-cta {
	margin-left: 24px;
	padding: 12px 32px;
	flex-shrink: 0;
}

/* Al fijarse el header, ocultar la barra superior para un sticky compacto */
header.main-header .header-sticky.active .apra-topbar {
	display: none;
}

@media (max-width: 991px) {
	.navbar-brand img {
		height: 58px;
	}
	.apra-nav-cta {
		margin-left: 0;
		margin-top: 15px;
		display: inline-block;
	}
}
@media (max-width: 575px) {
	.apra-topbar-contact .topbar-email {
		display: none;
	}
	.apra-topbar ul {
		gap: 16px;
	}
}

/* Logo del footer (sobre fondo azul marino) */
.footer-about figure img {
	max-width: 190px;
	height: auto;
}

@media (max-width: 991px) {
	.navbar-brand img {
		height: 52px;
	}
}
