/* ==========================================================================
   Ofiteca Formación — estilos complementarios al Kit de Elementor.
   La mayor parte del diseño está en los widgets y en Sitio → Ajustes globales;
   aquí solo hay lo que Elementor no permite ajustar desde el panel.
   ========================================================================== */

:root {
	--of-navy: var(--e-global-color-primary, #122330);
	--of-orange: var(--e-global-color-secondary, #EE5519);
	--of-text: var(--e-global-color-text, #4A5058);
	--of-warm: var(--e-global-color-ofwarm, #FFF5EF);
	--of-light: var(--e-global-color-oflight, #F6F8FA);
	--of-border: var(--e-global-color-ofborder, #E9ECEF);
	--of-muted: var(--e-global-color-ofmuted, #6B7280);
	--of-shadow: 0 10px 40px rgba(18, 35, 48, .08);
}

body { -webkit-font-smoothing: antialiased; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor strong { color: var(--of-navy); font-weight: 700; }
.of-grow { flex: 1 1 0% !important; min-width: 0; }

/* ---------- Cabecera ---------- */
.elementor-location-header { position: sticky; top: -40px; z-index: 999; overflow-x: clip; }
.admin-bar .elementor-location-header { top: -8px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 6px; } }
.of-header { transition: box-shadow .25s ease; }
.of-scrolled .of-header { box-shadow: 0 6px 24px rgba(18, 35, 48, .08); }
.of-topbar .elementor-icon-list-text strong { font-weight: 700; }
.of-logo img, .of-foot-logo img { display: block; height: auto; }
.of-logo { flex: 0 0 auto !important; }
.of-nav .elementor-nav-menu--main .sub-menu { border-radius: 12px; overflow: hidden; box-shadow: var(--of-shadow); border: 1px solid var(--of-border); padding: 6px 0; min-width: 270px !important; margin-top: 10px !important; }
@media (max-width: 1024px) {
	.of-header { position: relative; }
	.of-header .e-con-inner, .of-nav, .of-nav > .elementor-widget-container { position: static !important; }
	.of-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute !important; z-index: 9997; left: 0 !important; right: 0 !important; width: auto !important;
		max-width: none !important; top: 100% !important; margin-top: 0 !important; box-shadow: 0 18px 30px -18px rgba(18, 35, 48, .35);
		border-top: 1px solid var(--of-border);
	}
	.of-nav .elementor-nav-menu--dropdown a { border-bottom: 1px solid var(--of-border); }
	.of-nav .elementor-menu-toggle { margin-left: auto; }
}

/* ---------- Botones ---------- */
.elementor-button { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.elementor-button:hover { transform: translateY(-1px); }
.elementor-button .elementor-button-icon svg { width: .9em; }

/* ---------- Hero / collage (Macu) ---------- */
.of-collage img { width: 100%; object-fit: cover; border-radius: 16px; display: block; }
.of-collage-a img { height: 300px; }
.of-collage-b, .of-collage-b .elementor-widget-container { height: 100%; }
.of-collage-b img { height: 100%; min-height: 520px; }
.of-orange-box .elementor-heading-title { font-size: 18px !important; line-height: 1.45 !important; }
.of-orange-text { color: rgba(255, 255, 255, .9); font-size: 13px; line-height: 1.6; }
@media (max-width: 767px) {
	.of-collage-a img { height: 190px; }
	.of-collage-b img { min-height: 360px; }
	.of-orange-box .elementor-heading-title { font-size: 15px !important; }
}

/* ---------- Logos ---------- */
.of-logos-title { color: var(--of-text); font-size: 14px; }
.of-logo-item { flex: 0 1 auto !important; }
.of-logo-item img { max-height: 46px; width: auto !important; max-width: 150px; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: filter .3s, opacity .3s; }
.of-logo-item:hover img { filter: none; opacity: 1; }
@media (max-width: 767px) {
	.of-logos { justify-content: center !important; }
	.of-logo-item img { max-height: 34px; max-width: 110px; }
}

/* ---------- Tarjetas de curso ---------- */
.of-card { transition: transform .3s ease, box-shadow .3s ease; }
.of-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(18, 35, 48, .13) !important; }
.of-card-img { overflow: hidden; }
.of-card-img img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .5s ease; }
.of-card:hover .of-card-img img { transform: scale(1.03); }
.of-card-title .elementor-heading-title { font-size: 17px !important; line-height: 1.45 !important; }
.of-card-title a { color: inherit; }
.of-card-title a:hover { color: var(--of-orange); }

/* ---------- Por qué elegirnos (Macu) ---------- */
.of-why-media { position: relative; }
.of-why-img img { width: 100%; height: 560px; object-fit: cover; border-radius: 20px; display: block; }
.of-float-card { position: absolute !important; right: -30px; bottom: 34px; max-width: 330px; z-index: 2; }
.of-ib-grid > .of-ib { width: calc(50% - 13px); }
.of-why-text p { line-height: 2; }
@media (max-width: 1024px) {
	.of-why-img img { height: 420px; }
	.of-float-card { right: 16px; }
}
@media (max-width: 767px) {
	.of-ib-grid > .of-ib { width: 100%; }
	.of-why-img img { height: 320px; }
	.of-float-card { position: relative !important; right: auto; bottom: auto; margin: -50px 16px 0; max-width: none; }
}

/* ---------- Contadores (Albali) ---------- */
.of-counter .elementor-counter { flex-direction: column; gap: 6px; }
.of-counter .elementor-counter-number-wrapper { justify-content: center; }
.of-counter .elementor-counter-title { text-align: center; }
.of-counters > .of-counter-card { flex: 1 1 0% !important; min-width: 220px; }
.of-small, .of-small p { font-size: 14px; line-height: 1.6; color: var(--of-text); }
.of-counter-card .of-small { text-align: center; }

/* ---------- Imágenes laterales ---------- */
.of-side-img img, .of-about-img img { width: 100%; height: 460px; object-fit: cover; border-radius: 20px; display: block; }
@media (max-width: 767px) { .of-side-img img, .of-about-img img { height: 280px; } }

/* ---------- Preguntas frecuentes (Albali) ---------- */
.of-faq-wrap { max-width: 900px; margin: 0 auto; width: 100%; }
.of-faq .e-n-accordion { display: flex; flex-direction: column; gap: 10px; }
.of-faq .e-n-accordion-item { background: #fff; border: 1px solid var(--of-border); border-radius: 10px; overflow: hidden; }
.of-faq .e-n-accordion-item-title { padding: 16px 20px !important; border: 0 !important; background: transparent !important; justify-content: flex-start !important; }
.of-faq .e-n-accordion-item-title-text { font-family: var(--e-global-typography-primary-font-family), sans-serif; font-size: 15px !important; font-weight: 600 !important; color: var(--of-navy) !important; line-height: 1.45; }
.of-faq .e-n-accordion-item-title-icon { color: var(--of-orange) !important; fill: var(--of-orange) !important; }
.of-faq .e-n-accordion-item-title-icon svg { fill: var(--of-orange); width: 12px; height: 12px; }
.of-faq .e-n-accordion-item > .e-con { padding: 0 20px 18px 44px !important; border: 0 !important; background: transparent !important; }
.of-faq .e-n-accordion-item > .e-con ul { margin: 0; padding-left: 18px; }
.of-faq .e-n-accordion-item > .e-con li { margin-bottom: 6px; }
.of-faq .e-n-accordion-item[open] { border-color: rgba(238, 85, 25, .35); }
.of-faq-white .of-faq .e-n-accordion-item { box-shadow: 0 2px 10px rgba(18, 35, 48, .04); }

/* ---------- Banda de contacto (Albali) ---------- */
.of-cta-small { color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; }
.of-cta-title .elementor-heading-title { color: #fff !important; font-size: 30px !important; line-height: 1.35 !important; }
@media (max-width: 767px) { .of-cta-title .elementor-heading-title { font-size: 22px !important; } }

/* ---------- Formularios ---------- */
.of-form-title .elementor-heading-title { font-size: 22px !important; }
.of-form .elementor-field-group { margin-bottom: 14px; }
.of-form .elementor-field-textual, .of-form select.elementor-field { min-height: 48px; }
.of-form textarea.elementor-field-textual { min-height: 110px; }
.of-form .elementor-field::placeholder { color: #9AA1A9; opacity: 1; }
.of-form .elementor-select-wrapper select { color: var(--of-navy); }
.of-form .elementor-field-type-acceptance .elementor-field-subgroup label { font-size: 13px; font-weight: 600; color: var(--of-navy); }
.of-form .elementor-field-type-acceptance a { color: var(--of-orange); }
.of-form input[type="checkbox"] { accent-color: var(--of-orange); }
.of-form .elementor-message { font-size: 14px; }
.of-form .elementor-button[type="submit"] { border-radius: 30px; }
.of-note, .of-note p { font-size: 12px; color: var(--of-muted); }
.of-form-card { box-shadow: 10px 0 60px rgba(139, 139, 139, .1); }
.of-big-phone .elementor-heading-title { font-size: 34px; font-weight: 600; color: var(--of-orange); line-height: 1.2; }
.of-big-phone a { color: var(--of-orange); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.of-contact-ib .elementor-icon-box-title { margin-top: 8px; }
.oft-turnstile { width: 100%; margin: 4px 0 14px; }

/* ---------- WhatsApp flotante (como Macu y Kualifica) ---------- */
.oft-whatsapp {
	position: fixed; right: 22px; bottom: 22px; z-index: 9998; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.oft-whatsapp:hover { transform: scale(1.07); }
.oft-whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Páginas interiores (Albali) ---------- */
.of-crumbs p { font-size: 13px; color: var(--of-muted); margin: 0; }
.of-crumbs a { color: var(--of-navy); font-weight: 600; }
.of-crumbs a:hover { color: var(--of-orange); }
.of-crumbs i { font-style: normal; color: var(--of-orange); margin: 0 4px; }
.of-page-title .elementor-heading-title { font-size: 44px; }
.of-page-lead p { max-width: 760px; font-size: 17px; }
@media (max-width: 767px) { .of-page-title .elementor-heading-title { font-size: 32px; } }

/* ---------- Ficha de curso (Macu + Kualifica) ---------- */
.of-badge .elementor-heading-title { display: inline-block; background: var(--of-orange); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 8px 14px; border-radius: 30px; }
.of-course-h1 .elementor-heading-title { font-size: 34px; line-height: 1.3; }
@media (max-width: 767px) { .of-course-h1 .elementor-heading-title { font-size: 27px; } }
.of-h2-sm .elementor-heading-title { font-size: 24px; margin-top: 18px; }
.of-situation .of-sit-head .elementor-icon-box-title { margin: 0; }
.of-sit-title .elementor-heading-title { font-size: 15px; }
.of-sit-item { border-top: 1px solid var(--of-border); }
.of-notice { border: 1px solid #C9CED4; border-radius: 10px; padding: 16px 18px; background: #fff; }
.of-notice .elementor-icon { color: #E3A008 !important; fill: #E3A008 !important; }
.of-steps ol { margin: 0; padding-left: 20px; }
.of-steps li { margin-bottom: 10px; padding-left: 4px; }
.of-steps li::marker { color: var(--of-orange); font-weight: 700; }
.of-steps strong { font-weight: 600; }
.of-detail-ib .elementor-icon-box-title { margin: 0; color: var(--of-muted) !important; font-weight: 600 !important; }
.of-detail-value .elementor-heading-title { font-size: 22px; font-weight: 700; color: var(--of-navy); }
.of-side-card { position: sticky; top: 120px; }
.of-side-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.of-side-card-title .elementor-heading-title { font-size: 16px !important; line-height: 1.45 !important; }
.of-side-card-sub .elementor-heading-title { font-size: 16px; font-weight: 600; color: var(--of-navy); padding-top: 12px; border-top: 1px solid var(--of-border); }
@media (max-width: 1024px) { .of-side-card { position: static; } }

/* ---------- Valores (Sobre nosotros) ---------- */
.of-values .elementor-icon-box-description { max-width: 330px; margin: 0 auto; }
.of-strong-navy p, .of-strong-navy strong { color: var(--of-navy); font-size: 17px; }

/* ---------- Pie (Macu) ---------- */
.of-foot-title .elementor-heading-title { font-size: 20px; font-weight: 600; }
.of-foot-sub .elementor-heading-title { font-size: 16px; font-weight: 600; }
.of-foot-text, .of-foot-text p { color: #C3CCD5; font-size: 15px; }
.of-bottom, .of-bottom p, .of-bottom a { color: #fff; font-size: 13px; margin: 0; }
.of-bottom a:hover { text-decoration: underline; }
.of-legal-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .of-legal-links { justify-content: flex-start; gap: 14px; } .of-bottom { text-align: left; } }

/* ---------- Textos legales ---------- */
.of-legal { max-width: 860px; }
.of-legal h2 { font-size: 22px; margin: 36px 0 10px; }
.of-legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1em; }
.of-legal th, .of-legal td { border: 1px solid var(--of-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.of-legal th { background: var(--of-light); color: var(--of-navy); width: 30%; }

/* ---------- Ajustes tras prueba ---------- */
.of-card-img a, .of-logo a, .of-foot-logo a { display: block; }
.of-faq .e-n-accordion {
	--n-accordion-icon-normal-color: #EE5519; --n-accordion-icon-hover-color: #EE5519; --n-accordion-icon-active-color: #EE5519;
	--n-accordion-title-normal-color: #122330; --n-accordion-title-hover-color: #EE5519; --n-accordion-title-active-color: #EE5519;
}
.of-cta-media { align-self: stretch; }
.of-cta-media .elementor-widget-image, .of-cta-media .elementor-widget-container { height: 100%; }
.of-cta-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center top; display: block; border-radius: 0 !important; }
@media (max-width: 767px) { .of-cta-img img { min-height: 200px; max-height: 240px; } }
