/* ========== HERO ========== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero/IMG_2877.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(5,5,5,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem;
  max-width: 900px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== ABOUT / PROPUESTA ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.stat h3 {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.about-image {
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  padding: 0.5rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ========== FREE CLASS ========== */
.free-class-grid {
  text-align: center;
}

.free-class-info h2 {
  font-size: 3rem;
}

.free-class-info p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.free-class-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.free-class-card {
  padding: 2rem;
}

.free-class-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-cyan);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 800;
}

/* ========== SERVICES / CURSOS ========== */
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-size: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.service-image-container {
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image {
  transform: scale(1.08);
}

.service-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-info h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
}

.service-info p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-cyan);
  margin-top: auto;
}
.service-link:hover {
  color: var(--text-main);
}

/* ========== WHY US / BENEFITS ========== */
.why-us-header {
  text-align: center;
  margin-bottom: 4rem;
}
.why-us-header h2 { font-size: 3rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature svg {
  margin-bottom: 1.5rem;
}

.feature h4 {
  font-size: 1.3rem;
}

.feature p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== LOCATIONS ========== */
.locations-header {
  text-align: center;
  margin-bottom: 3rem;
}

.locations-header h2 { font-size: 3rem; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.location-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
}

.location-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
}

.location-card h3 {
  font-size: 1.5rem;
  margin: 0;
}

/* ========== CTA ========== */
.cta-section {
  padding-bottom: 3rem;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-card p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ========== RESEÑAS / REVIEWS ========== */
.reviews-section, .graduates-section {
  padding-top: 2rem;
}

.reviews-header, .graduates-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-header h2, .graduates-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-stars {
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--primary-green);
  background: rgba(0, 255, 102, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.review-text {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-info h5 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-link {
  font-size: 0.8rem;
  color: var(--primary-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.review-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== GALERÍA EGRESADOS ========== */
.graduates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.graduate-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graduate-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.graduate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.graduate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}



/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-row { flex-wrap: wrap; }
  .focus-grid { grid-template-columns: 1fr; }
}
