/* Memora Academic Premium Stylesheet */

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Academic Premium Palette Refined */
    --academic-navy: #0F1A2C;
    --dark-navy: #08101C;
    --soft-navy: #F3F6F9;

    --accent-color: #C29A5B;
    --accent-hover: #AA8245;
    --soft-accent: #FCFAF5;

    --bg-gray: #FAFBFC;
    --text-muted: #728197;
    --text-dark: #1E293B;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-sm: 0 4px 6px -1px rgba(15, 26, 44, 0.05), 0 2px 4px -1px rgba(15, 26, 44, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 26, 44, 0.08), 0 4px 6px -2px rgba(15, 26, 44, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 26, 44, 0.1), 0 10px 10px -5px rgba(15, 26, 44, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(15, 26, 44, 0.08);
}

body.academic-theme {
    font-family: var(--font-body);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Color Helpers */
.text-navy {
    color: var(--academic-navy) !important;
}

.text-dark-navy {
    color: var(--dark-navy) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-navy {
    background-color: var(--academic-navy) !important;
}

.bg-dark-navy {
    background-color: var(--dark-navy) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-soft-navy {
    background-color: var(--soft-navy) !important;
}

.bg-soft-accent {
    background-color: var(--soft-accent) !important;
}

.bg-soft-gray {
    background-color: var(--bg-gray) !important;
}

.border-navy-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Buttons & Inputs */
.btn-navy {
    background-color: var(--academic-navy);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: var(--dark-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-navy {
    background-color: transparent;
    color: var(--academic-navy);
    border: 2px solid var(--academic-navy);
    transition: all 0.3s ease;
}

.btn-outline-navy:hover {
    background-color: var(--academic-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(194, 154, 91, 0.3);
    transition: all 0.3s ease;
    animation: pulseGlow 2.5s infinite;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #9e7e43 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 154, 91, 0.4);
    animation: none;
}


.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-white:hover {
    color: #fff !important;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--accent-color) !important;
}

.b-none {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding-left: 0;
}

/* Nav */
.premium-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(15, 26, 44, 0.05);
}

.custom-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -3px;
}

.nav-link {
    color: var(--text-dark) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section - Minimalist Premium Light */
.hero-premium {
    min-height: 92vh;
    background: #FAF9F6;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

/* Floating academic icons */
.hero-float-icon {
    position: absolute;
    color: var(--accent-color);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.hero-float-2 {
    top: 25%;
    right: 10%;
    animation-delay: -1.5s;
    animation-duration: 8s;
}

.hero-float-3 {
    bottom: 30%;
    left: 12%;
    animation-delay: -3s;
    animation-duration: 6s;
}

.hero-float-4 {
    top: 12%;
    right: 25%;
    animation-delay: -2s;
    animation-duration: 9s;
}

.hero-float-5 {
    bottom: 20%;
    right: 8%;
    animation-delay: -4s;
    animation-duration: 7.5s;
}

.hero-float-6 {
    bottom: 35%;
    left: 25%;
    animation-delay: -1s;
    animation-duration: 8.5s;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(3deg);
    }

    75% {
        transform: translateY(8px) rotate(-2deg);
    }
}

.hero-badge-premium {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--academic-navy) 100%);
    border: 1px solid rgba(194, 154, 91, 0.3);
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(11, 18, 33, 0.12);
}

.hero-title-premium {
    font-size: 3.8rem;
    line-height: 1.15;
    color: var(--dark-navy);
    letter-spacing: -0.03em;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, #E8CD96 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s linear infinite;
}

.hero-subtitle-premium {
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #AA8245 100%);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 25px rgba(194, 154, 91, 0.3);
    transition: all 0.3s ease;
    animation: pulseGlow 2.5s infinite;
}

.hero-btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 8px 35px rgba(194, 154, 91, 0.45);
    animation: none;
}

.hero-btn-outline {
    background: transparent;
    color: var(--dark-navy);
    border: 2px solid rgba(15, 26, 44, 0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(194, 154, 91, 0.04);
}

/* Hero Stats */
.hero-stats {
    padding-top: 1rem;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(194, 154, 91, 0.2);
    align-self: center;
}

/* Features Section - Premium */
.features-premium {
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--academic-navy) 100%);
    padding: 12rem 0;
}

.feature-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.border-top-accent {
    border-top: 3px solid var(--accent-color) !important;
}

.feature-card-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(194, 154, 91, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon-premium {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(194, 154, 91, 0.08);
    border: 1px solid rgba(194, 154, 91, 0.2);
    transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-icon-premium {
    background: rgba(194, 154, 91, 0.15);
    border-color: rgba(194, 154, 91, 0.4);
    box-shadow: 0 0 20px rgba(194, 154, 91, 0.15);
}

/* Tracking Bar (inside features) */


.tracking-gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #E8CD96);
    border-radius: 2px;
    opacity: 0.5;
}

/* Input bar */
.tracking-input-bar {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tracking-input-bar:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(194, 154, 91, 0.2);
    transform: scale(1.01);
}

.tracking-input-bar input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.tracking-btn-gold {
    background: linear-gradient(135deg, var(--accent-color), #AA8245);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(194, 154, 91, 0.3);
    transition: all 0.3s ease;
}

.tracking-btn-gold:hover {
    box-shadow: 0 6px 25px rgba(194, 154, 91, 0.45);
}

/* Keyframe Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(194, 154, 91, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(194, 154, 91, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(194, 154, 91, 0);
    }
}

/* Premium Input Styles */
.premium-input {
    border: 2px solid rgba(15, 26, 44, 0.08) !important;
    border-radius: 50rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    height: 3.5rem;
    font-size: 1.05rem;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-shadow: var(--shadow-sm);
}

.premium-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(194, 154, 91, 0.15), var(--shadow-md) !important;
    border-color: var(--accent-color) !important;
    background: #fff !important;
}

/* Utilities */
.tracking-wide {
    letter-spacing: 0.1em;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.z-index-1 {
    z-index: 1;
    position: relative;
}

.min-vh-50 {
    min-height: 50vh;
}

.rounded-bl-3 {
    border-bottom-left-radius: 1.25rem;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, #E8CD96 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Cards & Testimonials */
.card {
    border: 1px solid rgba(15, 26, 44, 0.05) !important;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, border-color 0.3s;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(194, 154, 91, 0.4) !important;
    box-shadow: var(--shadow-md);
}

.testimonial-card {
    border: 1px solid rgba(15, 26, 44, 0.05);
    box-shadow: var(--shadow-md);
    background: #ffffff;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Payment Method Cards */
.payment-method-card {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.payment-method-card:hover {
    border-color: rgba(194, 154, 91, 0.5);
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.btn-check:checked+.payment-method-card {
    border-color: var(--accent-color);
    background-color: rgba(194, 154, 91, 0.03);
    box-shadow: 0 0 0 4px rgba(194, 154, 91, 0.15), var(--shadow-md) !important;
    transform: translateY(-3px);
}

.btn-check:checked+.payment-method-card .method-icon-wrap {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Smart Reveal Animations (Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left {
    transform: translateX(-40px);
}

.reveal.fade-left.active {
    transform: translateX(0);
}

.reveal.fade-right {
    transform: translateX(40px);
}

.reveal.fade-right.active {
    transform: translateX(0);
}

.reveal.scale-up {
    transform: scale(0.9) translateY(30px);
}

.reveal.scale-up.active {
    transform: scale(1) translateY(0);
}

.d-delay-1 {
    transition-delay: 0.15s;
}

.d-delay-2 {
    transition-delay: 0.3s;
}

.d-delay-3 {
    transition-delay: 0.45s;
}

.hidden {
    display: none !important;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Select2 overrides for Bootstrap 5 & Premium feel */
.select2-container--default .select2-selection--single {
    height: calc(3.5rem + 2px);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ced4da;
    border-radius: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(3.5rem + 2px);
    right: 10px;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid rgba(15, 26, 44, 0.05);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 1rem 1rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--soft-navy);
    color: var(--academic-navy);
}

/* Responsive adjust */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .hero-premium {
        min-height: 100vh;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-title-premium {
        font-size: 2.5rem;
    }

    .tracking-card-premium {
        padding: 2rem 1.5rem;
    }
}

/* Timeline & Manual Sequences */
.manual-hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(15, 26, 44, 0.95) 100%), url('../img/bg-pattern.svg');
    padding: 100px 0 80px;
    position: relative;
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -50px;
    width: 2px;
    background: rgba(194, 154, 91, 0.2);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark-navy);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    padding: 30px;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(194, 154, 91, 0.3);
}

/* ── Premium Toast Notifications ───────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 6rem !important;
    /* Mover más abajo para que no lo tape el menú */
    right: 2.5rem;
    z-index: 99999 !important;
    /* Superar cualquier nivel de menú o modal */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #ffffff !important;
    border: 1px solid rgba(15, 26, 44, 0.1) !important;
    border-left: 6px solid var(--accent-color) !important;
    border-radius: 1.25rem !important;
    padding: 1.25rem 2rem !important;
    min-width: 360px;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(15, 26, 44, 0.15) !important;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(140%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-error {
    border-left-color: #ef4444 !important;
    background: #fffafa !important;
}

.toast-error i {
    color: #ef4444 !important;
}

.toast.toast-warning {
    border-left-color: #f59e0b !important;
    background: #fffdf9 !important;
}

.toast-warning i {
    color: #f59e0b !important;
}

.toast.toast-success {
    border-left-color: #10b981 !important;
    background: #f8fdfb !important;
}

.toast-success i {
    color: #10b981 !important;
}

.toast.toast-info {
    border-left-color: #3b82f6 !important;
    background: #f8fbff !important;
}

.toast-info i {
    color: #3b82f6 !important;
}

.toast-msg {
    font-weight: 700;
    color: var(--dark-navy);
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.toast i {
    font-size: 1.8rem !important;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}