/**
 * Speakya Home Page Styles
 *
 * Estilos profesionales para la página de inicio de Speakya
 * Diseño responsive con colores corporativos
 *
 * @package Astra
 * @since 1.0.0
 */

/* ============================================
   Variables CSS - Colores Corporativos
   ============================================ */
:root {
	--speakya-blue: #0078FF;
	--speakya-green: #9FD438;
	--speakya-dark: #1a1a1a;
	--speakya-gray: #666666;
	--speakya-light-gray: #f5f5f5;
	--speakya-white: #ffffff;
	--speakya-purple: #6B46C1;
}

/* ============================================
   Reset y Contenedor Base
   ============================================ */
.speakya-home-page {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

.speakya-home-page .site-main {
	padding: 0;
	margin: 0;
}

.speakya-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.speakya-home-hero {
	background-image: url('./assets/images/hero-home.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--speakya-white);
	padding: 100px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.speakya-home-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5); /* Overlay oscuro para que el texto se lea bien */
	z-index: 1;
}

.speakya-home-hero .hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}

.speakya-home-hero .hero-title {
	font-size: 56px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: -1px;
}

.speakya-home-hero .hero-subtitle {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 20px;
	color: var(--speakya-green);
}

.speakya-home-hero .hero-description {
	font-size: 18px;
	line-height: 1.7;
	margin: 0 0 40px;
	opacity: 0.95;
}

.speakya-home-hero .hero-cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================
   Botones Globales
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-secondary-large {
	display: inline-block;
	padding: 16px 40px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	text-align: center;
}

.btn-primary,
.btn-primary-large {
	background: var(--speakya-green);
	color: var(--speakya-dark);
}

.btn-primary:hover,
.btn-primary-large:hover {
	background: #8BC42A;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(159, 212, 56, 0.3);
}

.btn-secondary,
.btn-secondary-large {
	background: transparent;
	color: var(--speakya-white);
	border: 2px solid var(--speakya-white);
}

.btn-secondary:hover,
.btn-secondary-large:hover {
	background: var(--speakya-white);
	color: var(--speakya-blue);
	transform: translateY(-2px);
}

.btn-primary-large,
.btn-secondary-large {
	padding: 18px 50px;
	font-size: 18px;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-title {
	font-size: 42px;
	font-weight: 800;
	color: var(--speakya-dark);
	margin: 0 0 15px;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.section-subtitle {
	font-size: 18px;
	color: var(--speakya-gray);
	margin: 0;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ============================================
   ¿QUÉ ES SPEAKYA? SECTION
   ============================================ */
.speakya-home-what {
	padding: 80px 0;
	background: var(--speakya-white);
}

.what-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.what-item {
	text-align: center;
	padding: 40px 30px;
	background: var(--speakya-light-gray);
	border-radius: 20px;
	transition: all 0.3s ease;
}

.what-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.what-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.what-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 15px;
}

.what-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--speakya-gray);
	margin: 0;
}

/* ============================================
   CÓMO FUNCIONA SECTION
   ============================================ */
.speakya-home-how {
	padding: 80px 0;
	background: var(--speakya-light-gray);
}

.how-steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.step-item {
	display: flex;
	gap: 25px;
	background: var(--speakya-white);
	padding: 35px;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.step-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
	font-size: 48px;
	font-weight: 900;
	color: var(--speakya-blue);
	line-height: 1;
	flex-shrink: 0;
}

.step-content {
	flex: 1;
}

.step-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 12px;
}

.step-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--speakya-gray);
	margin: 0;
}

/* ============================================
   NIVELES SECTION
   ============================================ */
.speakya-home-levels {
	padding: 80px 0;
	background: var(--speakya-white);
}

.levels-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

.level-card {
	background: var(--speakya-white);
	border: 2px solid var(--speakya-light-gray);
	border-radius: 15px;
	padding: 35px 25px;
	text-align: center;
	transition: all 0.3s ease;
}

.level-card:hover {
	border-color: var(--speakya-blue);
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 120, 255, 0.15);
}

.level-badge {
	font-size: 36px;
	font-weight: 900;
	color: var(--speakya-blue);
	margin: 0 0 15px;
}

.level-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 12px;
}

.level-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--speakya-gray);
	margin: 0;
}

.levels-cta {
	text-align: center;
}

/* ============================================
   TESTIMONIOS SECTION
   ============================================ */
.speakya-home-testimonials {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--speakya-blue) 0%, var(--speakya-purple) 100%);
	color: var(--speakya-white);
}

.speakya-home-testimonials .section-title,
.speakya-home-testimonials .section-subtitle {
	color: var(--speakya-white);
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.testimonial-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 15px;
	padding: 35px;
	transition: all 0.3s ease;
}

.testimonial-card:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-5px);
}

.testimonial-stars {
	font-size: 20px;
	margin-bottom: 20px;
}

.testimonial-text {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 25px;
	font-style: italic;
}

.testimonial-author {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 20px;
}

.author-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 5px;
}

.author-level {
	font-size: 14px;
	margin: 0;
	opacity: 0.8;
}

/* ============================================
   PLANES Y PRECIOS SECTION
   ============================================ */
.speakya-home-pricing {
	padding: 80px 0;
	background: var(--speakya-light-gray);
}

.pricing-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.pricing-card {
	background: var(--speakya-white);
	border: 2px solid #e0e0e0;
	border-radius: 20px;
	padding: 40px 30px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
}

.pricing-card.featured {
	border-color: var(--speakya-blue);
	box-shadow: 0 20px 40px rgba(0, 120, 255, 0.2);
	transform: scale(1.05);
}

.pricing-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
	transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
	font-size: 20px;
	font-weight: 700;
	color: var(--speakya-blue);
	margin: 0 0 20px;
	text-transform: uppercase;
}

.pricing-price {
	margin: 0 0 30px;
}

.price-currency {
	font-size: 28px;
	font-weight: 700;
	color: var(--speakya-dark);
	vertical-align: top;
}

.price-amount {
	font-size: 56px;
	font-weight: 900;
	color: var(--speakya-dark);
	line-height: 1;
}

.pricing-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--speakya-gray);
	margin: 0 0 25px;
	min-height: 80px;
}

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	text-align: left;
}

.pricing-features li {
	font-size: 15px;
	color: var(--speakya-gray);
	margin-bottom: 12px;
	padding-left: 25px;
	position: relative;
}

.pricing-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--speakya-green);
	font-weight: 700;
}

.pricing-button {
	display: block;
	width: 100%;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	cursor: pointer;
	text-align: center;
}

.pricing-button.primary {
	background: var(--speakya-blue);
	color: var(--speakya-white);
}

.pricing-button.primary:hover {
	background: #0066DD;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 120, 255, 0.3);
}

.pricing-button.secondary {
	background: transparent;
	color: var(--speakya-blue);
	border: 2px solid var(--speakya-blue);
}

.pricing-button.secondary:hover {
	background: var(--speakya-blue);
	color: var(--speakya-white);
	transform: translateY(-2px);
}

/* ============================================
   CTA FINAL SECTION
   ============================================ */
.speakya-home-cta {
	padding: 100px 0;
	background: var(--speakya-dark);
	color: var(--speakya-white);
	text-align: center;
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
}

.cta-title {
	font-size: 42px;
	font-weight: 800;
	margin: 0 0 20px;
	color: var(--speakya-white);
}

.cta-text {
	font-size: 20px;
	line-height: 1.6;
	margin: 0 0 15px;
	opacity: 0.9;
}

.cta-highlight {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 40px;
	color: var(--speakya-green);
	font-weight: 600;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets y pantallas medianas (1024px) */
@media screen and (max-width: 1024px) {
	.speakya-home-hero .hero-title {
		font-size: 44px;
	}

	.section-title {
		font-size: 36px;
	}

	.what-grid,
	.levels-grid,
	.testimonials-grid,
	.pricing-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablets pequeñas (768px) */
@media screen and (max-width: 768px) {
	.speakya-home-hero {
		padding: 60px 0;
	}

	.speakya-home-hero .hero-title {
		font-size: 36px;
	}

	.speakya-home-hero .hero-subtitle {
		font-size: 20px;
	}

	.speakya-home-hero .hero-description {
		font-size: 16px;
	}

	.section-title {
		font-size: 32px;
	}

	.section-subtitle {
		font-size: 16px;
	}

	.what-grid,
	.levels-grid,
	.testimonials-grid,
	.pricing-cards {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.how-steps {
		grid-template-columns: 1fr;
	}

	.hero-cta-buttons,
	.cta-buttons {
		flex-direction: column;
		gap: 15px;
	}

	.btn-primary,
	.btn-secondary,
	.btn-primary-large,
	.btn-secondary-large {
		width: 100%;
		padding: 16px 30px;
		font-size: 16px;
	}

	.pricing-card.featured {
		transform: scale(1);
	}

	.pricing-card.featured:hover {
		transform: translateY(-10px);
	}

	.speakya-home-what,
	.speakya-home-how,
	.speakya-home-levels,
	.speakya-home-testimonials,
	.speakya-home-pricing,
	.speakya-home-cta {
		padding: 50px 0;
	}

	.cta-title {
		font-size: 32px;
	}

	.cta-text {
		font-size: 18px;
	}

	.cta-highlight {
		font-size: 16px;
	}
}

/* Móviles (480px) */
@media screen and (max-width: 480px) {
	.speakya-container {
		padding: 0 15px;
	}

	.speakya-home-hero .hero-title {
		font-size: 28px;
	}

	.speakya-home-hero .hero-subtitle {
		font-size: 18px;
	}

	.section-title {
		font-size: 28px;
	}

	.what-item,
	.step-item,
	.level-card,
	.testimonial-card,
	.pricing-card {
		padding: 25px 20px;
	}

	.step-item {
		flex-direction: column;
		text-align: center;
	}

	.step-number {
		font-size: 36px;
	}

	.price-amount {
		font-size: 42px;
	}

	.cta-title {
		font-size: 26px;
	}
}

/* Móviles muy pequeños (360px) */
@media screen and (max-width: 360px) {
	.speakya-home-hero .hero-title {
		font-size: 24px;
	}

	.section-title {
		font-size: 24px;
	}

	.what-icon {
		font-size: 48px;
	}
}

/* ============================================
   QUICK ACCESS SECTION
   ============================================ */
.speakya-home-quick-access {
	padding: 80px 0;
	background: var(--speakya-white);
}

.quick-access-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.quick-access-item {
	background: #ffffff;
	border: 2px solid #E8F3FF;
	border-radius: 20px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.quick-access-item:hover {
	border-color: var(--speakya-blue);
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 120, 255, 0.15);
}

.quick-access-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--speakya-blue);
}

.quick-access-icon svg {
	width: 80px;
	height: 80px;
}

.quick-access-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 10px;
}

.quick-access-description {
	font-size: 14px;
	color: var(--speakya-gray);
	margin: 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.speakya-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.speakya-modal.active {
	display: flex;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

.modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	max-width: 800px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 2;
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 36px;
	color: var(--speakya-gray);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
	z-index: 10;
}

.modal-close:hover {
	color: var(--speakya-dark);
	transform: rotate(90deg);
}

.modal-header {
	padding: 40px 40px 20px;
	border-bottom: 2px solid #E8F3FF;
}

.modal-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--speakya-dark);
	margin: 0;
	padding-right: 40px;
}

.modal-body {
	padding: 40px;
}

.modal-footer {
	padding: 20px 40px 40px;
	text-align: center;
}

/* Certification Steps */
.certification-steps {
	margin-bottom: 40px;
}

.cert-step {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	align-items: flex-start;
}

.cert-step-number {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background: var(--speakya-blue);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
}

.cert-step-content h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 10px;
}

.cert-step-content p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--speakya-gray);
	margin: 0;
}

.certification-info {
	background: linear-gradient(135deg, #F0F8FF 0%, #E8F3FF 100%);
	padding: 30px;
	border-radius: 15px;
}

.certification-info h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--speakya-dark);
	margin: 0 0 20px;
}

.certification-info ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.certification-info li {
	font-size: 16px;
	line-height: 2;
	color: var(--speakya-dark);
	padding-left: 0;
}

/* Requirements Sections */
.requirements-section {
	margin-bottom: 40px;
}

.requirements-section:last-child {
	margin-bottom: 0;
}

.requirements-section h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--speakya-blue);
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #E8F3FF;
}

.requirements-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.requirements-list li {
	font-size: 16px;
	line-height: 1.8;
	color: var(--speakya-dark);
	margin-bottom: 15px;
	padding-left: 0;
}

.requirements-list li strong {
	color: var(--speakya-blue);
	font-weight: 700;
}

/* ============================================
   RESPONSIVE: QUICK ACCESS & MODALS
   ============================================ */
@media screen and (max-width: 992px) {
	.quick-access-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media screen and (max-width: 768px) {
	.speakya-home-quick-access {
		padding: 60px 0;
	}

	.quick-access-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.quick-access-item {
		padding: 30px 15px;
	}

	.quick-access-icon {
		width: 80px;
		height: 80px;
		margin-bottom: 15px;
	}

	.quick-access-icon svg {
		width: 60px;
		height: 60px;
	}

	.quick-access-title {
		font-size: 16px;
	}

	.quick-access-description {
		font-size: 12px;
	}

	.modal-content {
		max-width: 95%;
		border-radius: 15px;
	}

	.modal-header {
		padding: 30px 20px 15px;
	}

	.modal-title {
		font-size: 22px;
		padding-right: 30px;
	}

	.modal-body {
		padding: 20px;
	}

	.modal-footer {
		padding: 15px 20px 30px;
	}

	.cert-step {
		gap: 15px;
	}

	.cert-step-number {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.cert-step-content h3 {
		font-size: 18px;
	}

	.cert-step-content p {
		font-size: 14px;
	}

	.certification-info {
		padding: 20px;
	}

	.requirements-section h3 {
		font-size: 18px;
	}

	.requirements-list li {
		font-size: 14px;
	}
}

@media screen and (max-width: 480px) {
	.quick-access-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.quick-access-item {
		padding: 25px 15px;
	}

	.modal-title {
		font-size: 20px;
	}

	.cert-step {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.cert-step-content h3 {
		font-size: 16px;
	}
}
