/* CDELU Cursos — estilos complementares (Tailwind via CDN) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Nav link active state */
.nav-link.active {
  color: #f5d800;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 520px;
  opacity: 1;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.92) 0%, rgba(27, 58, 92, 0.85) 50%, rgba(15, 39, 68, 0.75) 100%);
}

/* Decorative floral line (inspired by logo) */
.floral-accent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' fill='none'%3E%3Cpath d='M5 35 Q20 20 35 25 T65 15 T95 20' stroke='%231B3A5C' stroke-width='1.2' opacity='0.3'/%3E%3Ccircle cx='35' cy='25' r='3' fill='%231B3A5C' opacity='0.2'/%3E%3Ccircle cx='65' cy='15' r='2.5' fill='%231B3A5C' opacity='0.2'/%3E%3Ccircle cx='95' cy='20' r='2' fill='%231B3A5C' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 120px 40px;
  padding-left: 130px;
}

/* Card hover lift */
.course-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(27, 58, 92, 0.18);
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skip link accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #f5d800;
  color: #0f2744;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lang-flag {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.25rem;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-flag:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-flag--active {
  opacity: 1;
  box-shadow: 0 0 0 2px #f5d800;
}

.lang-flag-img {
  display: block;
  width: 2.1rem;
  height: auto;
  border-radius: 0.125rem;
}

/* Content images */
.content-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-card-top {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.img-banner {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 1rem;
}

.img-side {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card:hover .content-img {
  transform: scale(1.03);
}

.course-card .content-img {
  transition: transform 0.35s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .course-card { transition: none; }
  .course-card .content-img { transition: none; }
  #mobile-menu { transition: none; }
}
