/* CSS Premium para Página de Inicio MARLAN */

:root {
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 30px -10px rgba(26, 54, 93, 0.08);
  --shadow-premium-hover: 0 20px 40px -10px rgba(26, 54, 93, 0.16);
  --border-radius-premium: 16px;
  --gradient-primary: linear-gradient(135deg, var(--primary-marlan) 0%, #0d1b2a 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-marlan) 0%, #990f14 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(26, 54, 93, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-premium-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #1b263b 0%, #0a0e17 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary-marlan) 0%, #b30f14 100%);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

/* Hero Premium */
.hero-premium {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(209, 18, 29, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(26, 54, 93, 0.04) 0%, transparent 50%),
              var(--background);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-text {
  text-align: left;
  z-index: 10;
}

.hero-badge-container {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 54, 93, 0.06);
  border: 1px solid rgba(26, 54, 93, 0.1);
  color: var(--primary-marlan);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite alternate;
}

@media (prefers-color-scheme: dark) {
  .hero-badge-premium {
    background: rgba(42, 82, 136, 0.15);
    border-color: rgba(42, 82, 136, 0.3);
    color: #93c5fd;
  }
}

@keyframes pulse-badge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.1); }
  100% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(26, 54, 93, 0); }
}

.hero-title-premium {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .hero-title-premium {
    font-size: 4rem;
  }
}

.hero-title-premium span.text-gradient {
  background: linear-gradient(135deg, var(--primary-marlan) 0%, var(--secondary-marlan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .hero-title-premium span.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-desc-premium {
  font-size: 1.15rem;
  color: var(--neutral-400);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Stats Row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--neutral-200);
  padding-top: 2rem;
}

@media (prefers-color-scheme: dark) {
  .hero-stats { border-color: var(--neutral-800); }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--primary-marlan);
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-num { font-size: 2.3rem; }
}

@media (prefers-color-scheme: dark) {
  .stat-num { color: #60a5fa; }
}

.stat-label {
  font-size: 0.85rem;
  color: var(--neutral-400);
  margin-top: 0.4rem;
  font-weight: 550;
}

/* Columna Derecha: Mockup Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.visual-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: var(--gradient-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: wave-blob 10s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes wave-blob {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-premium-hover);
  transition: var(--transition-smooth);
}

.floating-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.card-student {
  top: 10%;
  left: -5%;
  width: 220px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.student-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neutral-200);
  border: 2px solid var(--background);
  margin-right: -10px;
}

.student-info p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.card-tech {
  bottom: 10%;
  right: -5%;
  width: 240px;
}

.tech-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tech-icon-item {
  width: 36px;
  height: 36px;
  background: var(--neutral-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--primary-marlan);
}

@media (prefers-color-scheme: dark) {
  .tech-icon-item {
    background: var(--neutral-200);
    color: #93c5fd;
  }
}

.card-center {
  width: 80%;
  height: 60%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 0.75rem;
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.8rem;
  text-align: left;
}

/* Sections Global */
.section-premium {
  padding: 6rem 0;
}

.section-premium.bg-light {
  background: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  .section-premium.bg-light {
    background: #0f172a;
  }
}

.title-container-premium {
  text-align: center;
  margin-bottom: 4rem;
}

.pre-title-premium {
  display: inline-block;
  color: var(--secondary-marlan);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.title-premium {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .title-premium { font-size: 2.8rem; }
}

.subtitle-premium {
  font-size: 1.1rem;
  color: var(--neutral-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Specializations Section Grid & Premium Cards */
.spec-grid-premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .spec-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-card-premium {
  background: var(--background);
  border: 1px solid var(--neutral-200);
  border-radius: var(--border-radius-premium);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .spec-card-premium {
    border-color: var(--neutral-200);
  }
}

.spec-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-hover);
  border-color: rgba(209, 18, 29, 0.2);
}

.spec-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--primary-marlan);
}

.spec-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.spec-card-premium:hover .spec-img-wrapper img {
  transform: scale(1.08);
}

.spec-overlay-tags {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 10;
}

.spec-tag-floating {
  background: rgba(26, 54, 93, 0.9);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-tag-floating.accent {
  background: rgba(209, 18, 29, 0.9);
}

.spec-body-premium {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.spec-body-premium h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.spec-card-premium:hover .spec-body-premium h3 {
  color: var(--secondary-marlan);
}

.spec-body-premium p {
  color: var(--neutral-400);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.spec-skills {
  margin-bottom: 1.5rem;
}

.spec-skills-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-400);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.spec-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  background: var(--neutral-100);
  color: var(--neutral-800);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--neutral-200);
}

@media (prefers-color-scheme: dark) {
  .skill-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.spec-footer-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-200);
}

@media (prefers-color-scheme: dark) {
  .spec-footer-premium { border-color: var(--neutral-200); }
}

.spec-price-info {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.75rem;
  color: var(--neutral-400);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-marlan);
}

/* Cursos Section Grid & Premium Cards */
.courses-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card-premium {
  background: var(--background);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (prefers-color-scheme: dark) {
  .course-card-premium {
    border-color: var(--neutral-200);
  }
}

.course-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium-hover);
  border-color: rgba(26, 54, 93, 0.2);
}

.course-img-wrapper-premium {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--primary-marlan);
}

.course-img-wrapper-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card-premium:hover .course-img-wrapper-premium img {
  transform: scale(1.06);
}

.course-badge-level {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-marlan);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(26, 54, 93, 0.1);
  z-index: 10;
}

@media (prefers-color-scheme: dark) {
  .course-badge-level {
    background: rgba(10, 10, 10, 0.9);
    color: #93c5fd;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.course-body-premium {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-body-premium h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.course-card-premium:hover .course-body-premium h4 {
  color: var(--primary-marlan);
}

@media (prefers-color-scheme: dark) {
  .course-card-premium:hover .course-body-premium h4 {
    color: #60a5fa;
  }
}

.course-body-premium p {
  color: var(--neutral-400);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.course-footer-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-200);
  margin-top: auto;
}

@media (prefers-color-scheme: dark) {
  .course-footer-premium { border-color: var(--neutral-200); }
}

.course-price-box {
  display: flex;
  flex-direction: column;
}

.price-val-sm {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-marlan);
}

.price-discount-line {
  text-decoration: line-through;
  color: var(--neutral-400);
  font-size: 0.75rem;
}

.btn-detail-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Benefits (Por qué MARLAN) */
.benefits-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card-premium {
  background: var(--background);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

@media (prefers-color-scheme: dark) {
  .benefit-card-premium {
    border-color: var(--neutral-200);
  }
}

.benefit-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium-hover);
  border-color: rgba(209, 18, 29, 0.15);
}

.benefit-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(209, 18, 29, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-marlan);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.benefit-card-premium:hover .benefit-icon-wrapper {
  background: var(--gradient-accent);
  color: white;
}

.benefit-card-premium h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.benefit-card-premium p {
  color: var(--neutral-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Call to Action Banner */
.cta-banner-premium {
  background: var(--gradient-primary);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 54, 93, 0.25);
  color: white;
  margin-top: 4rem;
}

.cta-banner-premium::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 300px; height: 300px;
  background: rgba(209, 18, 29, 0.15);
  border-radius: 50%;
  filter: blur(50px);
}

.cta-banner-premium::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(26, 54, 93, 0.2);
  border-radius: 50%;
  filter: blur(50px);
}

.cta-content-premium {
  position: relative;
  z-index: 10;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content-premium h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cta-content-premium h2 { font-size: 2.8rem; }
}

.cta-content-premium p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white-premium {
  background: white;
  color: var(--primary-marlan);
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-white-premium:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}
