/* ============================================================================
   Grupo ADF · Estilo común de la web (25/09/2026, Capta)
   Misma línea que la portada: azul marino + azul ADF + dorado, tarjetas
   redondeadas y con aire, iconos de línea (sin emoticonos). Se carga desde
   ADF_Home.master. Para volver al diseño anterior: quitar la línea de este
   archivo en ADF_Home.master.
   ========================================================================== */
:root { --adf-navy: #0D1B2A; --adf-blue: #1A8CC4; --adf-blue-d: #0F6A9C; --adf-gold: #F2B23E; --adf-bg: #f0f4f8; --adf-tint: #EEF6FB; --adf-ink: #1a1a2e; }

/* ---------- Cabecera de las páginas (hero) ---------- */
.main .hero { margin: 12px 12px 0; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 88% 12%, rgba(242,178,62,.33), transparent 42%), radial-gradient(circle at 8% 110%, rgba(26,140,196,.45), transparent 45%), linear-gradient(135deg, #0D1B2A, #12466b 62%, #1A8CC4) !important; box-shadow: 0 14px 34px rgba(13,27,42,.2); }
.main .hero::before, .main .hero::after { display: none !important; }
.main .hero .container { padding-top: clamp(26px, 4vw, 52px) !important; padding-bottom: clamp(26px, 4vw, 52px) !important; }
.main .hero .hero-title { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: -.01em; line-height: 1.1; margin: 0 0 10px; }
.main .hero .hero-subtitle, .main .hero .hero-description { color: rgba(255,255,255,.9); font-size: clamp(.98rem, 1.5vw, 1.15rem); line-height: 1.5; max-width: 620px; margin: 0; }
.main .hero .hero-image, .main .hero picture, .main .hero .container > img { display: none !important; }

/* ---------- Barra de navegación de cursos (subnav) ---------- */
.subnav { display: block !important; background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 14px 12px 0; position: relative; z-index: 40; }
.subnav .first, .subnav .last { display: none; }
.subnav .center { max-width: 1320px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(13,27,42,.08); padding: 6px 8px 6px 18px; gap: 10px; }
.subnav .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: #7a8794; white-space: nowrap; margin: 0; padding: 0; background: none; }
.subnav .breadcrumb a { color: #7a8794; font-weight: 600; }
.subnav .breadcrumb a:hover { color: var(--adf-blue); }
.subnav .breadcrumb > span:not(:first-child), .subnav .breadcrumb a + span { color: var(--adf-navy); font-weight: 700; }
.subnav .menu { gap: 4px; align-items: center; }
.subnav .navigation-item { padding: .7rem 1.1rem !important; border-radius: 12px; color: var(--adf-ink) !important; background: transparent; transition: background .2s, color .2s; }
.subnav .navigation-item::after { display: none !important; }
.subnav .navigation-item:hover, .subnav .menu-item:focus-within > .navigation-item { background: var(--adf-tint) !important; color: var(--adf-blue-d) !important; }
.subnav .navigation-item.cnav-on { background: var(--adf-blue) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(26,140,196,.28); }
.subnav .navigation-item.cnav-on .btn-dropdown svg, .subnav .navigation-item.cnav-on svg { stroke: #fff !important; }
.subnav .navigation-item .navigation-item-text { font-size: .95rem; font-weight: 700; gap: .45rem; justify-content: flex-start; white-space: nowrap; }
.subnav .menu > .menu-item { flex: 0 0 auto; }
@media (min-width: 962px) { .subnav .menu { width: auto; margin-left: auto; } }
.subnav .navigation-item .cnav-i { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.subnav .menu-window { top: calc(100% + 10px) !important; left: 50% !important; right: auto !important; transform: translateX(-50%); min-width: 280px !important; border: 0 !important; border-radius: 18px !important; box-shadow: 0 20px 48px rgba(13,27,42,.2) !important; padding: 8px !important; background: #fff !important; animation: cnavIn .18s ease; }
.subnav .menu-window::before, .subnav .menu-window::after { display: none !important; }
@keyframes cnavIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.subnav .dropdown-menu { display: flex; flex-direction: column; gap: 2px; }
.subnav .menu-window-card { display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; border-radius: 12px; color: var(--adf-ink) !important; text-decoration: none; background: transparent !important; border: 0 !important; transition: background .15s; }
.subnav .menu-window-card:hover, .subnav .menu-window-card.cnav-on { background: var(--adf-tint) !important; }
.subnav .menu-window-card .icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--adf-tint); color: var(--adf-blue); display: flex; align-items: center; justify-content: center; }
.subnav .menu-window-card:hover .icon, .subnav .menu-window-card.cnav-on .icon { background: var(--adf-blue); color: #fff; }
.subnav .menu-window-card .icon svg { width: 18px; height: 18px; stroke: currentColor !important; }
.subnav .menu-window-card .text { font-weight: 700; font-size: .95rem; text-transform: none !important; color: inherit !important; }
.subnav .menu-window-card .cnav-sub { display: block; font-size: .76rem; font-weight: 500; color: #7a8794; }

/* móvil: fila de chips deslizable */
.cnav-m { display: none; }
@media (max-width: 961px) {
  .subnav { margin: 10px 0 0; }
  .subnav .center { background: transparent; box-shadow: none; padding: 0; align-items: stretch; }
  .subnav .breadcrumb { display: none; }
  .cnav-m { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .cnav-m::-webkit-scrollbar { display: none; }
  .cnav-m a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; border-radius: 99px; background: #fff; color: var(--adf-ink); font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 2px 10px rgba(13,27,42,.08); scroll-snap-align: start; white-space: nowrap; }
  .cnav-m a svg { width: 16px; height: 16px; stroke: var(--adf-blue); }
  .cnav-m a.cnav-on { background: var(--adf-blue); color: #fff; }
  .cnav-m a.cnav-on svg { stroke: #fff; }
  .cnav-m .cnav-sep { flex: 0 0 1px; background: #d3dce5; margin: 8px 2px; }
}

/* ---------- Bloque de presentación (3 tarjetas) ---------- */
.features-section { background: var(--adf-bg) !important; padding: 30px 16px 32px !important; margin: 0 !important; }
.features-section h1 { color: var(--adf-navy) !important; font-weight: 800 !important; font-size: clamp(1.25rem, 2.4vw, 1.9rem) !important; line-height: 1.2 !important; text-align: center; max-width: 900px; margin: 0 auto 20px !important; }
.features-section .cards-container { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px !important; max-width: 1180px; margin: 0 auto !important; padding: 0 !important; }
.features-section .card { height: auto !important; min-height: 0 !important; padding: 20px 20px 18px !important; border-radius: 16px !important; border: 0 !important; border-top: 4px solid var(--adf-blue) !important; box-shadow: 0 2px 12px rgba(13,27,42,.06) !important; background: #fff !important; text-align: left !important; transition: transform .2s, box-shadow .2s; }
.features-section .card:nth-child(2) { border-top-color: var(--adf-gold) !important; }
.features-section .card:nth-child(3) { border-top-color: #1F8A5B !important; }
.features-section .card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(13,27,42,.1) !important; }
.features-section .card-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; margin: 0 0 12px !important; background: linear-gradient(135deg, #e8f4f8, #d5e8f0) !important; display: flex !important; align-items: center; justify-content: center; }
.features-section .card h2 { font-size: 1.02rem !important; font-weight: 800 !important; color: var(--adf-ink) !important; margin: 0 0 8px !important; line-height: 1.25 !important; }
.features-section .card p { font-size: .9rem !important; color: #556 !important; line-height: 1.55 !important; margin: 0 !important; }
.features-section .card p a { color: var(--adf-blue); font-weight: 700; }
@media (max-width: 860px) {
  .features-section { padding: 22px 0 16px !important; }
  .features-section h1 { padding: 0 16px; margin-bottom: 14px !important; }
  .features-section .cards-container { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; padding: 4px 16px 14px !important; scrollbar-width: none; }
  .features-section .cards-container::-webkit-scrollbar { display: none; }
  .features-section .card { flex: 0 0 84% !important; width: 84% !important; max-width: none !important; margin: 0 !important; scroll-snap-align: center; }
  .features-section .card:hover { transform: none; }
  .features-section .card p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Listados de cursos ---------- */
.section.courses .wrapper, .section.courses .sidebar, .section.courses .close-sidebar, .section.courses .resize-handle, .section.courses .filter-sort-header { display: none !important; }
.section.courses .information-container { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; }
.resultados { color: var(--adf-navy) !important; font-weight: 800 !important; font-size: clamp(1.1rem, 2vw, 1.4rem) !important; text-align: left !important; margin: 6px 2px 16px !important; }
.resultados span { color: var(--adf-blue); }
.paginacion { display: flex !important; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 26px 0 10px !important; }
.paginacion .btn-pag, .paginacion .btn-nav { min-width: 44px; height: 44px; padding: 0 12px !important; border-radius: 12px !important; border: 0 !important; background: #fff !important; color: var(--adf-navy) !important; font-weight: 800 !important; font-size: 15px !important; box-shadow: 0 2px 10px rgba(13,27,42,.08) !important; display: inline-flex !important; align-items: center; justify-content: center; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s; }
.paginacion .btn-pag:hover, .paginacion .btn-nav:hover { background: var(--adf-tint) !important; color: var(--adf-blue-d) !important; }
.paginacion .btn-pag.activa { background: var(--adf-blue) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(26,140,196,.3) !important; }
.paginacion .btn-nav[disabled], .paginacion .aspNetDisabled { opacity: .4; cursor: default; }

/* ---------- Página «Todos los módulos» ---------- */
.contact-header { text-align: center; max-width: 760px; margin: 28px auto 18px !important; padding: 0 12px; }
.contact-header .accent-line { display: block; width: 48px; height: 4px; border-radius: 99px; background: var(--adf-gold) !important; margin: 0 auto 12px !important; }
.contact-header .small-h1 { font-size: .8rem !important; font-weight: 800 !important; letter-spacing: .1em; color: var(--adf-blue) !important; text-transform: uppercase; margin: 0 0 6px !important; }
.contact-header .big-h2 { font-size: clamp(1.4rem, 2.8vw, 2rem) !important; font-weight: 800 !important; color: var(--adf-navy) !important; margin: 0 0 10px !important; line-height: 1.2 !important; }
.contact-header .description { color: #556 !important; font-size: .98rem !important; line-height: 1.6 !important; }
.filtros-bar { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px !important; max-width: 980px; margin: 0 auto 24px !important; background: #fff; border-radius: 18px; padding: 10px !important; box-shadow: 0 6px 22px rgba(13,27,42,.1); }
.filtros-bar input[type=text] { flex: 1 1 260px; width: auto !important; min-width: 0; min-height: 48px; border: 1px solid #e3e9ef !important; border-radius: 12px !important; padding: 0 14px !important; font: inherit; font-size: 16px !important; background: var(--adf-bg) !important; outline: 0; }
.filtros-bar input[type=text]:focus { border-color: var(--adf-blue) !important; background: #fff !important; }
.filtros-bar .filtro-select-group { display: flex !important; align-items: center; gap: 8px; flex: 0 1 auto; margin: 0 !important; }
.filtros-bar .filtro-label { font-weight: 700; color: #7a8794; font-size: .88rem; white-space: nowrap; margin: 0 !important; }
.filtros-bar .filtro-select { min-height: 48px; border: 1px solid #e3e9ef !important; border-radius: 12px !important; padding: 0 12px !important; font: inherit; font-size: 15px !important; background: var(--adf-bg) !important; min-width: 170px; }
.filtros-bar input[type=submit] { min-height: 48px; border: 0 !important; border-radius: 12px !important; padding: 0 22px !important; background: var(--adf-blue) !important; color: #fff !important; font-weight: 800 !important; font-size: 15px !important; cursor: pointer; width: auto !important; transition: background .2s; }
.filtros-bar input[type=submit]:hover { background: var(--adf-blue-d) !important; }
@media (max-width: 640px) { .filtros-bar { margin: 0 12px 20px !important; } .filtros-bar .filtro-select-group { flex: 1 1 100%; } .filtros-bar .filtro-select { flex: 1; } .filtros-bar input[type=submit] { flex: 1 1 100%; } }
.modulos-grid { gap: 20px !important; }
.modulo-card-static { border: 0 !important; border-radius: 22px !important; overflow: hidden; background: #fff !important; box-shadow: 0 6px 22px rgba(13,27,42,.1) !important; transition: transform .25s ease, box-shadow .25s ease; }
.modulo-card-static:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(13,27,42,.18) !important; }
.modulo-header-flat { background: radial-gradient(circle at 90% 10%, rgba(242,178,62,.35), transparent 45%), linear-gradient(135deg, #0D1B2A, #12466b 62%, #1A8CC4) !important; padding: 16px 12px 22px !important; min-height: 0 !important; height: auto !important; }
.modulo-title-box { background: rgba(255,255,255,.93) !important; border-radius: 16px !important; border-left: 4px solid var(--adf-blue) !important; text-align: left !important; padding: 11px 14px 10px !important; box-shadow: 0 8px 24px rgba(0,0,0,.2) !important; margin: 0 !important; }
.modulo-title-box .m-title { color: var(--adf-navy) !important; font-size: 1rem !important; font-weight: 800 !important; letter-spacing: .02em !important; line-height: 1.25 !important; margin: 0 0 5px !important; }
.modulo-title-box .m-area { display: inline-block !important; width: auto !important; align-self: flex-start; max-width: 100%; color: var(--adf-blue-d) !important; background: #E3F1F9; border-radius: 99px; padding: 2px 9px; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .04em; }
.modulo-body-static { padding: 14px 18px 6px !important; margin-top: -10px; position: relative; background: #fff; border-radius: 20px 20px 0 0; }
.modulo-info-list li { display: flex !important; align-items: center; gap: 12px !important; background: transparent !important; padding: 0 !important; margin: 0 0 9px !important; font-size: .93rem !important; font-weight: 600; color: var(--adf-ink) !important; }
.modulo-info-list .icon-m { flex: 0 0 32px; width: 32px !important; height: 32px !important; border-radius: 10px; background: var(--adf-tint); color: var(--adf-blue) !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 14px !important; margin: 0 !important; }
.modulo-footer-static { border-top: 1px solid #edf1f5 !important; padding: 12px 16px 14px !important; }
.m-footer-reserva { background: var(--adf-blue) !important; color: #fff !important; border-radius: 12px !important; padding: 10px 16px !important; font-weight: 800 !important; text-decoration: none !important; box-shadow: 0 6px 16px rgba(26,140,196,.28) !important; border: 0 !important; transition: background .2s; }
.m-footer-reserva:hover { background: var(--adf-blue-d) !important; }
.modulo-status-badge { border-radius: 99px !important; font-weight: 800 !important; }
@media (prefers-reduced-motion: reduce) { .modulo-card-static, .features-section .card { transition: none; } .modulo-card-static:hover, .features-section .card:hover { transform: none; } .subnav .menu-window { animation: none; } }

/* ============================================================================
   25/09/2026 (2) · Más formas de empezar, próxima convocatoria, avisos, módulos con foto, logos en cinta
   ========================================================================== */
.cw-ico, .cw-tj-ico, .cw-mico, .cw-cta-f, .cw-banda-ico { display: inline-flex; align-items: center; justify-content: center; }
.cw-ico svg, .cw-cta-f svg { width: 18px; height: 18px; }
.cw-mas { background: #fff; padding: 34px 16px 36px; }
.cw-in { max-width: 1180px; margin: 0 auto; }
.cw-h2 { text-align: center; color: var(--adf-navy); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 2rem); margin: 0 0 6px; }
.cw-sub { text-align: center; color: #556; margin: 0 auto 22px; max-width: 620px; font-size: 1rem; }
.cw-tjs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cw-tjs2 { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.cw-tj { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 20px 20px 18px; box-shadow: 0 6px 22px rgba(13,27,42,.09); border: 1px solid #edf1f5; overflow: hidden; transition: transform .25s, box-shadow .25s; animation: cwIn .45s ease both; }
.cw-tj:nth-child(2) { animation-delay: .06s; } .cw-tj:nth-child(3) { animation-delay: .12s; } .cw-tj:nth-child(4) { animation-delay: .18s; }
@keyframes cwIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cw-tj:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(13,27,42,.14); }
.cw-tj::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--t, var(--adf-blue)); }
.cw-tj-azul { --t: #1A8CC4; --tb: #EEF6FB; } .cw-tj-cafe { --t: #8A5A36; --tb: #F6ECE2; } .cw-tj-oro { --t: #E3A52B; --tb: #FFF4DC; } .cw-tj-verde { --t: #1F8A5B; --tb: #E7F5EE; }
.cw-tj-cab { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.cw-tj-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--tb); color: var(--t); }
.cw-tj-ico svg { width: 22px; height: 22px; }
.cw-tj-k { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t); }
.cw-tj h3 { font-size: 1.12rem; font-weight: 800; color: var(--adf-navy); margin: 0 0 8px; line-height: 1.25; }
.cw-tj p { font-size: .92rem; color: #556; line-height: 1.55; margin: 0 0 12px; }
.cw-tj-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--tb); color: var(--t); border: 0; border-radius: 12px; padding: 11px 14px; font: inherit; font-weight: 800; font-size: .92rem; text-decoration: none !important; cursor: pointer; min-height: 44px; transition: background .2s, color .2s; }
.cw-tj-cta:hover { background: var(--t); color: #fff; }
.cw-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; } .cw-mini span { background: var(--adf-bg); border-radius: 99px; padding: 4px 10px; font-size: .78rem; font-weight: 700; color: var(--adf-navy); }
.cw-cafe { background: var(--tb); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; } .cw-cafe b { color: var(--adf-navy); font-size: .95rem; } .cw-cafe span { color: #556; font-size: .85rem; }
.cw-premio { display: flex; align-items: center; gap: 8px; background: var(--tb); border-radius: 12px; padding: 9px 12px; margin: 0 0 14px; font-weight: 700; font-size: .88rem; color: #6b4500; } .cw-premio svg { width: 18px; height: 18px; flex: 0 0 18px; }
.cw-sk { min-height: 250px; background: linear-gradient(90deg, #e9eef3, #f6f8fa, #e9eef3); background-size: 200% 100%; animation: cwSk 1.2s infinite linear; border: 0; box-shadow: none; }
.cw-sk::before { display: none; }
@keyframes cwSk { to { background-position: -200% 0; } }
@media (max-width: 1024px) { .cw-tjs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cw-mas { padding: 26px 0 24px; } .cw-h2, .cw-sub { padding: 0 16px; }
  .cw-tjs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 16px 14px; scrollbar-width: none; } .cw-tjs::-webkit-scrollbar { display: none; }
  .cw-tjs > .cw-tj { flex: 0 0 84%; scroll-snap-align: center; } .cw-tj:hover { transform: none; }
  .cw-tjs2 { margin: 24px -16px 0; }
}

/* botones y chips comunes */
.cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; min-height: 48px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s; }
.cw-btn svg { width: 18px; height: 18px; }
.cw-btn-p { background: var(--adf-blue); color: #fff !important; box-shadow: 0 6px 16px rgba(26,140,196,.28); } .cw-btn-p:hover { background: var(--adf-blue-d); } .cw-btn:active { transform: scale(.98); } .cw-btn[disabled] { opacity: .6; cursor: default; }
.cw-chip { border: 1px solid #d9e2ea; background: #fff; color: var(--adf-ink); border-radius: 99px; padding: 8px 14px; min-height: 40px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cw-chip:hover { border-color: var(--adf-blue); } .cw-chip.on { background: var(--adf-blue); border-color: var(--adf-blue); color: #fff; }

/* franja de avisos encima del pie */
.cw-banda { background: linear-gradient(135deg, #0D1B2A, #12466b 62%, #1A8CC4); padding: 22px 16px; }
.cw-banda-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; color: #fff; }
.cw-banda-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--adf-gold); } .cw-banda-ico svg { width: 24px; height: 24px; }
.cw-banda-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .cw-banda-t b { font-size: 1.08rem; color: #fff !important; } .cw-banda-t span { color: rgba(255,255,255,.88) !important; font-size: .92rem; }
.cw-banda .cw-btn-p { background: var(--adf-gold); color: #3d2800 !important; box-shadow: none; } .cw-banda .cw-btn-p:hover { filter: brightness(1.06); background: var(--adf-gold); }
@media (max-width: 700px) { .cw-banda-in { flex-wrap: wrap; } .cw-banda-t { flex: 1 1 calc(100% - 64px); } .cw-banda .cw-btn { flex: 1 1 100%; } }

/* ventana de avisos */
.cw-mfondo { position: fixed; inset: 0; z-index: 100000; background: rgba(13,27,42,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: cwF .2s ease; }
@keyframes cwF { from { opacity: 0; } to { opacity: 1; } }
.cw-modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.3); padding: 24px 22px 22px; color: var(--adf-ink); animation: cwIn .25s ease; font-family: inherit; }
.cw-modal * { box-sizing: border-box; }
.cw-mx { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--adf-bg); color: var(--adf-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; } .cw-mx svg { width: 20px; height: 20px; }
.cw-mcab { display: flex; gap: 14px; align-items: flex-start; padding-right: 44px; margin-bottom: 16px; } .cw-mcab h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: var(--adf-navy); } .cw-mcab p { margin: 0; color: #556; font-size: .93rem; line-height: 1.5; }
.cw-mico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: #EEF6FB; color: var(--adf-blue); } .cw-mico svg { width: 24px; height: 24px; } .cw-mico-ok { background: #E7F5EE; color: #1F8A5B; margin: 0 auto 10px; }
.cw-form { display: flex; flex-direction: column; gap: 12px; }
.cw-campo { display: flex; flex-direction: column; gap: 5px; margin: 0; } .cw-lab { font-weight: 700; font-size: .9rem; color: var(--adf-navy); }
.cw-campo input { min-height: 50px; border: 1px solid #d9e2ea; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--adf-bg); outline: 0; width: 100%; transition: border-color .15s, background .15s; }
.cw-campo input:focus { border-color: var(--adf-blue); background: #fff; } .cw-campo.mal input { border-color: #e5484d; }
.cw-ayuda { color: #7a8794; font-size: .8rem; min-height: 0; } .cw-campo.mal .cw-ayuda { color: #b3261e; } .cw-ayuda-sola { margin-top: -6px; }
.cw-fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .cw-fila2 { grid-template-columns: 1fr; } }
.cw-chips { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; } .cw-chips legend { font-weight: 700; font-size: .9rem; color: var(--adf-navy); margin: 0 0 8px; padding: 0; }
.cw-cons { display: flex; gap: 10px; align-items: flex-start; background: var(--adf-bg); border-radius: 12px; padding: 12px; font-size: .86rem; line-height: 1.45; color: #334; cursor: pointer; margin: 4px 0 0; }
.cw-cons input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--adf-blue); }
.cw-pol { font-size: .8rem; color: #7a8794; margin: 0; } .cw-pol a { color: var(--adf-blue); font-weight: 700; }
.cw-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cw-err { color: #b3261e; font-weight: 700; font-size: .9rem; min-height: 0; } .cw-err:empty { display: none; }
.cw-form .cw-btn-p { width: 100%; }
.cw-hecho { text-align: center; padding: 18px 6px 4px; display: flex; flex-direction: column; align-items: center; } .cw-hecho h2 { margin: 0 0 8px; font-weight: 800; color: var(--adf-navy); } .cw-hecho p { color: #556; margin: 0 0 10px; }
.cw-baja { color: #7a8794; font-size: .85rem; margin-bottom: 18px; } .cw-hecho .cw-btn { min-width: 200px; }
@media (max-width: 560px) { .cw-mfondo { padding: 0; align-items: flex-end; } .cw-modal { max-height: 94vh; border-radius: 22px 22px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); } }

/* página «Próxima convocatoria» */
#capta-convocatoria { max-width: 1180px; margin: 22px auto 40px; padding: 0 16px; }
.cw-aviso { display: flex; gap: 12px; align-items: flex-start; background: #FFF6E3; border-radius: 16px; padding: 14px 16px; color: #5a4000; margin-bottom: 18px; }
.cw-aviso .cw-ico { color: #b37400; margin-top: 2px; } .cw-aviso div { display: flex; flex-direction: column; gap: 3px; } .cw-aviso b { color: #3d2800; } .cw-aviso span { font-size: .92rem; line-height: 1.5; }
.cw-barra { background: #fff; border-radius: 18px; box-shadow: 0 6px 22px rgba(13,27,42,.1); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cw-buscar { display: flex; align-items: center; gap: 10px; background: var(--adf-bg); border-radius: 12px; padding: 0 14px; color: #7a8794; }
.cw-buscar input { flex: 1; min-width: 0; min-height: 50px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--adf-ink); }
.cw-fsedes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .cw-fsedes::-webkit-scrollbar { display: none; } .cw-fsedes .cw-chip { flex: 0 0 auto; }
.cw-info { color: var(--adf-navy); font-weight: 800; margin: 18px 2px 12px; font-size: 1.05rem; } .cw-info:empty { display: none; }
.cw-conv { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cw-cv { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 22px rgba(13,27,42,.1); animation: cwIn .4s ease both; }
.cw-cv.cw-sk { min-height: 360px; }
.cw-cv-cab { position: relative; min-height: 150px; background: radial-gradient(circle at 90% 10%, rgba(242,178,62,.3), transparent 45%), linear-gradient(135deg, #0D1B2A, var(--c, #1A8CC4)); display: flex; align-items: flex-start; padding: 12px; }
.cw-cv-cab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-cv-cab::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, rgba(13,27,42,.45)); }
.cw-cv-tit { position: relative; z-index: 1; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-left: 4px solid var(--adf-blue); border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); width: 100%; }
.cw-cv-tit h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--adf-navy); line-height: 1.25; }
.cw-cv-tit small { display: inline-block; background: #E3F1F9; color: var(--adf-blue-d); border-radius: 99px; padding: 2px 9px; font-size: .7rem; font-weight: 700; }
.cw-cv-cu { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cw-cv-l { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-cv-l li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--adf-ink); }
.cw-cv-l .cw-ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--adf-tint); color: var(--adf-blue); } .cw-cv-l .cw-ico svg { width: 16px; height: 16px; }
.cw-cv-q { font-size: .82rem; font-weight: 800; color: #7a8794; margin: auto 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.cw-cv-sedes { display: flex; flex-direction: column; gap: 8px; }
.cw-cv-s { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--adf-bg); color: var(--adf-ink) !important; text-decoration: none !important; font-weight: 700; font-size: .92rem; transition: background .15s, color .15s; }
.cw-cv-s .cw-ico { color: var(--adf-blue); } .cw-cv-s span { flex: 1; text-align: left !important; line-height: 1.25; } .cw-cv-s b { background: var(--adf-blue); color: #fff; border-radius: 10px; padding: 7px 11px; font-size: .82rem; white-space: nowrap; }
.cw-cv-s:hover { background: var(--adf-tint); } .cw-cv-s:hover b { background: var(--adf-blue-d); }
.cw-pag { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; }
.cw-pb { min-width: 46px; height: 46px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(13,27,42,.08); font: inherit; font-weight: 800; font-size: 15px; color: var(--adf-navy); cursor: pointer; }
.cw-pb.on { background: var(--adf-blue); color: #fff; } .cw-pb[disabled] { opacity: .35; cursor: default; }
.cw-vacio { grid-column: 1 / -1; background: #fff; border-radius: 18px; padding: 26px; text-align: center; box-shadow: 0 2px 12px rgba(13,27,42,.06); } .cw-vacio p { color: #556; margin: 0 0 14px; }

/* Todos los módulos: foto del curso en la cabecera */
.modulo-header-flat.cw-confoto { position: relative; overflow: hidden; min-height: 150px !important; display: flex; align-items: flex-start; }
.modulo-header-flat.cw-confoto .cw-mfoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.modulo-header-flat.cw-confoto::after { content: ''; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, rgba(13,27,42,.5)); z-index: 0; }
.modulo-header-flat.cw-confoto .modulo-title-box { position: relative; z-index: 1; width: 100%; }

/* pie: logos de las administraciones en una fila que se desliza */
.partners.cw-cinta { display: block !important; overflow: hidden; padding: 18px 0 !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cw-pista { display: flex; width: max-content; animation: cwCinta 38s linear infinite; }
.partners.cw-cinta:hover .cw-pista { animation-play-state: paused; }
.cw-mitad { display: flex; align-items: center; flex: 0 0 auto; }
.cw-mitad > * { flex: 0 0 auto; margin: 0 28px !important; display: flex !important; align-items: center; }
.cw-mitad img { height: 58px !important; width: auto !important; max-width: 180px; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.cw-mitad a:hover img { filter: none; transform: scale(1.05); }
@keyframes cwCinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .cw-mitad > * { margin: 0 18px !important; } .cw-mitad img { height: 46px !important; } .cw-pista { animation-duration: 28s; } }
@media (prefers-reduced-motion: reduce) { .cw-pista { animation: none; } .partners.cw-cinta { overflow-x: auto; } .cw-tj, .cw-cv, .cw-modal { animation: none; } }

/* 26/09/2026 · cabecera sin el teléfono (queda en el pie y en «Llamar» del menú móvil) y barra de cursos que no se sale en pantallas medianas */
.header-main .header-right a.phone { display: none !important; }
@media (min-width: 962px) and (max-width: 1320px) {
  .subnav .breadcrumb { display: none !important; }
  .subnav .center { padding: 6px !important; justify-content: center !important; }
  .subnav .menu { width: 100% !important; margin: 0 !important; justify-content: center !important; flex-wrap: wrap; gap: 2px; }
  .subnav .navigation-item { padding: .6rem .8rem !important; }
  .subnav .navigation-item .navigation-item-text { font-size: .9rem; }
}
@media (min-width: 962px) and (max-width: 1080px) { .subnav .navigation-item .cnav-i { display: none; } }

/* ============================================================================
   26/09/2026 · Tarjeta de curso común (A) y lista compacta en el móvil (B)
   ========================================================================== */
.cwa-w { height: auto !important; }
.cwa-w .ribbon { display: none !important; }
.cwa { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none !important; color: var(--adf-ink) !important; box-shadow: 0 6px 22px rgba(13,27,42,.1); transition: transform .25s ease, box-shadow .25s ease; }
.cwa:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(13,27,42,.16); }
.cwa:focus-visible { outline: 3px solid var(--adf-gold); outline-offset: 3px; }
.cwa-img { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 85% 15%, rgba(242,178,62,.35), transparent 45%), linear-gradient(135deg, #0D1B2A, #1A8CC4); overflow: hidden; flex: 0 0 auto; }
.cwa-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cwa:hover .cwa-img img { transform: scale(1.04); }
.cwa-tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cwa-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 800; line-height: 1.1; background: rgba(13,27,42,.78); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cwa-tag .cw-ico svg { width: 13px; height: 13px; } .cwa-tag.g { background: var(--adf-gold); color: #3d2800; } .cwa-tag.r { background: #e5484d; color: #fff; }
.cwa-b { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cwa-b h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.28; font-weight: 800; color: var(--adf-navy); letter-spacing: 0; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cwa-curso { margin: -4px 0 10px; font-size: .84rem; color: #667; }
.cwa-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px; }
.cwa-facts > div { background: var(--adf-bg); border-radius: 12px; padding: 8px 4px; text-align: center; min-width: 0; }
.cwa-facts b { display: block; font-size: .92rem; color: var(--adf-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cwa-facts span { display: block; font-size: .72rem; color: #667; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwa-meta { display: none; }
.cwa-plazo { display: flex; align-items: center; gap: 8px; background: #EEF6FB; color: var(--adf-blue-d); border-radius: 12px; padding: 9px 12px; font-size: .84rem; font-weight: 700; line-height: 1.3; margin: auto 0 12px; }
.cwa-plazo .cw-ico svg { width: 16px; height: 16px; } .cwa-plazo.urg { background: #FFF6E3; color: #8a5a00; } .cwa-plazo.lleno { background: #fde2e3; color: #b3261e; } .cwa-plazo.gris { background: var(--adf-bg); color: #667; }
.cwa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--adf-blue); color: #fff; border-radius: 12px; min-height: 48px; font-weight: 800; font-size: .95rem; transition: background .2s; }
.cwa-btn .cw-ico svg { width: 18px; height: 18px; } .cwa:hover .cwa-btn { background: var(--adf-blue-d); }
.cwa-bm { display: none; }
.cbs-g .cwa-b .cbs-mot { margin: -2px 0 10px; }
@media (prefers-reduced-motion: reduce) { .cwa, .cwa-img img { transition: none; } .cwa:hover { transform: none; } }
/* B · lista compacta en el móvil para los listados largos */
@media (max-width: 640px) {
  .cw-lista { display: flex !important; flex-direction: column !important; gap: 10px !important; grid-template-columns: none !important; }
  .cw-lista > .cwa-w { width: 100% !important; margin: 0 !important; }
  .cw-lista .cwa { flex-direction: row; align-items: stretch; border-radius: 18px; padding: 10px; gap: 12px; box-shadow: 0 4px 16px rgba(13,27,42,.08); }
  .cw-lista .cwa:hover { transform: none; }
  .cw-lista .cwa-img { flex: 0 0 96px; aspect-ratio: auto; min-height: 104px; border-radius: 12px; }
  .cw-lista .cwa-tags { left: 6px; top: 6px; right: 6px; } .cw-lista .cwa-tag { display: none; } .cw-lista .cwa-tag.g, .cw-lista .cwa-tag.r { display: inline-flex; padding: 3px 7px; font-size: 10px; }
  .cw-lista .cwa-b { padding: 0; min-width: 0; }
  .cw-lista .cwa-b h3 { font-size: .95rem; margin: 0 0 4px; -webkit-line-clamp: 2; }
  .cw-lista .cwa-curso { display: none; }
  .cw-lista .cwa-facts, .cw-lista .cwa-btn { display: none; }
  .cw-lista .cwa-meta { display: block; font-size: .8rem; color: #556; margin: 0 0 8px; line-height: 1.35; }
  .cw-lista .cwa-plazo { margin: auto 0 0; padding: 5px 9px; font-size: .74rem; border-radius: 99px; align-self: flex-start; max-width: calc(100% - 92px); }
  .cw-lista .cwa-plazo .cw-ico { display: none; }
  .cw-lista .cwa-bm { display: block; position: absolute; right: 12px; bottom: 12px; font-weight: 800; font-size: .85rem; color: var(--adf-blue); }
  .cw-lista .cwa { position: relative; }
}

/* Próxima convocatoria con la misma tarjeta */
.cw-cv-cab { min-height: 0 !important; aspect-ratio: 16 / 9; padding: 0 !important; display: block !important; }
.cw-cv-cab::after { display: none; }
.cw-cv-cab .cwa-tags { z-index: 1; }
.cw-cv-h { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.28; font-weight: 800; color: var(--adf-navy); }
.cwa-pl-c { display: none; }
.modulo-card-wrapper.cwa-w, .curso-card-wrapper.cwa-w { height: auto !important; min-height: 0 !important; }
@media (max-width: 640px) {
  .cw-lista .cwa { height: auto !important; }
  .cw-lista .cwa-img { align-self: flex-start; height: 104px; min-height: 104px; }
  .cw-lista .cwa-pl-l { display: none; } .cw-lista .cwa-pl-c { display: inline; white-space: nowrap; }
}
@media (max-width: 640px) { .cw-lista > .cwa-w { flex: 0 0 auto !important; padding-bottom: 0 !important; } }
.cwa-facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }

/* Próxima convocatoria · buscador con IA (26/09/2026) */
.cw-barra.cw-ia { background: radial-gradient(circle at 88% 10%, rgba(242,178,62,.35), transparent 42%), linear-gradient(135deg, #0D1B2A, #12466b 60%, #1A8CC4); color: #fff; border-radius: 22px; padding: clamp(20px, 3.5vw, 32px); box-shadow: 0 14px 34px rgba(13,27,42,.22); gap: 0; }
.cw-ia-k { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: rgba(255,255,255,.14); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: #fff; }
.cw-ia-k .cw-ico svg { width: 15px; height: 15px; color: var(--adf-gold); }
.cw-ia-h { margin: 10px 0 6px !important; color: #fff !important; font-size: clamp(1.4rem, 3vw, 2rem) !important; font-weight: 800 !important; line-height: 1.15; }
.cw-ia-s { margin: 0 0 16px !important; color: rgba(255,255,255,.9) !important; font-size: .98rem; max-width: 640px; }
.cw-ia-f { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 820px; margin: 0 0 14px; }
.cw-ia-f input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px; color: var(--adf-ink); background: transparent; }
.cw-ia-f button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; background: var(--adf-gold); color: #3d2800; font: inherit; font-weight: 800; font-size: 16px; padding: 0 20px; min-height: 50px; cursor: pointer; }
.cw-ia-f button .cw-ico svg { width: 18px; height: 18px; } .cw-ia-f button[disabled] { opacity: .7; }
.cw-ia .cw-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; } .cw-ia .cw-chip.on { background: #fff; color: var(--adf-navy); border-color: #fff; }
.cw-ia-resp:empty { display: none; }
.cw-ia-r { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 2px 12px rgba(13,27,42,.06); margin: 16px 0 0; font-size: 15.5px; line-height: 1.45; }
.cw-ia-r > span:not(.cw-ico) { flex: 1 1 260px; } .cw-ia-r .cw-ico svg { width: 22px; height: 22px; color: var(--adf-blue); }
.cw-ia-todos { border: 0; border-radius: 10px; background: var(--adf-tint); color: var(--adf-blue-d); font: inherit; font-weight: 800; font-size: .88rem; padding: 9px 14px; cursor: pointer; }
.cw-cv-mot { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 10px; font-size: .86rem; background: #FFF6E3; color: #5a4000; border-radius: 12px; padding: 8px 10px; line-height: 1.4; }
.cw-cv-mot .cw-ico svg { width: 16px; height: 16px; color: #b37400; }
@media (max-width: 640px) { .cw-ia-f { flex-direction: column; } .cw-ia-f button { width: 100%; justify-content: center; } }
