/* Lex Academy - Custom Styles */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Overlay (como en mockup) */
.hero-overlay {
    background: linear-gradient(135deg, rgba(11, 30, 61, 0.85), rgba(30, 91, 168, 0.75));
}

/* Botón Naranja (navbar) */
.btn-orange {
    background: linear-gradient(135deg, #FF8C42, #FF7028);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    transition: all 0.3s ease;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
}

/* Botón Dorado (hero CTA) */
.btn-gold-hero {
    background: linear-gradient(135deg, #E8C547, #D4AF37);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn-gold-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.5);
}

/* Academic Cards */
.academic-card {
    transition: all 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 91, 168, 0.15);
}

/* Mission Cards */
.mission-card {
    transition: all 0.3s ease;
}

.mission-pathways {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(11, 30, 61, 0.4));
}

/* Language Buttons */
.lang-btn.active {
    color: #E8C547;
    font-weight: 700;
}

/* Navbar Styles */
#navbar {
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(11, 30, 61, 0.1);
}

#navbar.scrolled {
    background: rgba(250, 247, 240, 0.98);
    box-shadow: 0 4px 30px rgba(11, 30, 61, 0.15);
}

.nav-link {
    @apply text-navy/80 hover:text-gold transition font-medium;
}

.lang-btn {
    @apply px-3 py-1 rounded text-navy/60 hover:text-navy transition font-medium;
}

.lang-btn.active {
    @apply text-gold font-bold;
}

/* Buttons */
.btn-gold {
    @apply bg-gradient-to-r from-gold to-[#E8C547] text-navy px-6 py-2.5 rounded-lg font-semibold hover:shadow-lg transition transform hover:scale-105;
}

.btn-gold-large {
    @apply bg-gradient-to-r from-gold to-[#E8C547] text-navy px-10 py-4 rounded-lg font-bold text-lg hover:shadow-2xl transition transform hover:scale-105 inline-block;
}

.btn-outline-large {
    @apply border-2 border-navy text-navy px-10 py-4 rounded-lg font-bold text-lg hover:bg-navy hover:text-linen transition inline-block;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Level Cards */
.level-card {
    @apply bg-white rounded-2xl shadow-lg hover:shadow-2xl p-8 transition-all duration-300 border border-navy/10 hover:border-gold;
}

.level-card.featured {
    @apply border-2 border-gold relative;
}

.level-card.featured::before {
    content: "POPULAR";
    @apply absolute -top-3 left-1/2 transform -translate-x-1/2 bg-gold text-navy text-xs font-bold px-4 py-1 rounded-full;
}

.level-icon {
    @apply w-16 h-16 bg-gold/10 rounded-full flex items-center justify-center mb-4 text-gold;
}

/* Mission Cards */
.mission-card {
    @apply bg-navy/40 backdrop-blur-sm border border-linen/20 rounded-2xl p-6 hover:bg-navy/60 transition;
}

.mission-pathways {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(11, 30, 61, 0.4));
}

/* Google Workspace Buttons */
.google-btn {
    @apply flex flex-col items-center justify-center bg-linen/5 border border-linen/20 rounded-xl p-6 hover:bg-linen/10 hover:border-gold transition text-center;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Loading State */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1E3D;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
/* --- MISSION HUB LAYOUT --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* --- RESOURCES LAYOUT --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- BOTONES BASE --- */
.hub-btn {
  position: relative;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: white;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* --- TOOLTIP (usa data-tooltip) --- */
.hub-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.hub-btn:hover::after {
  opacity: 1;
}
.tooltip {
    ...
}
.font-serif {
    font-family:"Cinzel",serif;
    }
