/* ===== HOME PAGE PROFESSIONAL STYLES ===== */

/* Hero Section */

.hero-section {
	background: var(--hero-overlay), url('../Multimedia/school_image.jpeg');
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	min-height: 700px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	padding: 100px var(--spacing-lg);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: 1;
}

.hero-section .container {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.hero-section h1 {
	color: var(--white);
	font-size: 60px;
	margin-bottom: var(--spacing-lg);
	animation: fadeInDown 0.8s ease-out;
	letter-spacing: -1px;
	line-height: 1.15;
	font-weight: 800;
}

.hero-section .subtitle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	margin: 0 auto var(--spacing-md);
	color: var(--white);
	font-size: 16px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(4px);
	letter-spacing: 0.6px;
	animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Styles Section */
.styles-section {
	background: var(--lighter);
	padding: var(--spacing-2xl) 0;
}

.styles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--spacing-lg);
}

.style-card {
	background: var(--white);
	padding: var(--spacing-xl);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
}

.style-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-6px);
	border-color: var(--primary);
}

.style-card h3 {
	font-size: 20px;
	margin-bottom: var(--spacing-sm);
}

.style-card h3 .hanzi {
	color: var(--accent);
	font-weight: 800;
	letter-spacing: 0.5px;
}

.style-card p {
	color: var(--text-light);
	font-size: 14px;
	line-height: 1.7;
}

.styles-section .cta-inline .program-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
	color: var(--white);
	font-weight: 800;
	letter-spacing: 0.3px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(0, 0, 0, 0.08);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.styles-section .cta-inline .program-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
	filter: saturate(1.05);
}

/* Linajes list */
.about-preview-list li {
	list-style: none;
	margin-bottom: 10px;
	color: var(--lighter);
}

/* Horarios preview */
.horarios-preview {
	padding: var(--spacing-2xl) 0;
	background: linear-gradient(135deg, rgba(193, 24, 24, 0.04), rgba(226, 164, 25, 0.06));
}

.schedule-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--spacing-lg);
}

.schedule-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-sm);
}

.schedule-card h4 {
	margin-bottom: var(--spacing-sm);
	color: var(--primary-dark);
}

.schedule-card p {
	margin: 4px 0;
	color: var(--text-light);
}

.schedule-card .chip {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(193, 24, 24, 0.08);
	color: var(--primary-dark);
	font-size: 12px;
	margin-top: 10px;
}

.hero-section p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	margin-bottom: var(--spacing-xl);
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	animation: fadeInUp 0.8s ease-out 0.4s backwards;
	line-height: 1.8;
}

.hero-buttons {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons .button {
	background: var(--white);
	color: var(--primary);
	border: 2px solid var(--white);
	font-weight: 700;
	padding: 16px 40px;
}

.hero-buttons .button:hover {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-buttons .button-primary {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
	box-shadow: none;
}

.hero-buttons .button-primary:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	box-shadow: none;
}

/* Philosophy Section */
.philosophy-section {
	background: linear-gradient(135deg, var(--lighter) 0%, var(--white) 100%);
	padding: var(--spacing-2xl) 0;
	position: relative;
	overflow: hidden;
}

.philosophy-section::before {
	content: '';
	position: absolute;
	top: 0;
	right: -50%;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(122, 191, 43, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.philosophy-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

.philosophy-content .quote {
	font-size: 32px;
	font-weight: 600;
	color: var(--primary-dark);
	margin-bottom: var(--spacing-lg);
	line-height: 1.6;
	position: relative;
	padding: 0 40px;
}

.philosophy-content .quote::before,
.philosophy-content .quote::after {
	content: '"';
	font-size: 60px;
	color: var(--accent);
	opacity: 0.4;
	position: absolute;
}

.philosophy-content .quote::before {
	left: 0;
	top: -10px;
}

.philosophy-content .quote::after {
	right: 0;
	bottom: -20px;
}

/* How We Work Section */
.how-we-work {
	background: var(--white);
	padding: var(--spacing-2xl) 0;
	position: relative;
	overflow: hidden;
}

.how-we-work h2 {
	text-align: center;
	margin-bottom: var(--spacing-2xl);
	position: relative;
	z-index: 2;
}

.how-we-work h2::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--accent), transparent);
	margin: var(--spacing-md) auto 0;
	border-radius: 2px;
}

.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-xl);
	position: relative;
	z-index: 2;
}

.process-card {
	background: var(--white);
	padding: var(--spacing-xl);
	border-radius: var(--radius-lg);
	border: 2px solid var(--border);
	text-align: center;
	transition: all var(--transition-normal);
	position: relative;
	overflow: hidden;
}

.process-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--primary-light));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-normal);
}

.process-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-lg);
	transform: translateY(-8px);
}

.process-card:hover::before {
	transform: scaleX(1);
}

.process-number {
	width: 60px;
	height: 60px;
	background: var(--white);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	margin: 0 auto var(--spacing-lg);
	border: 3px solid var(--accent);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
	padding: 8px;
}

.process-card h3 {
	font-size: 20px;
	margin-bottom: var(--spacing-md);
	color: var(--primary-dark);
}

.process-card p {
	color: var(--text-light);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

/* About Preview Section */
.about-preview {
	background:
		linear-gradient(
			135deg,
			rgba(28, 42, 22, 0.95) 0%,
			rgba(97, 151, 2, 0.88) 60%,
			rgba(255, 189, 89, 0.12) 100%
		);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--white);
	padding: var(--spacing-2xl) 0;
	position: relative;
	overflow: hidden;
}

.about-preview::before {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	top: -200px;
	right: -200px;
	pointer-events: none;
	z-index: 1;
}

.about-preview::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url('../Multimedia/math_overlay.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.35;
	mix-blend-mode: normal;
	pointer-events: none;
	z-index: 1;
}

.about-preview-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-xl);
	align-items: center;
	position: relative;
	z-index: 2;
}

.about-preview-text h2,
.about-preview-text h3 {
	color: var(--white);
}

.about-preview-text p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
}

.about-preview-list {
	list-style: none;
	margin-bottom: var(--spacing-lg);
}

.about-preview-list li {
	padding: var(--spacing-sm) 0;
	padding-left: 30px;
	position: relative;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
}

.about-preview-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: bold;
	font-size: 18px;
}

.about-preview-image {
	position: relative;
	height: 400px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 189, 89, 0.12));
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(6px);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atom-illustration {
	width: 100%;
	max-width: 420px;
	height: auto;
	filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25));
}

.atom-illustration ellipse {
	stroke-linecap: round;
}

.electron {
	fill: var(--accent);
	filter: drop-shadow(0 0 8px rgba(243,156,18,0.6));
}

.orbit { transform-origin: 50% 50%; }
.orbit-a { animation: orbit-spin 14s linear infinite; }
.orbit-b { animation: orbit-spin 18s linear infinite reverse; }
.orbit-c { animation: orbit-spin 22s linear infinite; }

@keyframes orbit-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE: HOME ===== */
@media (max-width: 1100px) {
	.about-preview-content { grid-template-columns: 1fr; text-align: center; }
	.about-preview-text h2 { font-size: 40px; }
	.about-preview-text p { max-width: 760px; margin: 0 auto; }
	.about-preview-image { height: 360px; max-width: 620px; margin: 0 auto; }
}

@media (max-width: 992px) {
	.hero-section { background-attachment: scroll; }
}

@media (max-width: 900px) {
	.hero-section { padding: 80px var(--spacing-md); min-height: 500px; }
	.hero-section h1 { font-size: 42px; }
	.hero-section .subtitle { font-size: 15px; }
	.about-preview { padding: var(--spacing-xl) 0; }
	.about-preview-image { height: 320px; }
}

@media (max-width: 768px) {
	.hero-section { padding: 56px var(--spacing-md); min-height: 460px; }
	.hero-section h1 { font-size: 34px; }
	.hero-section .subtitle { font-size: 14px; }
	.process-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.about-preview-text h2 { font-size: 34px; }
	.about-preview-text p { font-size: 14px; }
	.about-preview-image { height: 280px; }
}

@media (max-width: 560px) {
	.hero-section { padding: 44px var(--spacing-sm); }
	.hero-section h1 { font-size: 28px; }
	.hero-section .subtitle { font-size: 13px; }
	.about-preview-image { height: 240px; border-radius: var(--radius-md); }
	.about-preview { padding: var(--spacing-lg) 0; }
}

@media (orientation: portrait) and (max-width: 900px) {
	.hero-section h1 { font-size: 26px; }
	.hero-section .subtitle { font-size: 12px; }
	.hero-section p { font-size: 14px; }
	.process-card p { font-size: 13px; }
	.about-preview-text h2 { font-size: 30px; }
	.about-preview-text h3 { font-size: 20px; }
	.about-preview-text p { font-size: 14px; }
	.about-preview-list li { font-size: 13px; }
	.about-preview-image { height: 220px; max-width: 520px; margin: 0 auto; }
}

/* CTA Section */
.cta-section {
	background: var(--hero-overlay), url('../Multimedia/school_2_image.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--white);
	padding: var(--spacing-2xl) var(--spacing-lg);
	text-align: center;
	border-radius: var(--radius-lg);
	margin: var(--spacing-2xl) 0;
	position: relative;
	overflow: hidden;
}

.cta-section h2 {
	color: var(--white);
	margin-bottom: var(--spacing-md);
	font-size: 42px;
}

.cta-section p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	margin-bottom: var(--spacing-lg);
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cta-section .button {
	background: var(--white);
	color: var(--primary-dark);
	border: none;
	font-weight: 700;
	box-shadow: var(--shadow-md);
}

.cta-section .button:hover {
	background: rgba(255, 255, 255, 0.9);
	color: var(--primary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section {
		min-height: 500px;
		padding: 60px var(--spacing-lg);
	}

	.hero-section h1 {
		font-size: 36px;
	}

	.hero-section .subtitle {
		font-size: 14px;
	}

	.hero-section p {
		font-size: 16px;
	}

	.hero-buttons {
		flex-direction: column;
	}

	.hero-buttons .button {
		width: 100%;
	}

	.philosophy-content .quote {
		font-size: 24px;
		padding: 0 20px;
	}

	.process-grid {
		grid-template-columns: 1fr;
	}

	.about-preview-content {
		grid-template-columns: 1fr;
	}

	.about-preview-image {
		height: 300px;
	}

	.cta-section h2 {
		font-size: 28px;
	}

	.cta-section p {
		font-size: 16px;
	}
}
