:root {
  --amarillo: #ed8a2a; --amarillo-texto: #d2700f; --amarillo-titulo: #d2700f; --azul: #1A3A5C; --azul-claro: #0075c9; --azul-texto: #0069b4;
  --texto: #2d2d2d; --texto-suave: #666; --gris-fondo: #f7f7f7;
  --borde: #e0e0e0; --blanco: #ffffff;
  --font-titulo: 'Montserrat', sans-serif; --font-body: 'Open Sans', sans-serif;
  --sombra: 0 2px 16px rgba(0,0,0,0.09); --radio: 8px; --borde-input: #6b7280;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--texto); background: var(--blanco); }

/* TOPBAR */
.topbar { background: var(--azul); color: #cdd8e6; font-size: 12px; padding: 6px 0; }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cdd8e6; text-decoration: none; }
.topbar a:hover { color: var(--amarillo); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar .topbar-left > span, .topbar .topbar-left > a { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.topbar-right > a:not(.topbar-btn) { display: inline-flex; align-items: center; }
.topbar a.topbar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; line-height: 1; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-btn { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.12); border-radius: 4px; padding: 4px 10px; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.topbar-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.topbar-socials { display: flex; gap: 10px; }
.topbar-socials a { color: #cdd8e6; font-size: 14px; }
.topbar-socials a:hover { color: var(--amarillo); }

/* HEADER */
header { background: var(--blanco); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.07); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { font-family: var(--font-titulo); font-size: 26px; font-weight: 800; color: var(--azul); text-decoration: none; letter-spacing: -0.5px; flex-shrink: 0; }
.logo img { display: block; width: 156px; height: auto; }
.logo span { color: var(--amarillo); }
.logo small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2px; color: var(--texto-suave); text-transform: uppercase; margin-top: -4px; }
header nav { display: flex; align-items: center; gap: 4px; }
header nav a { font-family: var(--font-titulo); font-size: 13px; font-weight: 600; color: var(--texto); text-decoration: none; padding: 8px 12px; border-radius: var(--radio); transition: all .2s; white-space: nowrap; }
header nav a:hover, header nav a.active { color: var(--azul-texto); background: #eef4ff; }
.header-search { display: flex; align-items: center; background: var(--amarillo); border-radius: 6px; padding: 6px 10px 6px 14px; gap: 8px; min-width: 200px; }
.header-search input { border: none; background: transparent; font-size: 12px; color: var(--azul); outline: none; width: 100%; font-family: var(--font-body); }
.header-search:focus-within { outline: 3px solid var(--azul); outline-offset: 2px; }
.header-search input::placeholder { color: rgba(26,58,92,0.85); }
.header-search button { background: none; border: none; cursor: pointer; color: var(--azul); font-size: 16px; padding: 0; line-height: 1; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--azul) 0%, #0f2540 100%); min-height: 500px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../img/hero-bg.jpg?v=2') center/cover; opacity: 0.18; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px; position: relative; z-index: 1; text-align: center; }
.hero-inner h1 { font-family: var(--font-titulo); font-size: clamp(28px, 4vw, 52px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hero-inner h1 em { font-style: normal; color: var(--amarillo); }
.hero-inner p { font-size: clamp(14px, 1.6vw, 18px); color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 14px; padding: 14px 28px; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { background: #f4a24f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,0.4); }
.btn-secondary { background: transparent; color: #fff; font-family: var(--font-titulo); font-weight: 600; font-size: 14px; padding: 13px 28px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.4); cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* SERVICIOS BAR */
.servicios-bar { background: var(--blanco); border-bottom: 1px solid var(--borde); padding: 0; }
.servicios-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.servicio-item { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-right: 1px solid var(--borde); transition: background .2s; text-decoration: none; }
.servicio-item:last-child { border-right: none; }
.servicio-item:hover { background: #fef9f0; }
.servicio-icon { width: 42px; height: 42px; background: var(--amarillo); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.servicio-item h4 { font-family: var(--font-titulo); font-size: 12px; font-weight: 700; color: var(--azul); margin-bottom: 2px; }
.servicio-item p { font-size: 13px; color: var(--texto-suave); line-height: 1.3; }

/* SECTIONS */
section { padding: 64px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: #eef4ff; color: var(--azul-texto); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.section-header h2 { font-family: var(--font-titulo); font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--azul); }
.section-header h2 span { color: var(--amarillo-titulo); }
.section-header p { color: var(--texto-suave); margin-top: 10px; font-size: 15px; }

/* CURSOS CARDS */
.cursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.curso-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; transition: all .22s; box-shadow: var(--sombra); }
.curso-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
.curso-card-img { width: 100%; height: 180px; object-fit: cover; background: #dde5f0; display: block; }
.curso-card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #dde5f0, #c8d5e8); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.curso-card-body { padding: 18px; }
.curso-card-cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--azul-texto); margin-bottom: 6px; display: block; }
.curso-card h3 { font-family: var(--font-titulo); font-size: 14px; font-weight: 700; color: var(--texto); line-height: 1.4; margin-bottom: 14px; min-height: 38px; }
.curso-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--borde); }
.curso-precio { font-family: var(--font-titulo); font-size: 20px; font-weight: 800; color: var(--azul); }
.curso-precio small { font-size: 12px; font-weight: 500; color: var(--texto-suave); display: block; }
.btn-curso { background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.btn-curso:hover { background: #f4a24f; }
.center-btn { text-align: center; margin-top: 36px; }

/* OPOSICIONES BAND */
.oposi-band { background: linear-gradient(135deg, #f7f9fc 0%, #eef2f8 100%); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.oposi-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.oposi-text h2 { font-family: var(--font-titulo); font-size: 28px; font-weight: 800; color: var(--azul); margin-bottom: 14px; }
.oposi-text p { color: var(--texto-suave); line-height: 1.7; margin-bottom: 16px; font-size: 15px; }
.oposi-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.oposi-feat { display: flex; align-items: flex-start; gap: 10px; }
.oposi-feat-icon { width: 36px; height: 36px; background: var(--amarillo); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.oposi-feat h4 { font-family: var(--font-titulo); font-size: 13px; font-weight: 700; color: var(--azul); }
.oposi-feat p { font-size: 12px; color: var(--texto-suave); }

/* NOTICIAS */
.noticias-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.noticia-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; box-shadow: var(--sombra); transition: all .22s; text-decoration: none; display: block; }
.noticia-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.11); }
.noticia-img { width: 100%; height: 200px; object-fit: cover; background: #dde5f0; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.noticia-body { padding: 20px; }
.noticia-body h3 { font-family: var(--font-titulo); font-size: 16px; font-weight: 700; color: var(--azul); margin-bottom: 8px; }
.noticia-body p { font-size: 13px; color: var(--texto-suave); line-height: 1.6; margin-bottom: 14px; }
.noticia-date { font-size: 12px; color: var(--amarillo-texto); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }

/* NEWSLETTER */
.newsletter-band { background: var(--azul); padding: 60px 0; }
.newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.newsletter-inner h2 { font-family: var(--font-titulo); font-size: 28px; font-weight: 800; color: var(--blanco); margin-bottom: 10px; }
.newsletter-inner h2 span { color: var(--amarillo); }
.newsletter-inner p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 440px; margin: 0 auto 16px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: 6px; font-size: 14px; font-family: var(--font-body); outline: none; }
.newsletter-form button { background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 13px; padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.newsletter-form button:hover { background: #f4a24f; }
.newsletter-legal { font-size: 12px; color: rgba(255,255,255,0.5); }
.newsletter-msg { padding: 10px 20px; border-radius: 6px; font-size: 14px; text-align: center; margin-bottom: 16px; }
.newsletter-msg.ok { background: #dcfce7; color: #15803d; }
.newsletter-msg.err { background: #fee2e2; color: #b91c1c; }

/* FOOTER */
footer { background: #0f2540; color: #a0aec0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; display: block; font-size: 24px; }
.footer-brand .logo img { display: block; width: 170px; height: auto; }
.footer-brand .logo span { color: var(--amarillo); }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 44px; height: 44px; background: rgba(255,255,255,0.08); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #a0aec0; text-decoration: none; font-size: 15px; transition: all .2s; }
.footer-socials a:hover { background: var(--amarillo); color: var(--azul); }
.footer-col h4 { font-family: var(--font-titulo); font-size: 13px; font-weight: 700; color: var(--amarillo); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #a0aec0; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--amarillo); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.footer-contact-item span:first-child { color: var(--amarillo); display: flex; flex-shrink: 0; line-height: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; }
.footer-acred-band { background: #fff; padding: 24px 0; }
.footer-acred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; text-align: center; }
.acred-item img { max-width: 100%; height: auto; max-height: 44px; width: auto; display: block; margin: 0 auto 10px; }
.acred-item p { font-size: 12px; line-height: 1.5; color: var(--texto-suave); }
.acred-badge { display: inline-block; border: 1px solid var(--borde); border-radius: 6px; padding: 6px 12px; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--texto-suave); line-height: 1.3; }
.acred-badge strong { display: block; color: var(--azul); font-size: 12px; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--azul) 0%, #0f2540 100%); padding: 48px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('../img/page-hero-bg.jpg?v=2') center/cover; opacity: 0.1; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-titulo); font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 15px; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.breadcrumb a { color: var(--amarillo); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.7); }

/* SUBMENU */
.submenu-bar { background: #f0f4fa; border-bottom: 1px solid var(--borde); }
.submenu-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; }
.submenu-item { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-right: 1px solid var(--borde); transition: all .2s; text-decoration: none; }
.submenu-item:hover, .submenu-item.active { background: var(--blanco); }
.submenu-item.active { border-bottom: 2px solid var(--amarillo); }
.submenu-dot { width: 30px; height: 30px; background: var(--amarillo); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--azul); flex-shrink: 0; }
.submenu-dot svg { width: 16px; height: 16px; }
.submenu-text .submenu-title { display: block; }
.submenu-text h5, .submenu-text .submenu-title { font-family: var(--font-titulo); font-size: 12px; font-weight: 700; color: var(--azul); }
.submenu-text p { font-size: 12px; color: var(--texto-suave); }

/* QUIENES SOMOS */
.qs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.qs-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.qs-img img { width: 100%; display: block; }
.qs-text h2 { font-family: var(--font-titulo); font-size: 30px; font-weight: 800; color: var(--azul); line-height: 1.2; margin-bottom: 16px; }
.qs-text h2 span { color: var(--amarillo-titulo); }
.qs-text p { color: var(--texto-suave); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.qs-services { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qs-service { border-left: 3px solid var(--amarillo); padding: 8px 12px; background: #fef9f0; border-radius: 0 6px 6px 0; }
.qs-service h4 { font-family: var(--font-titulo); font-size: 13px; font-weight: 700; color: var(--azul-texto); margin-bottom: 3px; }
.qs-service p { font-size: 12px; color: var(--texto-suave); line-height: 1.4; }
.qs-services-full { margin-top: 0; }
.qs-services-full .qs-service { padding: 16px 20px; }
.qs-services-full .qs-service h4 { font-size: 15px; margin-bottom: 8px; }
.qs-services-full .qs-service p { font-size: 14px; line-height: 1.7; }
.qs-text h3 { font-family: var(--font-titulo); font-size: 18px; font-weight: 700; color: var(--azul); margin: 18px 0 10px; }
.oposi-intro { margin-bottom: 28px; }
.oposi-intro p { font-size: 15px; line-height: 1.7; color: var(--texto); margin-bottom: 12px; }
.oposi-cierre { margin-top: 24px; font-size: 14px; line-height: 1.7; color: var(--azul); font-weight: 600; }
.cert-claim { font-family: var(--font-titulo); font-size: 18px; font-weight: 700; color: var(--amarillo-texto); }
.inst-intro { font-size: 15px; line-height: 1.7; color: var(--texto); margin-bottom: 14px; }
.newsletter-check { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.8); }
.newsletter-form .newsletter-check input { flex: 0 0 auto; width: 16px; height: 16px; padding: 0; margin-top: 2px; }
.rgpd-info { margin-top: 14px; font-size: 12px; line-height: 1.55; color: var(--texto-suave); }
.rgpd-info a { color: var(--azul-texto); }
.rgpd-info-dark { max-width: 640px; margin: 8px auto 0; text-align: center; color: rgba(255,255,255,0.6); }
.rgpd-info-dark a { color: var(--amarillo); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: #a0aec0; text-decoration: none; }
.footer-legal a:hover { color: var(--amarillo); }
.legal-text { max-width: 860px; font-size: 15px; color: var(--texto-suave); line-height: 1.8; }
.legal-text h2 { font-family: var(--font-titulo); font-size: 21px; font-weight: 800; color: var(--azul); margin: 32px 0 12px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { font-family: var(--font-titulo); font-size: 16px; font-weight: 700; color: var(--azul-texto); margin: 20px 0 8px; }
.legal-text p { margin-bottom: 12px; }
.legal-text ul { margin: 8px 0 16px 20px; }
.legal-text li { margin-bottom: 4px; }
.legal-text a { color: var(--azul-texto); }
.legal-tabla { overflow-x: auto; margin: 12px 0 20px; }
.legal-tabla table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.legal-tabla th, .legal-tabla td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-tabla th { background: var(--gris-fondo); color: var(--azul); font-family: var(--font-titulo); font-size: 12px; }
.legal-fecha { margin-top: 32px; font-size: 13px; color: var(--texto-suave); }
.acred-item img.acred-stack { margin-bottom: 6px; }
.cert-list { list-style: none; margin: 0 0 14px; }
.cert-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.45; padding: 7px 0; border-bottom: 1px solid var(--borde); color: var(--texto); }
.cert-list li strong { color: var(--azul); font-weight: 700; margin-right: 4px; }
.cert-list li em { font-style: normal; font-weight: 600; color: var(--texto-suave); white-space: nowrap; }
.instalaciones-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.instalaciones-galeria img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; box-shadow: var(--sombra); display: block; }
.qs-img img.qs-img-vertical { height: 460px; object-fit: cover; }
.qs-lead { font-size: 18px; color: var(--amarillo-texto); font-weight: 600; }

/* INSTALACIONES */
.instalaciones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.aulas-list { display: flex; flex-direction: column; gap: 16px; }
.aula-item { display: flex; gap: 14px; align-items: flex-start; background: var(--gris-fondo); border-radius: 8px; padding: 16px; border-left: 4px solid var(--amarillo); }
.aula-icon { font-size: 24px; flex-shrink: 0; width: 40px; height: 40px; background: var(--amarillo); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.aula-item h4 { font-family: var(--font-titulo); font-size: 14px; font-weight: 700; color: var(--azul); margin-bottom: 4px; }
.aula-item p { font-size: 13px; color: var(--texto-suave); line-height: 1.5; }
.instalaciones-img img { width: 100%; border-radius: 10px; box-shadow: var(--sombra); object-fit: cover; height: 300px; }
.alquiler-box { background: linear-gradient(135deg, var(--azul) 0%, #0f2540 100%); color: #fff; border-radius: 10px; padding: 28px; margin-top: 24px; }
.alquiler-box h3 { font-family: var(--font-titulo); font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--amarillo); }
.alquiler-box p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* OPOSICIONES PAGE */
.oposi-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.oposi-sidebar { position: sticky; top: 100px; }
.oposi-sidebar-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; box-shadow: var(--sombra); }
.oposi-sidebar-img { display: block; width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, #dde5f0, #c8d5e8); }
.oposi-sidebar-body { padding: 18px; }
.oposi-servicios { display: flex; flex-direction: column; gap: 10px; }
.oposi-servicio { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: var(--gris-fondo); border-radius: 6px; border-left: 3px solid var(--amarillo); }
.oposi-servicio h5 { font-family: var(--font-titulo); font-size: 12px; font-weight: 700; color: var(--azul); margin-bottom: 2px; }
.oposi-servicio p { font-size: 13px; color: var(--texto-suave); line-height: 1.4; }
.oposi-check { color: var(--amarillo-texto); flex-shrink: 0; margin-top: 2px; }
.ofertas-section h2 { font-family: var(--font-titulo); font-size: 22px; font-weight: 800; color: var(--azul); margin-bottom: 20px; }
.organismo-badge { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
.organismo-badge span { font-family: var(--font-titulo); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--azul); background: #eef4ff; padding: 4px 12px; border-radius: 4px; }
.oferta-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; padding: 20px; margin-bottom: 14px; box-shadow: var(--sombra); transition: all .2s; }
.oferta-card:hover { border-color: var(--azul-claro); box-shadow: 0 4px 20px rgba(37,99,168,0.1); }
.oferta-card h3 { font-family: var(--font-titulo); font-size: 15px; font-weight: 800; color: var(--amarillo-texto); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.oferta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.oferta-row { font-size: 12px; color: var(--texto-suave); }
.oferta-row strong { color: var(--texto); font-weight: 600; }
.oferta-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: #fff3cd; color: #856404; }
.oferta-status.activo { background: #d1fae5; color: #065f46; }
.oferta-pending { background: #fef9f0; border: 1px dashed var(--amarillo); border-radius: 8px; padding: 16px 20px; margin-bottom: 14px; text-align: center; color: var(--texto-suave); font-size: 13px; }
.oferta-pending strong { color: var(--azul-texto); font-family: var(--font-titulo); font-weight: 700; display: block; font-size: 14px; margin-bottom: 6px; }

/* CERTIFICADOS */
.cert-intro { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.cert-img-wrap { border-radius: 12px; overflow: hidden; }
.cert-img-wrap img { width: 100%; display: block; }
.cert-text h2 { font-family: var(--font-titulo); font-size: 28px; font-weight: 800; color: var(--azul); margin-bottom: 16px; }
.cert-text p { color: var(--texto-suave); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cert-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; padding: 24px; box-shadow: var(--sombra); transition: all .22s; }
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.cert-card h3 { font-family: var(--font-titulo); font-size: 14px; font-weight: 800; color: var(--amarillo-texto); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--amarillo); }
.cert-details { margin-bottom: 16px; }
.cert-detail { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--borde); }
.cert-detail:last-child { border-bottom: none; }
.cert-detail span:first-child { color: var(--texto-suave); }
.cert-detail strong { color: var(--texto); font-weight: 600; }
.cert-card-footer { display: flex; gap: 10px; }
.btn-descargar { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--azul-texto); border: 1px solid var(--borde); border-radius: 6px; padding: 7px 12px; cursor: pointer; background: var(--blanco); text-decoration: none; transition: all .2s; font-family: var(--font-titulo); }
.btn-descargar:hover { background: var(--gris-fondo); }

/* FORMACION */
.formacion-intro { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; margin-bottom: 48px; }
.formacion-intro img { width: 100%; border-radius: 10px; box-shadow: var(--sombra); }

/* APOYO ESCOLAR */
.nivel-section { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0; overflow: hidden; }
.nivel-text { padding: 48px; }
.nivel-img { overflow: hidden; }
.nivel-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.nivel-text h3 { font-family: var(--font-titulo); font-size: 22px; font-weight: 800; color: var(--azul-texto); margin-bottom: 14px; text-transform: uppercase; }
.nivel-text p { font-size: 14px; color: var(--texto-suave); line-height: 1.7; margin-bottom: 10px; }
.nivel-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: 13px; color: var(--texto-suave); }
.nivel-section.reverse .nivel-text { order: 2; }
.nivel-section.reverse .nivel-img { order: 1; }

/* CURSOS FILTER */
.cursos-filter { background: var(--gris-fondo); padding: 20px 0; border-bottom: 1px solid var(--borde); }
.filter-inner { display: flex; gap: 12px; align-items: center; }
.filter-input { flex: 1; padding: 10px 16px; border: 1px solid var(--borde); border-radius: 6px; font-size: 14px; font-family: var(--font-body); outline: none; background: var(--blanco); }
.filter-input:focus { border-color: var(--azul-claro); }
.filter-select { padding: 10px 14px; border: 1px solid var(--borde); border-radius: 6px; font-size: 14px; font-family: var(--font-body); background: var(--blanco); color: var(--texto); outline: none; }
.filter-btn { padding: 10px 20px; background: var(--azul); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-family: var(--font-titulo); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; }
.filter-btn:hover { background: var(--azul-claro); }

/* CURSO DETALLE */
.detalle-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.detalle-sidebar { position: sticky; top: 100px; }
.precio-box { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; padding: 24px; box-shadow: var(--sombra); margin-bottom: 20px; }
.precio-box .precio { font-family: var(--font-titulo); font-size: 38px; font-weight: 800; color: var(--azul); margin-bottom: 16px; }
.precio-box .precio small { font-size: 14px; color: var(--texto-suave); white-space: nowrap; }
.precio-detail { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--borde); align-items: center; }
.precio-detail:last-of-type { border-bottom: none; margin-bottom: 16px; }
.precio-detail span:first-child { color: var(--texto-suave); }
.precio-detail strong { color: var(--texto); font-weight: 600; }
.btn-comprar { width: 100%; background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 15px; padding: 14px; border: none; border-radius: 6px; cursor: pointer; transition: all .2s; display: block; text-align: center; text-decoration: none; }
.btn-comprar:hover { background: #f4a24f; }
.cats-sidebar { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; padding: 20px; box-shadow: var(--sombra); margin-bottom: 20px; }
.cats-sidebar h4 { font-family: var(--font-titulo); font-size: 13px; font-weight: 700; color: var(--azul); margin-bottom: 14px; }
.cat-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--azul-texto); padding: 7px 0; border-bottom: 1px solid var(--borde); text-decoration: none; transition: color .2s; }
.cat-link:last-child { border-bottom: none; }
.cat-link:hover { color: var(--amarillo); }
.detalle-main h1, .detalle-main .detalle-titulo { font-family: var(--font-titulo); font-size: 26px; font-weight: 800; color: var(--azul); margin-bottom: 6px; }
.detalle-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--azul-texto); background: #eef4ff; padding: 3px 10px; border-radius: 20px; margin-bottom: 24px; }
.detalle-desc { font-size: 15px; color: var(--texto-suave); line-height: 1.8; margin-bottom: 28px; }
.detalle-docs { margin-bottom: 32px; }
.detalle-docs h3 { font-family: var(--font-titulo); font-size: 16px; font-weight: 700; color: var(--azul); margin-bottom: 12px; }
.doc-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--gris-fondo); border-radius: 6px; margin-bottom: 8px; border: 1px solid var(--borde); }
.doc-item-left { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texto); }
.btn-ver { font-size: 12px; color: var(--azul-texto); font-weight: 600; text-decoration: none; font-family: var(--font-titulo); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-post-content { font-size: 15px; color: var(--texto-suave); line-height: 1.8; }
.blog-post-content p { margin-bottom: 16px; }

/* CONTACTO */
.contacto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacto-info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--gris-fondo); border-radius: 10px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.info-card-icon { color: var(--azul); width: 44px; height: 44px; background: var(--amarillo); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-card h4 { font-family: var(--font-titulo); font-size: 13px; font-weight: 700; color: var(--azul); margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--texto-suave); line-height: 1.6; }
.info-card a { color: var(--azul-texto); text-decoration: none; }
.map-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, #dde5f0, #c8d5e8); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 40px; margin-top: 20px; border: 1px solid var(--borde); }
.horario-badge { display: inline-flex; align-items: center; gap: 8px; background: #eef4ff; color: var(--azul-texto); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-top: 10px; }

/* FORM */
.form-box { background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; padding: 32px; box-shadow: var(--sombra); }
.form-box h3 { font-family: var(--font-titulo); font-size: 20px; font-weight: 700; color: var(--azul); margin-bottom: 6px; }
.form-box p { font-size: 13px; color: var(--texto-suave); margin-bottom: 20px; }
.form-sep { width: 40px; height: 3px; background: var(--amarillo); border-radius: 2px; margin: 8px 0 20px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--texto); margin-bottom: 5px; }
.form-label span { color: #b91c1c; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--borde-input); border-radius: 6px; font-size: 14px; font-family: var(--font-body); color: var(--texto); outline: none; transition: border .2s; background: var(--blanco); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--azul-claro); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--texto-suave); margin-bottom: 10px; line-height: 1.5; }
.form-check input { width: auto; margin-top: 2px; }
.form-check a { color: var(--azul-texto); }
.btn-enviar { background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 14px; padding: 12px 28px; border: none; border-radius: 6px; cursor: pointer; transition: all .2s; }
.btn-enviar:hover { background: #f4a24f; }
.form-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.form-msg.ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.form-msg.err { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 6px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--azul); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 28px; right: 24px; z-index: 999; width: 54px; height: 54px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none; transition: all .2s; font-size: 26px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* TRUST STRIP */
.trust-strip { background: var(--azul); padding: 14px 0; border-bottom: 2px solid rgba(255,255,255,0.08); }
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { text-align: center; color: rgba(255,255,255,0.8); font-size: 12px; line-height: 1.3; }
.trust-item strong { display: block; color: var(--amarillo); font-family: var(--font-titulo); font-weight: 800; font-size: 20px; }

/* GRID HELPERS */
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a2e; color: #cdd8e6; padding: 16px 24px; z-index: 9000; border-top: 2px solid var(--amarillo); display: none; }
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 13px; line-height: 1.5; flex: 1; }
.cookie-inner a { color: var(--amarillo); }
.cookie-btns { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.cookie-accept { font-size: 13px; padding: 8px 20px; }
.cookie-more { font-size: 12px; color: rgba(255,255,255,0.6); text-decoration: none; white-space: nowrap; }
.cookie-more:hover { color: var(--amarillo); }

/* ARTICLE + SIDEBAR LAYOUT */
.noticia-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.apoyo-info-grid { background: linear-gradient(135deg,#f7f9fc,#eef2f8); border-radius: 12px; padding: 36px; margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cursos-grid, .noticias-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .oposi-layout, .detalle-layout, .cert-intro, .instalaciones-grid, .qs-split, .contacto-layout { grid-template-columns: 1fr; }
  .formacion-intro { grid-template-columns: 1fr; }
  .nivel-section { grid-template-columns: 1fr; }
  .nivel-img { min-height: 240px; }
  .cert-grid { grid-template-columns: 1fr; }
  .grid-4col { grid-template-columns: repeat(2, 1fr); }
  .grid-3col { grid-template-columns: 1fr 1fr; }
  .noticia-layout { grid-template-columns: 1fr; }
  .apoyo-info-grid { grid-template-columns: 1fr; }
  .oposi-inner { grid-template-columns: 1fr; gap: 32px; }
  .oposi-sidebar, .detalle-sidebar { position: static; }
  .oposi-sidebar { order: 2; }
  .detalle-sidebar { order: -1; }
  .detalle-sidebar .cats-sidebar { display: none; }
  .qs-img img.qs-img-vertical { height: 360px; }
}
@media (max-width: 600px) {
  .footer-acred { grid-template-columns: 1fr; }
  .cursos-grid, .noticias-grid, .blog-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .hero-inner h1 { font-size: 24px; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .oposi-features, .qs-services { grid-template-columns: 1fr; }
  .grid-3col, .grid-4col { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
  .oferta-grid { grid-template-columns: 1fr; }
  .filter-inner { flex-wrap: wrap; }
  .filter-inner > * { flex: 1 1 100%; }
  .header-inner { padding: 0 16px; }
  .container, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .topbar .inner { justify-content: center; }
  .topbar a { display: inline-block; padding: 6px 0; }
  .form-check input[type="checkbox"], .newsletter-check input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
}

/* Tablet y móvil: menú hamburguesa (6 enlaces + buscador no caben por debajo de 1000px) */
@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .header-inner { position: relative; }
  .header-search { margin-left: auto; min-width: 0; width: 240px; }
  .header-search input { font-size: 16px; }
  header nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blanco); flex-direction: column;
    padding: 8px 16px 24px; gap: 0; z-index: 200;
    border-top: 1px solid var(--borde);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    overflow-y: auto; max-height: calc(100vh - 110px);
  }
  header nav.open { display: flex; }
  header nav a { font-size: 16px; font-weight: 600; padding: 15px 8px; border-bottom: 1px solid var(--borde); border-radius: 0; }
  header nav a:last-child { border-bottom: none; }
  header nav a.active { color: var(--azul-texto); background: none; }
  header nav a:hover { background: none; color: var(--azul-texto); }
  .submenu-inner { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .submenu-item { border-bottom: 1px solid var(--borde); padding: 12px 10px; gap: 8px; min-width: 0; }
  .submenu-text { min-width: 0; }
  .submenu-text h5, .submenu-text p { overflow-wrap: anywhere; }
  .submenu-dot { width: 26px; height: 26px; }
}
.cursos-grid.cursos-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .cursos-grid.cursos-grid-2 { grid-template-columns: 1fr; } }

/* CONSENTIMIENTO DE COOKIES */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; background: #0f2540; color: #e2e8f0; border-top: 3px solid var(--amarillo); box-shadow: 0 -6px 24px rgba(0,0,0,0.2); max-height: 85vh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.consent-title { font-family: var(--font-titulo); font-weight: 700; color: #fff; font-size: 15px; margin-bottom: 4px; }
.consent-text p { font-size: 13px; line-height: 1.55; }
.consent-text a { color: var(--amarillo); }
.consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn { min-width: 116px; min-height: 44px; padding: 10px 18px; border-radius: 6px; border: 2px solid var(--amarillo); background: var(--amarillo); color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 14px; cursor: pointer; }
.consent-btn:hover { background: #f4a24f; border-color: #f4a24f; }
.consent-btn:focus-visible, .footer-legal-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.consent-panel { max-width: 1200px; margin: 0 auto; padding: 0 24px 18px; display: grid; gap: 12px; }
.consent-panel[hidden] { display: none; }
.consent-opt { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 12px 14px; }
.consent-opt label { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #fff; cursor: pointer; }
.consent-opt input { width: 20px; height: 20px; accent-color: var(--amarillo); }
.consent-opt p { font-size: 12px; color: rgba(255,255,255,0.7); margin: 4px 0 0 30px; }
.footer-legal-btn { background: none; border: none; padding: 0; font: inherit; font-size: 12px; color: #a0aec0; cursor: pointer; text-decoration: underline; }
.footer-legal-btn:hover { color: var(--amarillo); }
.map-consent { margin-top: 20px; min-height: 220px; border-radius: 10px; border: 1px solid var(--borde); background: linear-gradient(135deg, #eef3f9, #dde5f0); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.map-consent p { font-size: 13px; color: var(--texto-suave); max-width: 340px; }
.map-consent a { font-size: 13px; color: var(--azul-texto); }
.map-frame { display: block; width: 100%; height: 320px; border: 0; border-radius: 10px; margin-top: 20px; }
@media (max-width: 760px) {
  .consent-inner { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .consent-btns { flex-direction: column; }
  .consent-btn { width: 100%; }
  .consent-panel { padding: 0 16px 16px; }
}
.legal-link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--azul-texto); text-decoration: underline; cursor: pointer; }
.identidad-grid { gap: 28px; }
.identidad-card { background: var(--blanco); border-radius: 10px; overflow: hidden; box-shadow: var(--sombra); border-top: 4px solid var(--amarillo); display: flex; flex-direction: column; }
.identidad-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.identidad-body { padding: 22px 24px 26px; }
.identidad-body h3 { font-family: var(--font-titulo); font-size: 18px; font-weight: 700; color: var(--azul); margin-bottom: 10px; }
.identidad-body p { font-size: 14px; color: var(--texto-suave); line-height: 1.7; }
/* Contenido de entradas del blog */
.blog-post-content { font-size: 16px; line-height: 1.75; color: var(--texto); }
.blog-post-content h2 { font-family: var(--font-titulo); font-size: 21px; font-weight: 800; color: var(--azul); margin: 30px 0 10px; }
.blog-post-content p { margin-bottom: 14px; }
.blog-post-content ul, .blog-post-content ol { margin: 6px 0 16px 22px; }
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content a { color: var(--azul-texto); }
.blog-post-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; display: block; overflow-x: auto; }
.blog-post-content th, .blog-post-content td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; white-space: nowrap; }
.blog-post-content th { background: var(--gris-fondo); color: var(--azul); font-family: var(--font-titulo); font-size: 13px; }
.blog-post-content td:first-child { white-space: normal; min-width: 180px; }

/* Certificados gratuitos: bloque de la home y accesos del catálogo */
.cert-home { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cert-home h2 { font-family: var(--font-titulo); font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--azul); line-height: 1.15; }
.cert-home h2 span { color: var(--amarillo-titulo); }
.cert-home .lead { font-size: 16px; line-height: 1.65; color: var(--texto); margin: 14px 0 22px; }
.cert-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cert-pills span { font-family: var(--font-titulo); font-weight: 700; font-size: 13px; color: var(--azul); background: #FFF4DF; border-radius: 999px; padding: 7px 14px; }
.cert-fams { list-style: none; border-top: 2px solid var(--azul); }
.cert-fams li { border-bottom: 1px solid var(--borde); }
.cert-fams a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 4px; text-decoration: none; color: var(--azul); font-family: var(--font-titulo); font-weight: 700; font-size: 16px; }
.cert-fams a:hover { color: var(--azul-texto); }
.cert-fams em { font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--texto-suave); white-space: nowrap; }
.alq-home-img img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--sombra); }
.caminos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.camino { display: block; text-decoration: none; border: 1px solid var(--borde); border-radius: 10px; padding: 20px 22px; color: var(--texto); background: var(--blanco); }
.camino:hover { border-color: var(--azul-claro); }
.camino h3 { font-family: var(--font-titulo); font-size: 17px; font-weight: 800; color: var(--azul); margin-bottom: 6px; }
.camino p { font-size: 14px; line-height: 1.5; color: var(--texto-suave); }
.camino[aria-current], .camino:active, .camino:focus-visible { border-color: var(--amarillo); box-shadow: inset 0 0 0 1px var(--amarillo); background: #FFF9EE; }
.camino .tag { display: inline-block; font-family: var(--font-titulo); font-weight: 800; font-size: 12px; color: var(--azul); background: var(--amarillo); border-radius: 999px; padding: 3px 10px; margin-top: 10px; }
.cert-acceso { background: var(--gris-fondo); border-radius: 12px; padding: 26px 28px; margin: 8px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cert-acceso h3 { font-family: var(--font-titulo); font-size: 19px; font-weight: 800; color: var(--azul); margin-bottom: 8px; }
.cert-acceso p { font-size: 14.5px; line-height: 1.65; color: var(--texto); }
@media (max-width: 900px) { .cert-home, .cert-acceso { grid-template-columns: 1fr; gap: 24px; } .caminos { grid-template-columns: 1fr; } }

/* Anti-bot honeypot: off-screen for people, visible to naive bots */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Contacto: redes sociales */
.redes-box { margin-top: 24px; background: var(--gris-fondo); border-radius: 10px; padding: 20px; }
.redes-box h4 { font-family: var(--font-titulo); font-size: 14px; font-weight: 700; color: var(--azul); margin-bottom: 12px; }
.redes-links { display: flex; flex-wrap: wrap; gap: 12px; }
.red-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 6px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.red-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.red-whatsapp { background: #0e7a3d; }
.red-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.red-btn:hover { opacity: .9; color: #fff; }

/* Justified body copy on desktop; inline text-align (centered blocks) still wins */
@media (min-width: 601px) {
  section p, .qs-text p { text-align: justify; hyphens: none; }
  /* centered or narrow blocks stay as they were */
  .hero-inner p, .section-header p, .newsletter-inner p, .page-hero p, .oposi-feat p { text-align: inherit; hyphens: manual; }
  [style*="text-align:center"] p, [style*="text-align: center"] p { text-align: inherit; hyphens: manual; }
}

/* Mobile: open menu stays above the consent banner; banner takes less height */
@media (max-width: 1100px) {
  header:has(nav.open) { z-index: 9100; }
}
@media (max-width: 600px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .consent-text p { font-size: 12px; line-height: 1.45; }
  .consent-btns { flex-direction: row; gap: 8px; width: 100%; }
  .consent-btn { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: 13px; }
}

/* SVG icons replacing emoji */
.curso-card-img-placeholder svg, .noticia-img svg { width: 48px; height: 48px; color: var(--azul-claro); opacity: .55; }
div[style*="font-size:60px"] svg { width: 44px; height: 44px; color: var(--azul-claro); opacity: .55; }
div[style*="font-size:36px"] svg { width: 36px; height: 36px; color: var(--azul-claro); }
.oposi-feat-icon svg { width: 18px; height: 18px; color: var(--azul); }
.aula-icon svg { width: 22px; height: 22px; color: var(--azul); }
[style*="background:var(--amarillo)"] svg { color: var(--azul); }
.btn-primary svg, .btn-secondary svg, .btn-descargar svg, .btn-comprar svg, .btn-curso svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
h3 > svg, h4 > svg, .cert-card h3 svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; color: var(--azul-claro); }
.form-msg svg, .newsletter-msg svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.topbar-btn svg { width: 14px; height: 14px; }
.noticia-fecha svg, article svg { vertical-align: -3px; }
.curso-card-img-placeholder, .noticia-img { color: var(--azul-claro); }

/* Touch targets: at least 24x24 CSS px (WCAG 2.2 AA 2.5.8), 44 px on the main controls */
.topbar a, .topbar-btn, .topbar-socials a, .topbar-right > a { min-height: 28px; }
.topbar-right > a:not(.topbar-btn) { min-width: 28px; justify-content: center; }
.breadcrumb a { display: inline-block; padding: 4px 2px; min-height: 24px; }
.footer-col ul li a, .footer-legal a, .footer-legal-btn { display: inline-block; padding: 5px 0; min-height: 24px; }
.info-card a, .contacto-info-cards a { display: inline-block; padding: 4px 0; min-height: 24px; }
.hamburger { min-width: 44px; min-height: 44px; align-items: center; }
.rgpd-info a, .newsletter-legal a { display: inline-block; padding: 2px 0; }
input[type="checkbox"] { width: 24px; height: 24px; }
@media (max-width: 600px) {
  .topbar a, .topbar-btn { min-height: 36px; }
  .btn-descargar, .filter-btn { min-height: 44px; }
}

/* Remaining small targets */
.newsletter-check input, .form-check input, input[type="checkbox"] { width: 24px !important; height: 24px !important; flex-shrink: 0; }
.footer-contact-item a { display: inline-block; padding: 3px 0; }
.map-consent a, .form-check label a { display: inline-block; padding: 4px 0; }
.header-search button { min-width: 28px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; }

/* Mobile: shorter hero so the accreditation strip sits in the first screen, smaller WhatsApp float */
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .hero-inner p { margin-bottom: 24px; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

.cert-filtro { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.cert-filtro a { border: 1px solid var(--borde); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--azul); text-decoration: none; background: var(--blanco); }
.cert-filtro a:hover { border-color: var(--azul-claro); }
.cert-filtro a[aria-current] { border-color: var(--amarillo); box-shadow: inset 0 0 0 1px var(--amarillo); background: #FFF9EE; }
.cert-familia { font-family: var(--font-titulo); font-size: 20px; font-weight: 800; color: var(--azul); margin: 28px 0 16px; scroll-margin-top: 100px; }
