/* ----------------------------------
   EMEDOS - ajustes de marca sobre la plantilla Ambrox
   Se carga después de style.css: todo lo de la marca va acá.
------------------------------------- */

/* Variables de marca (mismas que el Portal de Clientes) */
:root {
	--font-default: 'Poppins', sans-serif;
	--emedos-blue-primary: #0d6efd;
	--emedos-blue-dark: #084298;
	--emedos-blue-soft: #3d8bfd;
	--emedos-blue-light: #e7f1ff;
	--emedos-gradient: linear-gradient(135deg, #0d6efd 0%, #084298 100%);
	--whatsapp: #25D366;

	/* Variables de la plantilla mapeadas a la marca */
	--color-primary: var(--emedos-blue-primary);
	--color-secondary: var(--emedos-blue-dark);
	--color-heading: #212529;
	--color-paragraph: #6c757d;
	--dark: #062a63;
	--bg-gray: var(--emedos-blue-light);
	--bg-gradient: var(--emedos-gradient);
}

/* Preloader */
.ambrox-preloader .animation-preloader .txt-loading .letters-loading:before {
	color: var(--emedos-blue-primary);
}

/* Logo en el menú mobile */
.navbar-brand > img.logo,
.navbar-collapse > img {
	max-height: 45px;
	width: auto;
}

/* Barra lateral fija (desktop) */
header.header-fixed .logo a {
	background: var(--emedos-gradient);
}

header.header-fixed .logo img {
	max-height: 50px;
}

/* Botón de WhatsApp en la barra lateral (reemplaza al botón de video) */
header.header-fixed .video .video-play-button.whatsapp {
	background: var(--whatsapp);
	color: var(--white);
	padding-left: 0;
}

header.header-fixed .video .video-play-button.whatsapp:before,
header.header-fixed .video .video-play-button.whatsapp:after {
	background: var(--whatsapp);
}

header.header-fixed .video .video-play-button.whatsapp i {
	color: var(--white);
	font-size: 30px;
}

/* Redes en el banner */
.personal-social li a {
	color: var(--emedos-blue-dark);
}

.personal-social li a:hover {
	color: var(--emedos-blue-primary);
}

/* ---------- Botones de marca ---------- */
.btn.btn-whatsapp {
	background: var(--whatsapp);
	border-color: var(--whatsapp);
	color: var(--white);
}

.btn.btn-whatsapp:hover {
	background: #1ebe5a;
	color: var(--white);
}

.btn.btn-gradient {
	background: var(--emedos-gradient);
	border: none;
	color: var(--white);
}

.btn.btn-gradient:hover {
	color: var(--white);
	filter: brightness(1.1);
}

.btn i {
	margin-right: 6px;
}

/* ---------- Banner ---------- */
.rubro-badge {
	display: inline-block;
	background: var(--emedos-blue-light);
	color: var(--emedos-blue-dark);
	border: 1px solid rgba(13, 110, 253, 0.25);
	border-radius: 50px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 25px;
}

.rubro-badge i {
	color: var(--emedos-blue-primary);
	margin-right: 6px;
}

.banner-style-one h1 {
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 30px;
}

.banner-style-one h1 span {
	background: var(--emedos-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.banner-style-one h3::after {
	background: var(--emedos-blue-light);
	height: 12px;
	opacity: 1;
}

.banner-lead {
	font-size: 17px;
	max-width: 520px;
	margin-top: 30px;
}

.banner-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 35px;
}

.banner-note {
	margin-top: 20px;
	font-size: 14px;
}

.banner-note a {
	color: var(--emedos-blue-primary);
	font-weight: 600;
	text-decoration: underline;
}

.banner-style-one .thumb img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.banner-style-one h1 {
		font-size: 38px;
	}

	.banner-lead {
		margin-left: auto;
		margin-right: auto;
	}

	.banner-buttons {
		justify-content: center;
	}

	.rubro-badge {
		font-size: 13px;
	}
}

/* La plantilla trae btn-gradient violeta en ::after: lo pasamos al azul de marca */
.btn.btn-gradient::after {
	background-image: linear-gradient(to right, #0d6efd, #084298, #0d6efd);
}

/* Textos de botones tal cual se escriben (la plantilla los capitaliza) */
.btn,
.btn.circle {
	text-transform: none;
}

@media (max-width: 767px) {
	.banner-style-one h3 {
		font-size: 22px;
	}
}

/* ---------- Encabezados de sección ---------- */
.section-lead {
	margin-top: 25px;
	font-size: 17px;
}

/* ---------- Servicios ---------- */
.emedos-service {
	background: var(--white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(8, 66, 152, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emedos-service:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(8, 66, 152, 0.15);
}

.emedos-service .thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.emedos-service .info {
	padding: 28px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.emedos-service h4 {
	font-weight: 700;
	margin-bottom: 12px;
}

.emedos-service p {
	margin-bottom: 18px;
}

.emedos-service .service-items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 0 0 24px;
	padding: 18px 0 0;
	list-style: none;
	border-top: 1px solid rgba(13, 110, 253, 0.12);
}

.emedos-service .service-items li {
	position: relative;
	padding-left: 26px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-heading);
}

.emedos-service .service-items li::before {
	content: "\f00c";
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 50%;
	background: var(--emedos-blue-light);
	color: var(--emedos-blue-primary);
	font-size: 9px;
}

.emedos-service .service-link {
	margin-top: auto;
	font-weight: 600;
	color: var(--emedos-blue-primary);
}

.emedos-service .service-link i {
	color: var(--whatsapp);
	margin-right: 5px;
}

.emedos-service .service-link:hover {
	color: var(--emedos-blue-dark);
}

/* Tarjeta CTA del Portal */
.emedos-service-cta {
	background: var(--emedos-gradient);
	color: var(--white);
	justify-content: center;
}

.emedos-service-cta .info {
	justify-content: center;
	padding: 40px 32px;
}

.emedos-service-cta h4,
.emedos-service-cta p {
	color: var(--white);
}

.emedos-service-cta p {
	opacity: 0.9;
}

.emedos-service-cta .cta-icon {
	font-size: 42px;
	margin-bottom: 20px;
	opacity: 0.9;
}

.emedos-service-cta .cta-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 10px;
}

.btn.btn-white {
	background: var(--white);
	color: var(--emedos-blue-dark);
}

.btn.btn-white:hover {
	background: var(--emedos-blue-light);
	color: var(--emedos-blue-dark);
}

.emedos-service-cta .cta-secondary {
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
}

.emedos-service-cta .cta-secondary:hover {
	color: var(--emedos-blue-light);
}

/* ---------- Nosotros ---------- */
.emedos-brand-card {
	background: var(--emedos-gradient);
	border-radius: 24px;
	padding: 60px 45px;
	color: var(--white);
	box-shadow: 0 25px 60px rgba(8, 66, 152, 0.25);
	margin-bottom: 50px;
}

.emedos-brand-card img {
	max-width: 260px;
	width: 100%;
	height: auto;
}

.emedos-brand-card .brand-tagline {
	color: var(--white);
	opacity: 0.85;
	margin: 15px 0 35px;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.emedos-brand-card .brand-data {
	list-style: none;
	padding: 0;
	margin: 0;
}

.emedos-brand-card .brand-data li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-weight: 500;
}

.emedos-brand-card .brand-data i {
	width: 20px;
	text-align: center;
	opacity: 0.9;
}

.emedos-values li {
	border-top-color: rgba(13, 110, 253, 0.12);
}

.emedos-values li i {
	background: var(--emedos-gradient);
	color: var(--white);
	border-radius: 16px;
	font-size: 26px;
	height: 60px;
	width: 60px;
	line-height: 60px;
	flex-shrink: 0;
}

.emedos-values li span {
	font-size: 15px;
	font-weight: 400;
	color: var(--color-paragraph);
}

.emedos-values li h4 {
	font-size: 18px;
}

@media (max-width: 991px) {
	.emedos-brand-card {
		padding: 45px 30px;
		text-align: center;
	}

	.emedos-brand-card .brand-data li {
		justify-content: center;
	}

	.emedos-values li {
		display: flex !important;
		align-items: flex-start;
		text-align: left;
	}

	.emedos-values li .icon {
		margin-bottom: 0;
	}

	.emedos-values li i {
		margin-right: 16px;
		height: 50px;
		width: 50px;
		line-height: 50px;
		font-size: 22px;
	}
}

/* ---------- Portal de Clientes ---------- */
.portal-features > div {
	margin-bottom: 24px;
}

.portal-feature {
	background: var(--white);
	border-radius: 16px;
	padding: 26px;
	height: 100%;
	box-shadow: 0 10px 30px rgba(8, 66, 152, 0.08);
}

.portal-feature i {
	display: inline-block;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
	border-radius: 12px;
	background: var(--emedos-blue-light);
	color: var(--emedos-blue-primary);
	font-size: 20px;
	margin-bottom: 16px;
}

.portal-feature h4 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.portal-feature p {
	margin: 0;
	font-size: 15px;
}

.portal-steps {
	background: var(--emedos-gradient);
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--white);
	border-radius: 24px;
	padding: 45px 40px;
	height: calc(100% - 24px);
	box-shadow: 0 25px 60px rgba(8, 66, 152, 0.25);
}

.portal-steps h3 {
	color: var(--white);
	font-weight: 700;
	margin-bottom: 30px;
}

.portal-steps ol {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
}

.portal-steps li {
	display: flex;
	gap: 18px;
	margin-bottom: 24px;
}

.portal-steps .step-num {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	line-height: 42px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-weight: 700;
	font-size: 18px;
}

.portal-steps h4 {
	color: var(--white);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
}

.portal-steps p {
	color: var(--white);
	opacity: 0.85;
	margin: 0;
	font-size: 15px;
}

.portal-buttons {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.portal-login {
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
}

.portal-login:hover {
	color: var(--emedos-blue-light);
}

.portal-login i {
	margin-right: 6px;
}

@media (max-width: 991px) {
	.portal-steps {
		height: auto;
		margin-top: 10px;
		padding: 40px 28px;
	}
}

@media (max-width: 767px) {
	.portal-features > div {
		margin-bottom: 14px;
	}

	.portal-feature {
		display: grid;
		grid-template-columns: 48px 1fr;
		column-gap: 16px;
		padding: 20px;
	}

	.portal-feature i {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.portal-feature h4 {
		margin-bottom: 4px;
	}

	.portal-feature p {
		font-size: 14px;
	}
}

/* Imagen de portada con fondo transparente: menos padding para que luzca más grande */
.banner-style-one .thumb {
	padding: 20px 0 0;
}

/* ---------- CTA para talleres ---------- */
.emedos-cta {
	background: var(--emedos-gradient);
	border-radius: 24px;
	padding: 55px 50px;
	box-shadow: 0 25px 60px rgba(8, 66, 152, 0.25);
}

.emedos-cta h2 {
	color: var(--white);
	font-weight: 700;
	font-size: 34px;
	line-height: 1.3;
	margin-bottom: 12px;
}

.emedos-cta h2 strong {
	font-weight: 800;
	color: #bcd6ff;
}

.emedos-cta p {
	color: var(--white);
	opacity: 0.85;
	margin: 0;
	font-size: 17px;
}

.emedos-cta .cta-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.emedos-cta .cta-buttons .btn {
	text-align: center;
}

@media (max-width: 991px) {
	.emedos-cta {
		padding: 40px 28px;
		text-align: center;
	}

	.emedos-cta h2 {
		font-size: 26px;
	}

	.emedos-cta .cta-buttons {
		margin-top: 30px;
	}
}

/* ---------- Contacto ---------- */
.contact-content .form-box select.form-control {
	margin-bottom: 15px;
	padding: 15px;
	height: auto;
	color: var(--color-heading);
	border: 1px solid rgba(255, 255, 255, 1);
	background-color: rgba(255, 255, 255, 0.5);
	appearance: auto;
}

.contact-content .form-box button.btn-wa-submit {
	background: var(--whatsapp);
	text-transform: none;
}

.contact-content .form-box button.btn-wa-submit::after {
	background-color: #1ebe5a;
}

.contact-content .form-box button.btn-wa-submit i {
	margin-right: 8px;
	font-size: 20px;
	vertical-align: -2px;
}

.wa-form-error {
	color: #dc3545;
	font-weight: 500;
	margin: 15px 0 0;
}

.contact-info-list .info a {
	color: inherit;
}

.contact-info-list .info a:hover {
	color: var(--emedos-blue-primary);
}

.contact-rubro {
	display: inline-block;
	margin-top: 30px;
	background: var(--emedos-blue-light);
	color: var(--emedos-blue-dark);
	border-radius: 50px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
}

.contact-rubro i {
	color: var(--emedos-blue-primary);
	margin-right: 6px;
}

/* Íconos de contacto todos con el azul de marca (la plantilla alterna colores) */
.contact-content .contact-info-list .icon i,
.contact-content .contact-info-list:nth-child(n) .icon i {
	background: var(--emedos-gradient);
	color: var(--white);
}

@media (max-width: 991px) {
	.contact-content .info .content {
		text-align: center;
	}
}

/* ---------- Página 404 ---------- */
body.emedos-404 {
	background: linear-gradient(180deg, var(--white) 0%, var(--emedos-blue-light) 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.emedos-404 main {
	flex-grow: 1;
}

.emedos-404-header {
	padding: 25px 0;
}

.emedos-404-header img {
	max-height: 45px;
	width: auto;
}

body.emedos-404 .error-box h1 {
	background: var(--emedos-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.emedos-404-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-top: 30px;
}

.emedos-404-portal {
	margin-top: 30px;
	font-size: 15px;
}

.emedos-404-portal a {
	color: var(--emedos-blue-primary);
	font-weight: 600;
	text-decoration: underline;
}
