/*
 * What Django needs on top of the approved design. The design itself lives unchanged in
 * style.css and in css/pages/<page>.css, one file per design page. Loaded last.
 */

/* The brand, for the pages the design does not draw (the 500 page loads no page stylesheet) */
body,
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.theme-1 {
	--primary: #243c56;
	--primary-hover: #16283a;
	--secondary: #fdce42;
	--secondary-hover: #f0bd28;
	--primary-transparent: #eef2f7;
	--primary-100: #0e1b28;
}

/* Keyboard focus indicator. The theme removes every outline (style.css sets
   `* { outline: none }` and an `outline: none !important` reset on :focus
   whose strongest selector is `[type=email].form-control:focus`, 0-3-0), so
   keyboard users could not see where they were. This ring beats that reset:
   !important, the same specificity (hence :focus-visible three times) and a
   later stylesheet. Two tones, a dark ring between white halos, so it reads
   on white surfaces and on the navy header, hero and footer alike. */
:focus-visible:focus-visible:focus-visible {
	outline: 2px solid #0e1b28 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 6px #fff !important;
}

/* Skip link: visible only while focused */
.skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2000;
	padding: 8px 16px;
	background: #fff;
	color: #0e1b28;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* The menu toggles are buttons; the theme styled them as links */
header .navbar-header #mobile_btn {
	background: transparent;
	border: 0;
	padding: 0;
}

/* The mobile menu toggle is three equal bars over a «Menú» label, at the founder's request
   (2026-11-09), in place of the design's dots icon, which visitors did not read as a menu. The
   theme shows the button below 992px and draws staggered bars; these rules even them out. */
@media (max-width: 991.98px) {
	header .navbar-header #mobile_btn {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}
}

header .navbar-header #mobile_btn .bar-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
}

header .navbar-header #mobile_btn .bar-icon span,
header .navbar-header #mobile_btn .bar-icon span:nth-child(2),
header .navbar-header #mobile_btn .bar-icon span:nth-child(3) {
	float: none;
	width: 24px;
	height: 3px;
	margin: 0;
	border-radius: 2px;
	background-color: var(--primary);
}

header .navbar-header #mobile_btn .menu-toggle-label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: var(--primary);
}

.menu-header .menu-close {
	background: transparent;
	border: 0;
	padding: 0;
}

/* One header for every public page: the design's catalog, course and payment pages paint the
   sign-in pill yellow, and the founder asked for the home page's navy everywhere (2026-11-09). */
.btn-signin {
	background: #0e1b28;
	border-color: #0e1b28;
	color: #fff !important;
}
.btn-signin:hover,
.btn-signin:focus {
	background: #16283a;
	border-color: #16283a;
	color: #fff !important;
}

/* In-page targets: "Ver cursos" scrolls to the featured courses (Bootstrap's reboot already
   scrolls smoothly unless the visitor asks for reduced motion), and each form's post lands on
   its form. The fixed header never covers what the visitor is sent to. */
#cursos-destacados,
#mensaje,
#formulario {
	scroll-margin-top: 90px;
}

/* The contact and business forms. The business form pairs its fields like the contact form
   (founder, 2026-11-09), one per row on a phone. */
.emp-form-panel .emp-form-grid {
	display: flex;
	align-items: flex-end;
	gap: 16px;
}
.emp-form-panel .emp-form-grid .form-group {
	flex: 1 1 0;
	min-width: 0;
}
@media (max-width: 767.98px) {
	.emp-form-panel .emp-form-grid {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
}
/* The phone field's country selector (intl-tel-input) spans the field like the design's input. */
.site-phone-field .iti {
	display: block;
	width: 100%;
}
.site-field-hint {
	display: block;
	font-size: 13px;
	margin-top: 4px;
}
.site-field-error {
	color: #c0392b;
	font-size: 13px;
	margin-top: 4px;
}
.site-field-error ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-form-privacy {
	font-size: 13px;
	margin: 4px 0 16px;
}
.site-form-privacy a {
	text-decoration: underline;
}
.site-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ct-icon-tile .ct-whatsapp-icon {
	font-size: 22px;
	color: #25d366;
}

/* The theme hides the header buttons below 1200px, while the drawer's copy of
   the sign-in button only appears below 992px: keep the header one visible in
   between */
@media (min-width: 992px) and (max-width: 1199.98px) {
	header .header-btn .btn.btn-signin {
		display: inline-flex !important;
	}
}

/* The design's announcement band and about-page ornaments run past a phone's edge; the page
   never scrolls sideways. clip, not hidden, so the sticky header keeps working. */
.main-wrapper {
	overflow-x: clip;
}

@media (max-width: 767.98px) {
	.abt-why-cards {
		flex-direction: column;
	}
}

/* A design control with no backend yet keeps its look and does nothing */
.site-control-disabled,
[aria-disabled="true"].site-control-disabled:hover {
	cursor: not-allowed;
}

button.site-control-disabled:disabled,
input.site-control-disabled:disabled,
select.site-control-disabled:disabled,
textarea.site-control-disabled:disabled {
	cursor: not-allowed;
}

.site-form-disabled,
.site-form-disabled * {
	cursor: not-allowed;
}

.site-form-disabled .form-control:disabled,
.site-form-disabled .form-select:disabled,
.site-control-disabled .form-control:disabled {
	background-color: #fff;
	opacity: 1;
}

.site-form-disabled .form-check-input:disabled,
.site-control-disabled .form-check-input:disabled,
.site-form-disabled .form-check-input:disabled ~ .form-check-label,
.site-control-disabled .form-check-input:disabled ~ .form-check-label {
	opacity: 1;
}

.settings-tab.site-control-disabled:hover {
	color: inherit;
}

/* The page's one h1 where the design draws a smaller heading tag */
.course-hero-card h1 {
	color: #fff;
}

/* A price per registered currency: static/site/js/currency.js shows the chosen one */
[data-price-currency] {
	display: block;
}

[data-price-currency][hidden] {
	display: none;
}

/* Flash messages (django.contrib.messages) under the header */
.site-messages {
	padding-top: 16px;
}

.site-messages .alert:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.horizontal-slide .slide-list {
		animation: none;
	}
}

/* Reveal on scroll (static/site/js/home.js), in place of the design's wow.js, which is GPL. A
   .reveal box is hidden only after the script adds .js-reveal to <html>, which it does only when
   it can reveal the box again, so without JavaScript every box stays visible. Only opacity and
   transform change: a box not yet revealed stays focusable and in the accessibility tree, and
   the script reveals it at once (.is-instant) when focus moves into it. */
@media (prefers-reduced-motion: no-preference) {
	.js-reveal .reveal:not(.is-visible) {
		opacity: 0;
		transform: translateY(24px);
	}

	.js-reveal .reveal.is-visible:not(.is-instant) {
		animation: opus-reveal 0.8s ease-out;
	}
}

@keyframes opus-reveal {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* A course with no cover yet: the logo on the design's navy */
.course-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 266 / 165;
	background: #243c56;
	border-radius: inherit;
}

.course-img-placeholder img {
	width: 50%;
	max-width: 186px;
	height: auto;
	object-fit: contain;
}

.home-courses-empty {
	padding: 24px 0 40px;
	text-align: center;
	font-size: 18px;
}

/* A legal fact the client has not supplied yet (core/templatetags/legal_facts.py):
   highlighted so it cannot pass for real text, on white pages and the navy footer alike */
.legal-placeholder {
	background: #fdce42;
	color: #0e1b28;
	border-radius: 3px;
	padding: 0 4px;
	font-weight: 600;
}

/* Footer notice under the copyright: the operator line (partials/_legal_notices.html). The
   design's footer has no place for it. */
.footer-four .footer-notices {
	margin-top: 12px;
}

.footer-four .footer-notices p {
	color: #e7e7e7;
	font-size: 13px;
	line-height: 20px;
	margin-bottom: 4px;
}

@media (max-width: 991.98px) {
	.footer-four .footer-notices {
		text-align: center;
	}
}

.catalog-empty {
	padding: 24px 0 40px;
	text-align: center;
	font-size: 18px;
}

/* The hero's instructor link lands below the header. The header turns fixed once the page
   scrolls and leaves the flow, which moves the card up by the header's height after the jump. */
#sobre-el-instructor {
	scroll-margin-top: 120px;
}

/* The design draws the hero's instructor name as plain text; it is a link (founder, 2026-11-09),
   so it underlines on hover and on keyboard focus while keeping the design's look at rest */
.course-hero-meta a:hover,
.course-hero-meta a:focus-visible {
	text-decoration: underline;
}

/* Course description: the HTML the rich-text policy keeps (catalog/rich_text.py) */
.course-description p,
.course-description li {
	color: #5d636f;
	font-size: 15px;
	line-height: 1.7;
}

.course-description p {
	margin-bottom: 16px;
}

.course-description ul {
	list-style: disc;
	padding-left: 24px;
	margin-bottom: 16px;
}

.course-description li + li {
	margin-top: 6px;
}

.course-description h1,
.course-description h2,
.course-description h3 {
	color: #232a39;
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 8px;
}

/* «Forma parte de» on the course page (learning-paths R-LP-7) has no design: its links take the
   description's link look, so they read as links rather than list text */
.course-description a,
.course-learning-paths a {
	color: #3763c2;
	text-decoration: underline;
}

/* A path card on /rutas/ (learning-paths R-LP-5) has no design: the course card's paragraph slot
   is its one-line lesson count (style.css keeps it on one line), so the path's summary, up to 500
   characters, takes body text and three lines at most, keeping each row's cards even */
.course-item.course-item-two .course-content > p.path-card-summary {
	display: -webkit-box;
	overflow: hidden;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
}

.course-description > :first-child {
	margin-top: 0;
}

.course-description > :last-child {
	margin-bottom: 0;
}

/* «Lo que vas a aprender» or «Requisitos» after the description: the paragraph gap */
.course-description:not(:last-child) {
	margin-bottom: 16px;
}

/* The rest of what the rich-text editor writes (rich-text-editor R-CD-6): numbered and nested
   lists, a fourth heading level, quotations and code, in the paragraphs' colours and spacing */
.course-description ol {
	list-style: decimal;
	padding-left: 24px;
	margin-bottom: 16px;
}

.course-description li > ul,
.course-description li > ol {
	margin-top: 6px;
	margin-bottom: 0;
}

.course-description h4 {
	color: #232a39;
	font-size: 15px;
	font-weight: 700;
	margin: 16px 0 6px;
}

.course-description blockquote {
	border-left: 3px solid #e7e7e7;
	padding-left: 16px;
	margin: 0 0 16px;
	color: #5d636f;
	font-size: 15px;
	line-height: 1.7;
}

.course-description pre {
	white-space: pre-wrap;
	overflow-x: auto;
	background: #f5f6f8;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 0 0 16px;
	color: #232a39;
	font-size: 14px;
	line-height: 1.6;
}

.course-description code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

/* A Feather icon inlined as SVG (the filter heading on the catalog), sized like the icon font
   glyph it replaces */
.icon-inline {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

/* The cookie banner (partials/_cookie_consent.html): no design draws it, so it takes the
   footer's navy and the brand's yellow button. Fixed to the bottom until «Aceptar» closes it. */
.cookie-consent {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 1050;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	max-width: 960px;
	margin: 0 auto;
	padding: 16px 20px;
	border-radius: 10px;
	background: var(--primary-100, #0e1b28);
	box-shadow: 0 8px 24px rgba(14, 27, 40, 0.25);
	color: #fff;
	font-size: 14px;
	line-height: 21px;
}

.cookie-consent-text {
	flex: 1 1 320px;
	margin: 0;
	color: #fff;
}

.cookie-consent a {
	color: #fff;
	text-decoration: underline;
}

.cookie-consent-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.cookie-consent-accept {
	padding: 8px 24px;
	border: 0;
	border-radius: 6px;
	background: var(--secondary, #fdce42);
	color: #0e1b28;
	font-weight: 600;
}

.cookie-consent-accept:hover {
	background: var(--secondary-hover, #f0bd28);
}

/* Sobre nosotros: about-us.css gives each stat card the full row below 1200 px, but the row
   never wraps, so on a phone the three cards squeezed side by side and cut their figures */
@media (max-width: 1199.98px) {
	.abt-stats-row {
		flex-wrap: wrap;
	}
}

/* Sobre nosotros has no breadcrumb bar (founder, 2026-11-09): its intro title is the page h1,
   styled as the design styles that heading (about-us.css .abt-who-copy h2) */
.abt-who-copy h1.abt-who-title {
	color: #232a39;
	font-size: 32px;
	font-weight: 700;
	line-height: 48px;
	margin-bottom: 8px;
}

/* The presentation video's close control is a real button: keep the design's bare glyph above the player */
#videoModal .close-btn {
	background: none;
	border: 0;
	padding: 0;
	line-height: 1;
	z-index: 1;
}

/* «Guardar»: the form around a save control leaves the layout to its button, so the course page's
   button shares its row with «Compartir» and a card's heart sits where the design draws it */
.wishlist-btns > .saved-course-control,
.course-img .saved-course-control {
	display: contents;
}

/* A card's heart is a button where the design draws a link: it takes the link's colour, spacing
   and transition */
button.fav-icon {
	padding: 0;
	color: var(--gray-900);
	transition: all 0.5s ease;
}

/* Notifications page: «Eliminar todas» is a native disclosure whose panel asks before the POST,
   so the confirmation needs no script under the site's CSP */
.notif-confirm {
	position: relative;
}

.notif-confirm > summary {
	cursor: pointer;
	list-style: none;
}

.notif-confirm > summary::-webkit-details-marker {
	display: none;
}

.notif-confirm-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	width: max-content;
	max-width: 280px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e7e7e7;
	border-radius: 10px;
}

.notif-confirm-panel p {
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 24px;
	color: #232a39;
}

/* A row's «Eliminar» shows on hover or keyboard focus, as the design says; the design's
   visibility: hidden would keep it out of the tab order, so only its opacity hides it */
.notif-row-delete {
	visibility: visible;
}

/* Where nothing hovers (a tablet's touch screen), «Eliminar» always shows, as below 768px: an
   invisible button would still delete on a tap */
@media (hover: none) {
	.notif-row-delete {
		opacity: 1;
	}
}

/* The theme hides the header buttons below 576px. The student header's block holds the bell
   (R-AN-5), the only way to the notifications page on a phone, so it stays; .header-actions is
   only in the student header, so the public header keeps the theme's rule. It sits in the
   header's row, left of the menu toggle, instead of wrapping onto the profile card */
@media (max-width: 575.98px) {
	header .header-btn:has(> .header-actions) {
		display: flex !important;
		position: absolute;
		top: 50%;
		right: 44px;
		transform: translateY(-50%);
	}
}

/* One-level pages: a line saying what the page covers takes the breadcrumb's place under the
   title (W1), set as the design sets the catalog's line (course-grid.css .breadcrumb-bar p) */
.breadcrumb-bar .breadcrumb-lede {
	margin: 0;
	color: #fff;
	font-size: 14px;
	line-height: 24px;
}

/* A public page without the title bar gets the course page's header edge (course-details.css):
   a navy hairline at 5% and a soft shadow, so the header no longer runs into the content (W2).
   The sticky header keeps the theme's own shadow, and the student header (.header-actions, see
   above) the student area's look */
body:not(:has(.breadcrumb-bar)) header.header-two:not(.fixed):not(:has(.header-actions)) {
	border-bottom: 1px solid rgba(14, 27, 40, 0.05);
	box-shadow: 0 8px 16px -8px rgba(14, 27, 40, 0.05);
}

/* Blog post page (blog-details.css draws paragraphs and two-image rows only). A lone image in
   the text takes the row's full width */
.post-body-images img:only-child {
	width: 100%;
}

/* The post's categories are links, in the meta row's ink */
.post-meta-item a {
	color: inherit;
}

.post-meta-item a:hover,
.post-meta-item a:focus-visible {
	color: #3763c2;
}

/* The rest of what the rich-text editor writes, in the design's paragraph ink and size */
.post-body h2,
.post-body h3,
.post-body h4 {
	color: #232a39;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	margin: 8px 0 0;
}

.post-body h4 {
	font-size: 16px;
}

.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre {
	margin: 0;
	color: #737883;
	font-size: 14px;
	line-height: 24px;
}

.post-body ul {
	list-style: disc;
	padding-left: 24px;
}

.post-body ol {
	list-style: decimal;
	padding-left: 24px;
}

.post-body blockquote {
	border-left: 3px solid #e7e7e7;
	padding-left: 16px;
}

.post-body pre {
	white-space: pre-wrap;
	background: #f4f6f9;
	border-radius: 4px;
	padding: 12px 16px;
	color: #232a39;
}

.post-body a {
	color: #3763c2;
	text-decoration: underline;
}

/* A course card inside the text: the catalog grid's card, one grid column wide */
.post-body .blog-course-card {
	max-width: 304px;
	margin: 0;
}

/* The card's rules from course-grid.css, which the post page does not load: the thumbnail's
   266/165 ratio, the title over three lines and the «Gratis» pill's colours */
.course-item.course-item-two.blog-course-card .course-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 266 / 165;
}

.course-item.course-item-two.blog-course-card .course-content .title {
	-webkit-line-clamp: 3;
}

.course-item-two.blog-course-card .course-content .badge {
	background: #f4f6f9 !important;
	color: #232a39;
}

/* Not the text's links and headings: the card's title keeps the catalog's ink, spacing and hover,
   with no underline; the keyboard focus ring above still shows */
.post-body .blog-course-card a {
	color: inherit;
	text-decoration: none;
}

.post-body .blog-course-card a:hover {
	color: var(--secondary);
}

.post-body .blog-course-card .title {
	margin-top: 0;
	color: var(--gray-900);
	line-height: 1.3;
}
