/*
Theme Name:   Asesórate con Mario
Description:  Tema hijo de Hello Elementor para el sitio de Mario Carmona, Asesor de Salud.
Author:       Asesórate con Mario
Template:     hello-elementor
Version:      1.0.0
Text Domain:  asesorate-con-mario
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[id] { scroll-margin-top: 96px; }

/* ---------- Cabecera fija ---------- */
#site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid rgba(11, 42, 91, .06);
	transition: box-shadow .3s ease, padding .3s ease;
}
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
#site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 42, 91, .10); }
#site-header .site-logo img { max-height: 54px; width: auto; }

#site-header .site-navigation ul.menu li a {
	font-weight: 600;
	font-size: 15px;
	padding: 10px 14px;
	border-radius: 999px;
	transition: color .2s ease, background .2s ease;
}
#site-header .site-navigation ul.menu li a:hover { background: var(--e-global-color-amlight, #EAF4FD); }

/* Botón "Cotiza" del menú: agregar la clase CSS "menu-cta" al elemento del menú */
#site-header .site-navigation ul.menu li.menu-cta > a,
#site-header .site-navigation-dropdown ul.menu li.menu-cta > a {
	background: var(--e-global-color-primary, #1263D6);
	color: #fff !important;
	padding: 10px 22px;
	margin-left: 8px;
	box-shadow: 0 8px 20px rgba(18, 99, 214, .30);
}
#site-header .site-navigation ul.menu li.menu-cta > a:hover {
	background: var(--e-global-color-secondary, #0B2A5B);
}
#site-header .site-navigation-dropdown ul.menu li.menu-cta > a { margin: 10px 16px; display: inline-block; }

/* ---------- Utilidades para usar en Elementor ---------- */

/* Resaltado amarillo tipo plumón: <span class="am-hl">texto</span> */
.am-hl {
	background: linear-gradient(transparent 58%, var(--e-global-color-accent, #FFD23F) 58%, var(--e-global-color-accent, #FFD23F) 92%, transparent 92%);
	padding: 0 .08em;
}
.am-hl-dark { color: var(--e-global-color-accent, #FFD23F); }

/* Tarjetas con elevación al pasar el mouse: clase "am-card" en el contenedor */
.am-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.am-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11, 42, 91, .14) !important; }

/* Pastilla / etiqueta pequeña: clase "am-pill" en un widget de título */
.am-pill .elementor-heading-title {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
}
.am-pill-light .elementor-heading-title {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--e-global-color-amlight, #EAF4FD);
	border: 1px solid rgba(18, 99, 214, .15);
}

/* Número de paso: clase "am-step" en un widget de título */
.am-step .elementor-heading-title {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--e-global-color-primary, #1263D6);
	color: #fff;
	box-shadow: 0 10px 24px rgba(18, 99, 214, .35);
}

/* Decoración de puntos: clase "am-dots" en un contenedor */
.am-dots { position: relative; }
.am-dots::after {
	content: "";
	position: absolute;
	top: 32px;
	right: 32px;
	width: 120px;
	height: 80px;
	background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2px);
	background-size: 20px 20px;
	pointer-events: none;
}

/* Imagen con badge flotante */
.am-photo img { box-shadow: 0 30px 60px rgba(11, 42, 91, .25); }

/* ---------- Formulario (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 .am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .wpcf7 .am-row { grid-template-columns: 1fr; } }
.wpcf7 label { display: block; font-weight: 600; font-size: 14px; color: var(--e-global-color-secondary, #0B2A5B); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 6px;
	padding: 13px 16px;
	border: 1.5px solid #D6E3F3;
	border-radius: 12px;
	background: #F7FAFE;
	font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wpcf7 textarea { height: 130px; min-height: 110px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--e-global-color-primary, #1263D6);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(18, 99, 214, .12);
}
.wpcf7 input[type="submit"] {
	width: 100%;
	padding: 16px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--e-global-color-primary, #1263D6);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(18, 99, 214, .35);
	transition: background .2s ease, transform .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--e-global-color-secondary, #0B2A5B); transform: translateY(-2px); }
.wpcf7 .am-legal { font-size: 12px; color: #64748B; margin: 0; }
.wpcf7 form { position: relative; }
.wpcf7 .wpcf7-spinner { position: absolute; right: 12px; bottom: 58px; margin: 0; }

/* ---------- Botón flotante de WhatsApp ---------- */
.am-wa-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	border-radius: 999px;
	background: #25D366;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	box-shadow: 0 14px 30px rgba(37, 211, 102, .45);
	transition: transform .2s ease, box-shadow .2s ease;
}
.am-wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px rgba(37, 211, 102, .55); }
.am-wa-float svg { width: 28px; height: 28px; flex: 0 0 auto; }
.am-wa-float::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
	animation: am-pulse 2.2s infinite;
}
@keyframes am-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
	.am-wa-float { padding: 14px; right: 16px; bottom: 16px; }
	.am-wa-float span { display: none; }
}

/* ---------- Pie de página ---------- */
#site-footer { padding: 36px 0 26px; }
#site-footer .copyright { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
#site-footer .site-navigation ul.menu li a { padding: 6px 12px; }
#site-footer .site-navigation ul.menu li a:hover { color: var(--e-global-color-accent, #FFD23F); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.am-card, .am-wa-float { transition: none; }
	.am-wa-float::before { animation: none; }
}

/* ---------- Entradas del blog: ancho cómodo de lectura ---------- */
.single-post .site-main { max-width: 820px; padding-top: 40px; padding-bottom: 60px; }
.single-post .site-main img { border-radius: 20px; }
.single-post .entry-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
