/*
 * Tema visual "Alianza Chilena Contra la Depresion" — SOLO para el sitio
 * publico (paginas clasicas de Frappe: /cursos, /cursos/<curso>, /login).
 *
 * apps/lms (el SPA de Vue en /lms/*) se deja con el tema original de
 * frappe-ui, sin ningun override: es la seccion privada, solo para
 * usuarios logueados (ver achiduach_theme.setup.gate_lms_to_members), y no
 * comparte plantilla con estas paginas, asi que nada de este archivo la
 * alcanza.
 */

:root {
	--achiduach-red: #c8444a;
	--achiduach-red-dark: #933136;
	--achiduach-red-light: #f5c4c0;
	--achiduach-ink: #323440;
	--achiduach-bg: #f7f4f3;
	--ach-shadow-sm: 0 1px 3px rgba(50, 20, 20, 0.06);
	--ach-shadow-md: 0 10px 24px rgba(50, 20, 20, 0.08);
	--ach-shadow-lg: 0 24px 48px rgba(50, 20, 20, 0.14);
	--ach-shadow-red: 0 14px 28px rgba(200, 68, 74, 0.28);
}

body {
	background-color: var(--achiduach-bg);
}

/* --- Barra de navegacion clasica de Frappe (templates/includes/navbar) ---
   top_bar_items (Cursos/Sobre nosotros/Contacto) y call_to_action ("Mis
   cursos") se configuran como datos en achiduach_theme.setup.apply_branding
   — este archivo solo los pinta, no inyecta HTML. */
.navbar {
	background-color: #ffffff !important;
	border: none;
	box-shadow: 0 2px 10px rgba(50, 20, 20, 0.06);
}
.navbar .navbar-brand img {
	max-height: 50px;
}
.navbar .nav-link,
.navbar-brand span {
	color: #444444 !important;
	font-weight: 600;
	font-size: 0.95rem;
}
.navbar .nav-link:hover {
	color: var(--achiduach-red) !important;
}
.navbar .nav-link.ach-active {
	color: var(--achiduach-red) !important;
}
.navbar .navbar-cta {
	background: var(--achiduach-red);
	color: #ffffff !important;
	font-weight: 700;
	border: none;
	border-radius: 999px;
	padding: 10px 22px;
	margin-inline-start: 16px;
	text-decoration: none;
	align-self: center;
	transition: background-color 0.15s ease;
}
.navbar .navbar-cta:hover {
	background: var(--achiduach-red-dark);
	color: #ffffff !important;
}

/* --- Footer (Website Settings.copyright / .footer_powered) --- */
.footer-powered {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.ach-footer-logo {
	margin-left: 5px;
    height: 20px;
    width: auto;
    vertical-align: sub;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}
.ach-footer-logo:hover {
	opacity: 1;
}

/* --- Login / registro --- */
body:has(#page-login) {
	background: linear-gradient(180deg, var(--achiduach-bg) 0%, #fff 340px);
}
#page-login .page-card {
	border-radius: 18px;
	box-shadow: var(--ach-shadow-lg);
	border: none;
}
#page-login button.btn-login.btn-default {
	background: linear-gradient(135deg, var(--achiduach-red), var(--achiduach-red-dark));
	border-color: var(--achiduach-red);
	color: #ffffff;
	border-radius: 8px;
	box-shadow: var(--ach-shadow-red);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#page-login button.btn-login.btn-default:hover {
	background: linear-gradient(135deg, var(--achiduach-red-dark), var(--achiduach-red-dark));
	border-color: var(--achiduach-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 18px 32px rgba(147, 49, 54, 0.32);
}

/* --- Layout compartido --- */
.ach-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px 60px;
}
.ach-static-page {
	padding-top: 50px;
}
.ach-static-page h1 {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0 0 16px;
}
.ach-static-page h2 {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 28px 0 12px;
}
.ach-static-page ul:not(.ach-help-list) {
	color: #444444;
	line-height: 1.7;
	padding-left: 20px;
}
.ach-help-card {
	border-top: 4px solid var(--achiduach-red);
}
.ach-help-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}
.ach-help-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	padding: 12px 0;
	border-top: 1px solid #f0ebea;
}
.ach-help-list li:first-child {
	border-top: none;
}
.ach-help-list strong {
	color: var(--achiduach-ink);
}
.ach-help-list span {
	color: #74706f;
	font-size: 0.9rem;
}
.ach-surface {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: var(--ach-shadow-md);
	padding: 36px 40px;
}
.ach-cta-button {
	display: inline-block;
	background: linear-gradient(135deg, var(--achiduach-red), var(--achiduach-red-dark));
	color: #ffffff;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 10px;
	text-decoration: none;
	text-align: center;
	box-shadow: var(--ach-shadow-red);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ach-cta-button:hover {
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(147, 49, 54, 0.34);
}
.ach-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--achiduach-red);
	margin-bottom: 10px;
}
.ach-eyebrow-light {
	color: rgba(255, 255, 255, 0.85);
}

/* --- Listado de cursos (/cursos) --- */
.ach-hero {
	position: relative;
	background-color: var(--achiduach-ink);
	background-image: linear-gradient(120deg, rgba(20, 22, 35, 0.92), rgba(147, 49, 54, 0.85)),
		url('/assets/achiduach_theme/images/hero.jpg');
	background-size: cover;
	background-position: center;
	padding: 40px 0px 40px;
	overflow: hidden;
}
.ach-hero-overlay {
	text-align: left;
	padding-left: 0;
	padding-right: 0;
}
.ach-hero-overlay h1 {
	color: #ffffff;
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 10px 0 16px;
}
.ach-hero-overlay p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.05rem;
	line-height: 1.6;
	margin-bottom: 30px;
}
.ach-hero-cta {
	display: inline-block;
	background: #ffffff;
	color: var(--achiduach-red);
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: var(--ach-shadow-md);
	transition: transform 0.15s ease, color 0.15s ease;
}
.ach-hero-cta:hover {
	transform: translateY(-2px);
	color: var(--achiduach-red-dark);
}
.ach-hero-wave {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 70px;
	display: block;
}
.ach-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.ach-section-header h2 {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 6px;
}
.ach-section-header p {
	margin: 0;
}
.ach-course-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 32px;
}
.ach-course-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #ffffff;
	box-shadow: var(--ach-shadow-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ach-course-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ach-shadow-lg);
}
.ach-course-card-image-wrap {
	position: relative;
}
.ach-course-card-image {
	height: 170px;
	background-color: var(--achiduach-ink);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-weight: 700;
	text-align: center;
	padding: 12px;
}
.ach-badge-rating {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #ffffff;
	color: var(--achiduach-red);
	font-weight: 700;
	font-size: 0.8rem;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: var(--ach-shadow-sm);
}
.ach-status-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: var(--ach-shadow-sm);
}
.ach-status-owned {
	background: #1e7e34;
}
.ach-status-progress {
	background: #1c6dd0;
}
.ach-status-new {
	background: #d97706;
}
.ach-status-popular {
	background: #7c3aed;
}
.ach-badge-owned {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #1e7e34;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: var(--ach-shadow-sm);
}
.ach-mis-cursos-link {
	text-align: right;
	margin-bottom: 20px;
}
.ach-course-card-body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.ach-course-card-body h3 {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
}
.ach-course-card-body p {
	color: #74706f;
	font-size: 0.9rem;
	flex: 1;
	line-height: 1.5;
}
.ach-course-card-meta {
	display: flex;
	gap: 14px;
	font-size: 0.8rem;
	color: #96908e;
	margin: 6px 0 16px;
}
.ach-course-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f0ebea;
}
.ach-course-price {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--achiduach-red);
	background: rgba(200, 68, 74, 0.1);
	padding: 5px 12px;
	border-radius: 999px;
}
.ach-empty {
	text-align: center;
	color: #74706f;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: var(--ach-shadow-md);
	padding: 60px 0;
}

/* Avatar + nombre de instructor, reutilizado en la tarjeta de listado
   (mas chico), en la tarjeta lateral del detalle y en la card de instructor. */
.ach-instructor {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	font-weight: 600;
}
.ach-instructor img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--ach-shadow-sm);
}
.ach-instructor-sm {
	font-size: 0.8rem;
	font-weight: 500;
	color: #74706f;
}
.ach-instructor-sm img {
	width: 24px;
	height: 24px;
}

/* --- Detalle de curso (/cursos/<curso>) --- */
.ach-course-hero-band {
	background-color: var(--achiduach-ink);
	background-image: linear-gradient(135deg, var(--achiduach-ink), var(--achiduach-red-dark));
	padding: 44px 0 130px;
	color: #ffffff;
	margin-bottom: -100px;
}
.ach-hero-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}
.ach-breadcrumb {
	display: inline-block;
	color: var(--achiduach-red);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}
.ach-hero-links .ach-breadcrumb {
	margin-bottom: 0;
}
.ach-breadcrumb-light {
	color: rgba(255, 255, 255, 0.85);
}
.ach-owned-badge {
	display: inline-block;
	background: rgba(40, 167, 69, 0.12);
	color: #1e7e34;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 8px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
}
.ach-course-hero-band h1 {
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	max-width: 640px;
}
.ach-course-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 0.9rem;
	color: #555555;
	margin-bottom: 14px;
}
.ach-course-meta-light {
	color: rgba(255, 255, 255, 0.85);
}
.ach-course-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ach-tag {
	background: #f2f2f2;
	color: #444444;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.8rem;
	font-weight: 600;
}
.ach-tag-light {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}
.ach-course-page-grid {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}
.ach-course-intro {
	font-size: 1.15rem;
	color: #333333;
	margin: 0 0 20px;
	line-height: 1.6;
}
.ach-course-main h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 36px 0 16px;
}
.ach-course-main h2:first-of-type {
	margin-top: 0;
}
.ach-course-main h2 .ach-muted {
	font-size: 0.85rem;
	font-weight: 400;
	margin-left: 10px;
}
.ach-muted {
	color: #96908e;
}
.ach-course-description {
	color: #444444;
	line-height: 1.7;
}

/* Acordeon de contenido: <details>/<summary> nativos, sin JS. */
.ach-outline {
	border: 1px solid #eee5e4;
	border-radius: 14px;
	overflow: hidden;
}
.ach-outline-chapter {
	border-bottom: 1px solid #eee5e4;
}
.ach-outline-chapter:last-child {
	border-bottom: none;
}
.ach-outline-chapter summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.15s ease;
}
.ach-outline-chapter summary:hover {
	background-color: var(--achiduach-bg);
}
.ach-outline-chapter summary::-webkit-details-marker {
	display: none;
}
.ach-outline-title {
	flex: 1;
}
.ach-outline-chevron {
	display: inline-block;
	color: var(--achiduach-red);
	transition: transform 0.15s ease;
}
.ach-outline-chapter[open] .ach-outline-chevron {
	transform: rotate(90deg);
}
.ach-outline-chapter ul {
	margin: 0;
	padding: 0 20px 16px 46px;
	color: #6b6665;
}
.ach-outline-chapter li {
	padding: 5px 0;
}

/* --- Barra lateral del detalle --- */
.ach-course-sidebar {
	position: sticky;
	top: 20px;
}
.ach-sidebar-media-card {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--ach-shadow-lg);
	background: #ffffff;
	margin-bottom: 20px;
}
.ach-sidebar-media {
	height: 190px;
	background-color: var(--achiduach-ink);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ach-play-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--achiduach-red);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.ach-sidebar-card {
	padding: 24px;
}
.ach-course-price-tag {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--achiduach-red);
	margin-bottom: 16px;
}
.ach-feature-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	color: #444444;
	font-size: 0.9rem;
}
.ach-feature-list li {
	padding: 6px 0;
}
.ach-feature-list li::marker {
	content: '';
}
.ach-sidebar-card .ach-cta-button {
	width: 100%;
}
.ach-instructor-card {
	background: #ffffff;
	border-radius: 18px;
	box-shadow: var(--ach-shadow-md);
}

@media (max-width: 760px) {
	.ach-course-page-grid {
		grid-template-columns: 1fr;
	}
	.ach-course-sidebar {
		position: static;
	}
	.ach-surface {
		padding: 26px;
	}
}

.navbar .navbar-nav .nav-item.active {
    border-bottom: none;
}

.web-footer {
	padding: 0;
    min-height: 0;
}

/* --- Paginas estaticas (/sobre-nosotros, /contacto) --- */
.ach-static-hero {
	position: relative;
	background-color: var(--achiduach-ink);
	background-image: linear-gradient(135deg, rgba(20, 22, 35, 0.94), rgba(147, 49, 54, 0.88));
	padding: 56px 0 60px;
	color: #ffffff;
}
.ach-static-hero h1 {
	color: #ffffff;
	font-size: 2.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 8px 0 14px;
	max-width: 680px;
}
.ach-static-hero p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 640px;
	margin: 0;
}
.ach-static-page {
	padding-top: 44px;
}

.ach-about-grid,
.ach-contact-grid {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}
.ach-surface h2:first-child,
.ach-about-main h2:first-child {
	margin-top: 0;
}
.ach-surface h3 {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
}

.ach-quote-card {
	border-left: 4px solid var(--achiduach-red);
	background: var(--achiduach-bg);
	border-radius: 0 14px 14px 0;
	padding: 18px 22px;
	font-style: italic;
	color: #444444;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 20px 0;
}

.ach-icon-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin-top: 20px;
}
.ach-icon-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: var(--ach-shadow-sm);
	padding: 20px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ach-icon-card:hover {
	box-shadow: var(--ach-shadow-md);
	transform: translateY(-2px);
}
.ach-icon-circle {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(200, 68, 74, 0.1);
	color: var(--achiduach-red);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ach-icon-circle svg {
	width: 22px;
	height: 22px;
}
.ach-icon-card h3 {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
}
.ach-icon-card p {
	margin: 0;
	color: #74706f;
	font-size: 0.88rem;
	line-height: 1.5;
}

.ach-stat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ach-stat-list li {
	padding: 14px 0;
	border-top: 1px solid #f0ebea;
}
.ach-stat-list li:first-child {
	border-top: none;
	padding-top: 0;
}
.ach-stat-list strong {
	display: block;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--achiduach-red);
}
.ach-stat-list span {
	font-size: 0.85rem;
	color: #74706f;
}

/* Grilla de lineas de ayuda */
.ach-help-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 20px;
}
.ach-help-card-item {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: var(--ach-shadow-sm);
	padding: 20px 16px;
	text-align: center;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ach-help-card-item:hover {
	box-shadow: var(--ach-shadow-md);
	transform: translateY(-2px);
}
.ach-help-card-item .ach-icon-circle {
	margin: 0 auto 12px;
}
.ach-help-card-item h3 {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--achiduach-ink);
}
.ach-help-number {
	display: block;
	color: var(--achiduach-red);
	font-weight: 800;
	font-size: 1rem;
	margin-top: 6px;
}
.ach-help-card-item p {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: #96908e;
	line-height: 1.4;
}

/* Formulario de contacto */
.ach-form-group {
	margin-bottom: 18px;
}
.ach-form-group label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 6px;
	color: var(--achiduach-ink);
}
.ach-form-group input,
.ach-form-group textarea {
	width: 100%;
	border: 1px solid #e6e0df;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.92rem;
	font-family: inherit;
	color: var(--achiduach-ink);
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ach-form-group input:focus,
.ach-form-group textarea:focus {
	outline: none;
	border-color: var(--achiduach-red);
	box-shadow: 0 0 0 3px rgba(200, 68, 74, 0.12);
}
.ach-form-group textarea {
	resize: vertical;
	min-height: 130px;
}
.ach-contact-form button {
	border: none;
	cursor: pointer;
}
.ach-contact-form button[disabled] {
	opacity: 0.6;
	cursor: default;
}
.ach-form-note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	min-height: 1.2em;
}
.ach-form-note.ach-form-success {
	color: #1e7e34;
}
.ach-form-note.ach-form-error {
	color: var(--achiduach-red-dark);
}

.ach-contact-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}
.ach-contact-info-item:not(:last-child) {
	border-bottom: 1px solid #f0ebea;
}
.ach-contact-info-item .ach-icon-circle {
	width: 38px;
	height: 38px;
}
.ach-contact-info-item .ach-icon-circle svg {
	width: 18px;
	height: 18px;
}
.ach-contact-info-item strong {
	display: block;
	font-size: 0.85rem;
	color: var(--achiduach-ink);
}
.ach-contact-info-item span:not(.ach-icon-circle) {
	font-size: 0.85rem;
	color: #74706f;
}
.ach-contact-sidebar .ach-surface + .ach-surface {
	margin-top: 20px;
}

@media (max-width: 900px) {
	.ach-help-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 760px) {
	.ach-about-grid,
	.ach-contact-grid {
		grid-template-columns: 1fr;
	}
	.ach-icon-card-grid {
		grid-template-columns: 1fr;
	}
	.ach-static-hero h1 {
		font-size: 1.8rem;
	}
}