:root {
  --amarillo: #F5A623; --azul: #1A3A5C; --azul-claro: #2563A8;
  --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; }
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-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: 11px; font-weight: 600; text-decoration: none; transition: background .2s; }
.topbar-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.topbar-btn-plataforma { background: var(--amarillo) !important; color: var(--azul) !important; font-weight: 700; }
.topbar-btn-plataforma:hover { background: #e8941a !important; color: var(--azul) !important; }
.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 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; }
nav { display: flex; align-items: center; gap: 4px; }
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; }
nav a:hover, nav a.active { color: var(--azul-claro); 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 input::placeholder { color: rgba(26,58,92,0.6); }
.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') 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: #e8941a; 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-claro); font-size: 11px; 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); }
.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: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--azul-claro); 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: 11px; 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: #e8941a; }
.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: 11px; color: var(--amarillo); 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; 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: #e8941a; }
.newsletter-legal { font-size: 11px; 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 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); margin-top: 1px; }
.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 { display: flex; gap: 16px; align-items: center; }
.acred-badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 6px 12px; font-size: 10px; font-weight: 600; color: #a0aec0; text-align: center; line-height: 1.3; }
.acred-badge strong { display: block; color: #fff; font-size: 11px; }

/* 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') 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.55); margin-bottom: 12px; }
.breadcrumb a { color: var(--amarillo); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* 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: 20px; height: 20px; border: 2px solid var(--azul-claro); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--azul-claro); flex-shrink: 0; }
.submenu-text h5 { 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); }
.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-claro); margin-bottom: 3px; }
.qs-service p { font-size: 12px; color: var(--texto-suave); line-height: 1.4; }

/* 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 { 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); 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: 11px; 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); 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: 11px; 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-claro); 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); 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-claro); 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-claro); 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: 42px; font-weight: 800; color: var(--azul); margin-bottom: 16px; }
.precio-box .precio small { font-size: 16px; color: var(--texto-suave); }
.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: #e8941a; }
.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-claro); 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 { 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-claro); 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-claro); 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 { 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-claro); 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-claro); 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-claro); }
.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: #e8941a; }
.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; }
}
@media (max-width: 600px) {
  .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; }
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed; top: 71px; 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 - 71px);
  }
  nav.open { display: flex; }
  nav a { font-size: 16px; font-weight: 600; padding: 15px 8px; border-bottom: 1px solid var(--borde); border-radius: 0; }
  nav a:last-child { border-bottom: none; }
  nav a.active { color: var(--azul-claro); background: none; }
  nav a:hover { background: none; color: var(--azul-claro); }
}
