/* =========================================================
   BEC Mejoras — estilos (hereda paleta y tipografías del sitio)
   ========================================================= */
:root {
	--bec-navy: var(--e-global-color-primary, #003356);
	--bec-navy-2: #0b3f66;
	--bec-navy-3: #0f4c7a;
	--bec-red: var(--e-global-color-secondary, #b7170f);
	--bec-red-soft: #f0857b;
	--bec-text: var(--e-global-color-text, #5a5a5a);
	--bec-blue: var(--e-global-color-accent, #0071bc);
	--bec-wa: #25d366;
	--bec-wa-dark: #157f4b;
	--bec-line: #e5e9ee;
	--bec-soft: #f5f7f9;
	--bec-gold: #fbbc04;
	--bec-serif: "Liberation Serif Normal", "Liberation Serif", Georgia, "Times New Roman", serif;
	--bec-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bec-btn-font: "Poppins", var(--bec-sans);
	--bec-radius: 4px;
	--bec-shadow: 0 10px 30px rgba(0, 35, 60, .10);
	--bec-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Encabezado de sección ---------- */
.bec-section-head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.bec-section-head__title { font-family: var(--bec-serif); color: var(--bec-navy); font-weight: 400; margin: 0; line-height: 1.2; font-size: clamp(30px, 4vw, 44px); }
.bec-section-head__divider { display: block; width: 50px; height: 5px; background: var(--bec-red); margin: 22px auto 0; }
.bec-section-head__sub { margin: 18px 0 0; color: var(--bec-text); font-size: 16px; line-height: 1.6; }

/* ---------- Botones ---------- */
.bec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 3px; font-family: var(--bec-btn-font); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--bec-ease), box-shadow .2s; }
.bec-btn svg { width: 20px; height: 20px; flex: none; }
.bec-btn:hover { transform: translateY(-2px); }
.bec-btn--wa { background: var(--bec-wa-dark); color: #fff !important; }
.bec-btn--wa:hover { background: #0f6b3e; box-shadow: 0 8px 18px rgba(21, 127, 75, .28); }
.bec-btn--primary { background: var(--bec-blue); color: #fff !important; }
.bec-btn--primary:hover { background: var(--bec-navy); }
.bec-btn--ghost { background: transparent; color: var(--bec-navy) !important; border-color: var(--bec-navy); }
.bec-btn--ghost:hover { background: var(--bec-navy); color: #fff !important; }
.bec-btn:focus-visible,
.bec-curso-card__btn:focus-visible,
.bec-curso-panel__cerrar:focus-visible,
.bec-resenas__nav:focus-visible,
.bec-resena__mas:focus-visible,
.bec-cursos__libres:focus-visible,
.bec-logos__link:focus-visible,
.bec-wa-float:focus-visible,
.bec-faq__q:focus-visible { outline: 3px solid var(--bec-blue); outline-offset: 3px; }

/* =========================================================
   Cursos desplegables
   ========================================================= */
.bec-cursos { width: 100%; }
.bec-cursos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }

.bec-curso-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 46px 46px 40px; background: var(--bec-navy); color: #fff; transition: background-color .25s; }
.bec-curso-card--alt { background: var(--bec-navy-2); }
.bec-curso-card:hover { background: var(--bec-navy-3); }
.bec-curso-card.is-open { background: var(--bec-navy-3); }
.bec-curso-card.is-open::after { content: ""; position: absolute; left: 46px; bottom: -11px; width: 22px; height: 22px; background: #fff; transform: rotate(45deg); z-index: 2; box-shadow: -4px -4px 8px rgba(0, 0, 0, .04); }
.bec-curso-card__edad { font-family: var(--bec-sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.bec-curso-card__titulo { margin: 10px 0 auto; padding: 0 0 32px; font-family: var(--bec-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; color: #fff; }
.bec-curso-card__btn { all: unset; cursor: pointer; color: #fff; font: inherit; line-height: inherit; }
.bec-curso-card__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bec-curso-card__mas { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bec-btn-font); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bec-red-soft); }
.bec-curso-card__mas-ico { position: relative; width: 14px; height: 14px; }
.bec-curso-card__mas-ico::before,
.bec-curso-card__mas-ico::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .3s var(--bec-ease); }
.bec-curso-card__mas-ico::after { transform: rotate(90deg); }
.bec-curso-card.is-open .bec-curso-card__mas-ico::after { transform: rotate(0deg); }
.bec-curso-card:hover .bec-curso-card__mas { color: #fff; }

.bec-curso-panel { grid-column: 1 / -1; position: relative; background: #fff; box-shadow: var(--bec-shadow); border-bottom: 4px solid var(--bec-red); }
.bec-curso-panel:not([hidden]) { animation: bec-panel-in .45s var(--bec-ease) both; }
.bec-curso-panel__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; padding: 44px; align-items: start; }
.bec-curso-panel__foto { margin: 0; border-radius: var(--bec-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bec-soft); }
.bec-curso-panel__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bec-curso-panel__titulo { margin: 0 0 12px; font-family: var(--bec-serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; color: var(--bec-navy); }
.bec-curso-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.bec-curso-panel__chips li { margin: 0; padding: 6px 12px; border-radius: 99px; background: #eaf2f9; color: var(--bec-navy); font-size: 13px; font-weight: 600; }
.bec-curso-panel__desc { margin: 0 0 22px; color: var(--bec-text); font-size: 15px; line-height: 1.7; }
.bec-curso-panel__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.bec-curso-panel__items li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--bec-navy); font-size: 14px; font-weight: 500; line-height: 1.45; }
.bec-curso-panel__items svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #fbe9e7; color: var(--bec-red); }
.bec-curso-panel__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bec-curso-panel__cerrar { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bec-soft); color: var(--bec-navy); cursor: pointer; transition: background-color .2s, transform .2s; }
.bec-curso-panel__cerrar:hover { background: #e3e8ee; transform: rotate(90deg); }
.bec-curso-panel__cerrar svg { width: 20px; height: 20px; }

.bec-cursos__libres { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 28px 36px; background: var(--bec-soft); border-left: 6px solid var(--bec-red); color: var(--bec-navy); text-decoration: none !important; transition: background-color .2s, transform .2s var(--bec-ease), box-shadow .2s; }
.bec-cursos__libres:hover { background: #fff; box-shadow: var(--bec-shadow); transform: translateY(-2px); }
.bec-cursos__libres-txt { display: flex; flex-direction: column; gap: 4px; }
.bec-cursos__libres-eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--bec-text); }
.bec-cursos__libres-title { font-family: var(--bec-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--bec-navy); }
.bec-cursos__libres-sub { font-size: 15px; color: var(--bec-text); }
.bec-cursos__libres-arrow { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--bec-red); color: #fff; transition: transform .25s var(--bec-ease); }
.bec-cursos__libres-arrow svg { width: 24px; height: 24px; }
.bec-cursos__libres:hover .bec-cursos__libres-arrow { transform: translateX(4px); }

@keyframes bec-panel-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Reseñas de Google
   ========================================================= */
.bec-resenas { width: 100%; }
.bec-resenas__resumen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0 0 32px; }
.bec-resenas__g svg { width: 30px; height: 30px; display: block; }
.bec-resenas__nota { font-family: var(--bec-sans); font-size: 30px; font-weight: 700; color: var(--bec-navy); line-height: 1; }
.bec-stars { display: inline-flex; gap: 2px; color: var(--bec-gold); line-height: 0; }
.bec-stars svg { width: 22px; height: 22px; }
.bec-stars--sm svg { width: 17px; height: 17px; }
.bec-resenas__total { color: var(--bec-navy) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.bec-resenas__carousel { position: relative; }
.bec-resenas__track { --bec-gap: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--bec-gap)) / 3); gap: var(--bec-gap); margin: 0; padding: 6px 4px 24px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.bec-resenas__track::-webkit-scrollbar { display: none; }
.bec-resenas__track:focus-visible { outline: 3px solid var(--bec-blue); outline-offset: 2px; }
.bec-resena { margin: 0; scroll-snap-align: start; display: flex; }
.bec-resena__card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 26px; background: #fff; border: 1px solid var(--bec-line); border-radius: var(--bec-radius); box-shadow: 0 4px 14px rgba(0, 35, 60, .06); text-align: left; }
.bec-resena__head { display: flex; align-items: center; gap: 12px; }
.bec-resena__avatar { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bec-avatar, var(--bec-navy)); color: #fff; font-family: var(--bec-sans); font-weight: 700; font-size: 18px; }
.bec-resena__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bec-resena__autor { color: var(--bec-navy); font-size: 15px; line-height: 1.3; }
.bec-resena__fecha { color: #7a7a7a; font-size: 13px; }
.bec-resena__g { flex: none; line-height: 0; opacity: .9; }
.bec-resena__g svg { width: 22px; height: 22px; }
.bec-resena__texto { position: relative; max-height: 9.9em; overflow: hidden; color: var(--bec-text); font-size: 15px; line-height: 1.65; transition: max-height .35s var(--bec-ease); }
.bec-resena__texto p { margin: 0 0 .6em; }
.bec-resena__texto.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.bec-resena__texto.is-open { max-height: 80em; }
.bec-resena__texto.is-open::after { display: none; }
.bec-resena__mas { align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; color: var(--bec-blue); font-family: var(--bec-sans); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bec-resenas__nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--bec-line); border-radius: 50%; background: #fff; color: var(--bec-navy); box-shadow: var(--bec-shadow); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.bec-resenas__nav svg { width: 22px; height: 22px; }
.bec-resenas__nav:hover { background: var(--bec-navy); color: #fff; }
.bec-resenas__nav:disabled { opacity: .35; cursor: default; background: #fff; color: var(--bec-navy); }
.bec-resenas__nav--prev { left: -22px; }
.bec-resenas__nav--next { right: -22px; }
.bec-resenas__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* =========================================================
   Logos institucionales
   ========================================================= */
.bec-logos { width: 100%; }
.bec-logos__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.bec-logos__item { margin: 0; flex: 1 1 320px; max-width: 460px; display: flex; }
.bec-logos__link { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; padding: 32px 30px 28px; background: #fff; border: 1px solid var(--bec-line); border-radius: var(--bec-radius); text-align: center; text-decoration: none !important; transition: transform .25s var(--bec-ease), box-shadow .25s; }
.bec-logos__link:hover { transform: translateY(-4px); box-shadow: var(--bec-shadow); }
.bec-logos__img { height: 92px; display: flex; align-items: center; justify-content: center; }
.bec-logos__img img { max-height: 92px; max-width: 260px; width: auto; height: auto; display: block; }
.bec-logos__caption { color: var(--bec-text); font-size: 14px; line-height: 1.55; }
.bec-logos__caption strong { display: block; margin-bottom: 4px; color: var(--bec-navy); font-size: 16px; }
.bec-logos__sello { display: inline-flex; flex-direction: column; align-items: center; padding: 10px 22px; border-top: 3px solid var(--bec-red); border-bottom: 3px solid var(--bec-red); color: var(--bec-navy); line-height: 1.1; }
.bec-logos__sello-top,
.bec-logos__sello-bottom { font-family: var(--bec-sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bec-logos__sello-main { font-family: var(--bec-serif); font-size: 34px; margin: 4px 0; }

/* =========================================================
   Preguntas frecuentes
   ========================================================= */
.bec-faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--bec-line); }
.bec-faq__item { border-bottom: 1px solid var(--bec-line); }
.bec-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--bec-serif); font-size: 21px; line-height: 1.3; color: var(--bec-navy); }
.bec-faq__q::-webkit-details-marker { display: none; }
.bec-faq__ico { position: relative; flex: none; width: 16px; height: 16px; color: var(--bec-red); }
.bec-faq__ico::before,
.bec-faq__ico::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .3s var(--bec-ease); }
.bec-faq__ico::after { transform: rotate(90deg); }
.bec-faq__item[open] .bec-faq__ico::after { transform: rotate(0); }
.bec-faq__a { padding: 0 4px 22px; color: var(--bec-text); font-size: 15px; line-height: 1.7; }
.bec-faq__a p { margin: 0; }
.bec-faq__item[open] .bec-faq__a { animation: bec-panel-in .35s var(--bec-ease) both; }

/* =========================================================
   Instituto: Misión / Visión / Valores (clases en Elementor)
   ========================================================= */
.bec-mvv-card > .elementor-widget-wrap,
.bec-mvv-card > .elementor-column-wrap > .elementor-widget-wrap { height: 100%; background: #fff; border: 1px solid var(--bec-line); border-top: 4px solid var(--bec-red); border-radius: var(--bec-radius); box-shadow: 0 4px 14px rgba(0, 35, 60, .06); transition: transform .3s var(--bec-ease), box-shadow .3s; }
.bec-mvv-card:hover > .elementor-widget-wrap,
.bec-mvv-card:hover > .elementor-column-wrap > .elementor-widget-wrap { transform: translateY(-6px); box-shadow: var(--bec-shadow); }
.bec-mvv-list ul { margin: 0; padding: 0; list-style: none; }
.bec-mvv-list li { position: relative; margin: 0 0 10px; padding-left: 28px; color: var(--bec-text); line-height: 1.5; }
.bec-mvv-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #fbe9e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23b7170f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bec-steps .elementor-icon-box-icon .elementor-icon { transition: transform .3s var(--bec-ease); }
.bec-steps:hover .elementor-icon-box-icon .elementor-icon { transform: scale(1.08); }

/* =========================================================
   Botón flotante de WhatsApp
   ========================================================= */
.bec-wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 9990; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--bec-wa); color: #fff !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); text-decoration: none !important; transition: transform .25s var(--bec-ease), box-shadow .25s; }
.bec-wa-float svg { width: 34px; height: 34px; }
.bec-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bec-wa); z-index: -1; animation: bec-wa-pulse 2.6s ease-out 1.5s 3; }
.bec-wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.bec-wa-float__label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 8px 14px; border-radius: 6px; background: #fff; color: var(--bec-navy); font-family: var(--bec-sans); font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--bec-ease); }
.bec-wa-float:hover .bec-wa-float__label,
.bec-wa-float:focus-visible .bec-wa-float__label { opacity: 1; transform: translate(0, -50%); }
@keyframes bec-wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.bec-cursos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bec-curso-card { padding: 34px 30px 30px; min-height: 220px; }
	.bec-curso-card.is-open::after { left: 30px; }
	.bec-curso-panel__inner { gap: 30px; padding: 34px 30px; }
	.bec-resenas__track { grid-auto-columns: calc((100% - var(--bec-gap)) / 2); }
	.bec-resenas__nav--prev { left: -8px; }
	.bec-resenas__nav--next { right: -8px; }
}
@media (max-width: 767px) {
	.bec-cursos__grid { grid-template-columns: minmax(0, 1fr); }
	.bec-curso-card { min-height: 0; padding: 26px 24px; }
	.bec-curso-card__titulo { padding-bottom: 18px; }
	.bec-curso-card.is-open::after { left: 24px; }
	.bec-curso-panel__inner { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 20px 26px; }
	.bec-curso-panel__items { grid-template-columns: minmax(0, 1fr); }
	.bec-curso-panel__ctas .bec-btn { width: 100%; }
	.bec-curso-panel__cerrar { top: 10px; right: 10px; background: rgba(255, 255, 255, .92); }
	.bec-cursos__libres { padding: 22px 20px; }
	.bec-cursos__libres-arrow { width: 44px; height: 44px; }
	.bec-resenas__track { --bec-gap: 14px; grid-auto-columns: 86%; padding-left: 2px; padding-right: 2px; }
	.bec-resenas__nav { display: none; }
	.bec-resena__card { padding: 22px 20px; }
	.bec-resenas__ctas .bec-btn { width: 100%; }
	.bec-logos__link { padding: 26px 20px 22px; }
	.bec-logos__img, .bec-logos__img img { max-height: 76px; height: 76px; }
	.bec-faq__q { font-size: 19px; padding: 18px 2px; }
	.bec-wa-float { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
	.bec-wa-float svg { width: 31px; height: 31px; }
	.bec-wa-float__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bec-curso-panel:not([hidden]), .bec-faq__item[open] .bec-faq__a { animation: none; }
	.bec-wa-float::before { animation: none; }
	.bec-btn, .bec-logos__link, .bec-cursos__libres, .bec-resena__texto { transition: none; }
	.bec-resenas__track { scroll-behavior: auto; }
}

/* ---------- Refuerzo de especificidad frente a estilos del tema ---------- */
.bec-cursos .bec-curso-panel .bec-curso-panel__titulo { margin: 0 0 12px; }
.bec-cursos .bec-curso-panel p.bec-curso-panel__desc { margin: 0 0 22px; }
.bec-cursos .bec-curso-panel ul.bec-curso-panel__chips,
.bec-cursos .bec-curso-panel ul.bec-curso-panel__items { margin-left: 0; padding-left: 0; }
.bec-cursos .bec-curso-panel figure.bec-curso-panel__foto { margin: 0; }
.bec-cursos .bec-curso-panel .bec-curso-panel__foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bec-cursos button,
.bec-resenas button { text-transform: none; letter-spacing: normal; font-family: var(--bec-sans); box-shadow: none; }
.bec-cursos .bec-curso-card .bec-curso-card__btn { font-family: inherit; }
.bec-resenas .bec-resenas__nav { box-shadow: var(--bec-shadow); }
.bec-resenas .bec-resena__texto p:last-child,
.bec-faq .bec-faq__a p { margin-bottom: 0; }
.bec-logos ul.bec-logos__list,
.bec-resenas ul.bec-resenas__track { margin-left: 0; }
