/* Premium Stylesheet Extension for EGAC (index2.html) */

:root {
    --teal-translucent: rgba(20, 184, 166, 0.08);
    --orange-translucent: rgba(255, 87, 34, 0.08);
    --navy-translucent: rgba(9, 24, 55, 0.05);
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Animations for Tab Switching */
@keyframes fadeInUpTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Global modifications */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* Tab Structure */
.tab-content {
    display: block;
    animation: fadeInUpTab 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.hidden,
.hidden {
    display: none !important;
}

/* Landing Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.quick-link-card {
    padding: 1.5rem;
    border-radius: 1.2rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-link-card:hover {
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
}

.quick-link-card h4 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quick-link-card p {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.ql-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Premium Quote block */
.premium-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    background: rgba(255, 87, 34, 0.03);
}

/* Border card utilities */
.border-l-teal-thick {
    border-left: 6px solid var(--teal) !important;
}

.border-l-orange-thick {
    border-left: 6px solid var(--orange) !important;
}

/* Valor Pills */
.valores-row {
    flex-wrap: wrap;
    justify-content: center;
}

.valor-pill {
    padding: 0.6rem 1.6rem;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--gray-light);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.valor-pill:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 87, 34, 0.2);
}

/* Outline White Button for Hero */
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Role Selector (Plataforma Switcher) */
.role-toggle-bar {
    display: inline-flex;
    background-color: var(--gray-light);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

.role-btn {
    border: none;
    background: none;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}

.role-btn.active {
    background-color: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.role-content-pane {
    animation: fadeInUpTab 0.5s ease-out forwards;
}

.benefit-item {
    font-size: 0.85rem;
    color: var(--navy);
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    border-color: var(--teal);
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.check-icon {
    font-weight: bold;
    color: var(--orange);
}

/* Features Detailed Grid */
.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-block-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1.25rem;
    height: 100%;
}

.feature-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.f-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.f-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--teal);
    letter-spacing: 0.05em;
    background: var(--teal-light);
    padding: 3px 10px;
    border-radius: 5px;
    align-self: flex-start;
}

.feature-block-card p {
    flex-grow: 1;
}

/* Progress bar inside tracker */
.progress-bar-bg {
    width: 100%;
    background-color: var(--gray-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* CFI & CAP Steps Timeline */
.steps-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background-color: rgba(26, 54, 93, 0.4) !important;
}

.step-number {
    font-size: 1.8rem;
}

/* Validation Specifics */
.comparison-block {
    background: rgba(255, 87, 34, 0.02);
}

.cert-mockup {
    background: #fafafa;
    border-color: #ddd;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.qr-mockup {
    font-family: monospace;
}

.text-xxs {
    font-size: 0.7rem;
}

/* FAQ Search Header */
.faq-search-header {
    border-color: var(--gray-light);
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
}

.faq-search-header input {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding-left: 48px; /* Evita que el texto se encime con la lupa */
    padding-right: 45px;
}

.faq-search-header input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

.search-clear-btn.hidden {
    display: none;
}

/* FAQ Filters */
.faq-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-filter-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-filter-card.active {
    border-color: var(--teal);
    background-color: var(--teal-light);
    box-shadow: 0 6px 15px rgba(20, 184, 166, 0.15);
}

.faq-filter-card.active h4 {
    color: var(--navy);
}

.faq-filter-card .icon {
    font-size: 2.2rem;
}

.faq-filter-card h4 {
    color: var(--gray);
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.faq-filter-card p {
    color: var(--gray);
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Accordion */
.faq-subcategory {
    margin-bottom: 2rem;
}

.faq-subcat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.accordion-item:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.accordion-header {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}

.accordion-header h4 {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.4;
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--gray);
}

.accordion-body {
    padding: 0 1.2rem 1.2rem 1.2rem;
    display: none;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid var(--light);
}

.accordion-body a {
    color: var(--teal);
    font-weight: 600;
}

.accordion-body a:hover {
    text-decoration: underline;
}

.accordion-item.open {
    border-color: var(--teal);
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.06);
}

.accordion-item.open .accordion-body {
    display: block;
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.open .arrow {
    transform: rotate(180deg);
    color: var(--teal);
}

.faq-category-block.hidden {
    display: none !important;
}

/* Responsiveness overrides */
@media (max-width: 1024px) {
    .features-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .features-detailed-grid {
        grid-template-columns: 1fr;
    }

    .steps-timeline-grid {
        grid-template-columns: 1fr;
    }

    .faq-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   PREMIUM MOTION & AESTHETIC ENHANCEMENTS (DYNAMIC & ALIVE)
   ======================================================== */

/* Animated Floating Glassmorphism Background Blobs */
.main-content::before {
    content: '';
    position: fixed;
    top: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    animation: floatBlob1 25s infinite alternate ease-in-out;
}

.main-content::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.05) 0%, transparent 70%);
    filter: blur(110px);
    z-index: -1;
    pointer-events: none;
    animation: floatBlob2 30s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 80px) scale(1.15); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(90px, -90px) scale(1.08); }
}

/* Staggered Entrance Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base states before animation plays inside shown tabs */
.tab-content:not(.hidden) .somos-info,
.tab-content:not(.hidden) .somos-visual,
.tab-content:not(.hidden) .glass-card,
.tab-content:not(.hidden) .feature-block-card,
.tab-content:not(.hidden) .step-card,
.tab-content:not(.hidden) .valores-row,
.tab-content:not(.hidden) .cfi-highlight-container,
.tab-content:not(.hidden) .faq-search-header,
.tab-content:not(.hidden) .faq-filter-grid,
.tab-content:not(.hidden) .faq-content-container,
.tab-content:not(.hidden) .contact-form,
.tab-content:not(.hidden) .val-info,
.tab-content:not(.hidden) .val-visual {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Animations triggered automatically on active tabs */
.tab-content:not(.hidden) .somos-info,
.tab-content:not(.hidden) .val-info {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content:not(.hidden) .somos-visual,
.tab-content:not(.hidden) .val-visual {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content:not(.hidden) .glass-card,
.tab-content:not(.hidden) .feature-block-card,
.tab-content:not(.hidden) .step-card,
.tab-content:not(.hidden) .valores-row,
.tab-content:not(.hidden) .cfi-highlight-container,
.tab-content:not(.hidden) .faq-search-header,
.tab-content:not(.hidden) .faq-filter-grid,
.tab-content:not(.hidden) .faq-content-container,
.tab-content:not(.hidden) .contact-form {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger Delays for child cards and elements */
.tab-content:not(.hidden) .glass-card:nth-child(1),
.tab-content:not(.hidden) .feature-block-card:nth-child(1),
.tab-content:not(.hidden) .step-card:nth-child(1) { animation-delay: 0.15s; }

.tab-content:not(.hidden) .glass-card:nth-child(2),
.tab-content:not(.hidden) .feature-block-card:nth-child(2),
.tab-content:not(.hidden) .step-card:nth-child(2) { animation-delay: 0.25s; }

.tab-content:not(.hidden) .glass-card:nth-child(3),
.tab-content:not(.hidden) .feature-block-card:nth-child(3),
.tab-content:not(.hidden) .step-card:nth-child(3) { animation-delay: 0.35s; }

.tab-content:not(.hidden) .glass-card:nth-child(4),
.tab-content:not(.hidden) .feature-block-card:nth-child(4) { animation-delay: 0.45s; }

.tab-content:not(.hidden) .feature-block-card:nth-child(5) { animation-delay: 0.55s; }
.tab-content:not(.hidden) .feature-block-card:nth-child(6) { animation-delay: 0.65s; }

.tab-content:not(.hidden) .valores-row { animation-delay: 0.2s; }
.tab-content:not(.hidden) .cfi-highlight-container { animation-delay: 0.25s; }

/* Color and Typography Gradient Highlights */
.somos-info h3, 
.val-info h3, 
.cfi-highlight-container h3,
.faq-search-header h3,
.intro-grid h4,
.features-detailed-grid h4 {
    background: linear-gradient(135deg, var(--navy) 30%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cfi-highlight-container h3 {
    background: linear-gradient(135deg, var(--white) 60%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Advanced Card styles override */
.glass-card, .feature-block-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 24px !important;
    padding: 2.25rem !important;
    box-shadow: 0 12px 40px rgba(9, 24, 55, 0.05), 0 2px 10px rgba(0, 0, 0, 0.01) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1; /* Establishes local stacking context */
}

/* Ensure card content is always rendered on top of background image pseudo-element */
.glass-card > *, .feature-block-card > * {
    position: relative;
    z-index: 2;
}

.glass-card::after, .feature-block-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--card-bg-img);
    background-size: cover;
    background-position: center;
    filter: opacity(0.12) saturate(110%);
    z-index: -1;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.02);
}

.glass-card:hover::after, .feature-block-card:hover::after {
    filter: opacity(0.18) saturate(120%); /* Faded from 0.24 to keep text highly legible */
    transform: scale(1.06);
}

.glass-card:hover, .feature-block-card:hover {
    background: rgba(255, 255, 255, 0.9) !important; /* Increased from 0.75 to mask background details and elevate text legibility */
    border-color: rgba(20, 184, 166, 0.35) !important;
    transform: translateY(-8px) scale(1.005);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.12), 0 4px 15px rgba(9, 24, 55, 0.01) !important;
}

.glass-card:nth-child(2n):hover, .feature-block-card:nth-child(2n):hover {
    border-color: rgba(255, 87, 34, 0.35) !important;
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.12), 0 4px 15px rgba(9, 24, 55, 0.01) !important;
}

/* Premium Card Icon Wrapper */
.glass-card > span.text-2xl,
.feature-block-card > .f-icon,
.glass-card > .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(20, 184, 166, 0.08);
    font-size: 1.5rem !important;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.glass-card:hover > span.text-2xl,
.feature-block-card:hover > .f-icon,
.glass-card:hover > .card-icon {
    background: var(--teal) !important;
    color: var(--white) !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.2);
}

/* Nth-child colors for alternating accents */
.glass-card:nth-child(2n) > span.text-2xl,
.feature-block-card:nth-child(2n) > .f-icon,
.glass-card:nth-child(2n) > .card-icon {
    background: rgba(255, 87, 34, 0.08);
    border-color: rgba(255, 87, 34, 0.12);
}

.glass-card:nth-child(2n):hover > span.text-2xl,
.feature-block-card:nth-child(2n):hover > .f-icon,
.glass-card:nth-child(2n):hover > .card-icon {
    background: var(--orange) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.2);
}

.glass-card h4, .feature-block-card h4, .glass-card h3, .feature-block-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.glass-card:hover h4, .feature-block-card:hover h4,
.glass-card:hover h3, .feature-block-card:hover h3 {
    color: var(--teal);
}

.glass-card:nth-child(2n):hover h4, .feature-block-card:nth-child(2n):hover h4,
.glass-card:nth-child(2n):hover h3, .feature-block-card:nth-child(2n):hover h3 {
    color: var(--orange);
}

.glass-card p, .feature-block-card p {
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.glass-card:hover p, .feature-block-card:hover p {
    color: var(--navy); /* Darker color on hover to enhance readability */
}

/* Premium Banner Card (Bottom banner on Organizaciones and Instructores) */
.premium-banner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 28px !important;
    padding: 2.25rem !important;
    box-shadow: 0 15px 35px rgba(9, 24, 55, 0.03) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.premium-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    transition: all 0.4s ease;
}

.premium-banner-card.border-l-orange {
    border-left: none !important;
}
.premium-banner-card.border-l-orange::before {
    background: var(--orange);
}

.premium-banner-card.border-l-teal {
    border-left: none !important;
}
.premium-banner-card.border-l-teal::before {
    background: var(--teal);
}

.premium-banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(9, 24, 55, 0.07) !important;
}

.premium-banner-card:hover::before {
    width: 10px;
}

.premium-banner-card .p-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 2.25rem !important;
    flex-shrink: 0;
}

.premium-banner-card.border-l-orange .p-icon {
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.12);
}

.premium-banner-card.border-l-teal .p-icon {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.premium-banner-card:hover .p-icon {
    transform: scale(1.08) rotate(-5deg);
}

.premium-banner-card.border-l-orange:hover .p-icon {
    background: var(--orange);
    color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.25);
}

.premium-banner-card.border-l-teal:hover .p-icon {
    background: var(--teal);
    color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
}

.premium-banner-card h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    font-weight: 700;
    transition: color 0.3s ease;
}

.premium-banner-card.border-l-orange:hover h4 {
    color: var(--orange);
}

.premium-banner-card.border-l-teal:hover h4 {
    color: var(--teal);
}

.cfi-result-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-left: 6px solid var(--teal) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(9, 24, 55, 0.03) !important;
    transition: all 0.4s ease !important;
}

.cfi-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(20, 184, 166, 0.08) !important;
}

/* CFI & CAP Timeline glow */
.step-card {
    background: rgba(26, 54, 93, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    background: rgba(26, 54, 93, 0.85) !important;
    border-color: var(--teal) !important;
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.22) !important;
    transform: translateY(-8px);
}

.step-card:nth-child(2n):hover {
    border-color: var(--orange) !important;
    box-shadow: 0 12px 30px rgba(255, 87, 34, 0.22) !important;
}

/* Quote enhancement */
.premium-quote {
    background: rgba(255, 87, 34, 0.02) !important;
    border-left: 5px solid var(--orange) !important;
    border-radius: 0 16px 16px 0;
    padding: 1.25rem !important;
}

/* FAQ Active Card Gradient */
.faq-filter-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-filter-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}

.faq-filter-card.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    border-color: var(--teal) !important;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
}

/* Background Watermark & Orbiting Star */
.tab-content.section {
    background: transparent !important;
    background-color: transparent !important;
}

.container {
    position: relative;
    z-index: 5;
}

.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: none;
    z-index: -1; /* Renders completely behind all page elements in the flow */
    pointer-events: none;
    opacity: 1.0; /* Keep container opacity at 1.0 so children can specify their own visibility */
    transition: opacity 0.5s ease;
}

.watermark-svg {
    width: 100%;
    height: 100%;
}

.watermark-grid-line {
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.5;
    opacity: 0.10; /* Subtle but clearly visible on light backgrounds */
}

/* Shape-specific styling for the nodes */
.watermark-node {
    opacity: 0.20; /* Subtle nodes */
    transition: opacity 0.3s ease;
}

.watermark-node-center {
    fill: var(--teal);
    stroke: var(--white);
    stroke-width: 2px;
    opacity: 0.30;
}

.watermark-node-circle {
    fill: var(--navy);
    stroke: var(--white);
    stroke-width: 1.5px;
    opacity: 0.20;
}

.watermark-node-triangle {
    fill: var(--orange);
    stroke: var(--white);
    stroke-width: 1.2px;
    opacity: 0.28; /* Slightly higher opacity for orange visibility */
}

.watermark-node-square {
    fill: var(--navy);
    stroke: var(--white);
    stroke-width: 1.2px;
    opacity: 0.20;
}

.watermark-node-diamond {
    fill: var(--teal);
    stroke: var(--white);
    stroke-width: 1.2px;
    opacity: 0.25; /* Slightly higher for teal visibility */
}

.watermark-node-cross {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2.5px;
    stroke-linecap: round;
    opacity: 0.22;
}

.watermark-node-star {
    fill: var(--orange);
    stroke: var(--white);
    stroke-width: 1.2px;
    opacity: 0.28;
}

/* Watermark switching groups visibility */
.watermark-group {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Show Particles Canvas on Nosotros, Organizaciones, Validación and Contacto */
.watermark-container[data-active-tab="nosotros"] #watermark-particles,
.watermark-container[data-active-tab="organizaciones"] #watermark-particles,
.watermark-container[data-active-tab="validacion"] #watermark-particles,
.watermark-container[data-active-tab="contacto"] #watermark-particles {
    display: block;
}

/* Show Binary Streams Canvas on Plataforma, Instructores and Ayuda */
.watermark-container[data-active-tab="plataforma"] #watermark-binary,
.watermark-container[data-active-tab="instructores"] #watermark-binary,
.watermark-container[data-active-tab="ayuda"] #watermark-binary {
    display: block;
}

/* Balanced 5-card layout grid */
.credential-ecosystem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.credential-ecosystem-grid .glass-card {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .credential-ecosystem-grid .glass-card {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .credential-ecosystem-grid .glass-card {
        flex: 0 1 100%;
    }
}

/* Specific styling to align validation cards vertically */
.interactive-example-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.val-visual {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hero Option Cards styling */
.hero-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2.5rem auto 0 auto;
    width: 100%;
}

.hero-option-card {
    background: rgba(9, 24, 55, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-option-card:hover {
    background: rgba(255, 255, 255, 0.98);
    color: var(--navy) !important;
    border-color: var(--teal);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.25);
}

.hero-option-card:nth-child(2n):hover {
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.25);
}

.hero-option-card .option-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.hero-option-card:hover .option-icon {
    transform: scale(1.15) translateY(-2px);
}

.hero-option-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: inherit;
}

.hero-option-card p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.4;
    margin-bottom: 0;
    color: inherit;
}

.hero-option-card:hover p {
    color: var(--gray);
}

@media (max-width: 768px) {
    .hero-options-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* ========================================================
   NAVBAR RAPID ACTIONS (ORANGE BUTTONS)
   ======================================================== */

/* Separador Vertical */
.navbar-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin-left: 1.5rem;
    margin-right: 0.75rem;
    transition: opacity 0.3s ease;
}

.navbar-separator.hidden-action {
    display: none !important;
}

.navbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar-actions.hidden-action {
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
}

@media (min-width: 1301px) {
    .navbar-actions.hidden-action {
        display: none !important;
    }
}

.navbar-btn.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 87, 34, 0.08); /* Translucent orange bg */
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 6px 14px;
    border-radius: 12px; /* Sleek square-round border-radius for modern feel */
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 87, 34, 0.4); /* Thin clean border */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-btn.btn-orange:hover {
    background: linear-gradient(135deg, var(--orange) 0%, #ff7a45 100%);
    color: var(--white) !important;
    border-color: rgba(255, 87, 34, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-btn.btn-orange span {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.navbar-btn.btn-orange:hover span {
    transform: scale(1.15) rotate(5deg);
}

.mobile-actions {
    display: none; /* Hidden on desktop */
}

/* ========================================================
   RESPONSIVE LAYOUT & BREAKPOINT OVERRIDES (1300px)
   ======================================================== */
@media (max-width: 1300px) {
    /* Enable Hamburger Toggle earlier to prevent crowding */
    .mobile-toggle {
        display: block !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: var(--navbar-height) !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--navy) !important;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1) !important;
        gap: 0 !important;
    }

    .navbar-nav.open {
        max-height: calc(100vh - var(--navbar-height)) !important;
        overflow-y: auto !important;
        padding: 1rem 0 2.5rem 0 !important; /* Added bottom padding to ensure the last button has breathing room */
    }

    .navbar-nav .nav-link {
        width: 100% !important;
        text-align: center !important;
        padding: 1rem 0 !important;
    }

    .navbar-nav .nav-link::after {
        display: none !important;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    /* Hide desktop actions & separator */
    .navbar-actions,
    .navbar-separator {
        display: none !important;
    }
    
    /* Display the action buttons inside the mobile dropdown menu */
    .mobile-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1.25rem 1rem 0.5rem 1rem !important;
        width: 100% !important;
        align-items: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 0.75rem !important;
        box-sizing: border-box !important;
    }
    
    .mobile-actions.hidden-action {
        display: none !important;
    }
    
    .mobile-actions .navbar-btn.btn-orange {
        width: 85% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        box-shadow: 0 6px 15px rgba(255, 87, 34, 0.2) !important;
        border-radius: 12px !important;
    }
}

/* ========================================================
   HEADER SPACING & BREATHING ROOM OPTIMIZATIONS
   ======================================================== */

/* Wider container and less padding to push elements to screen edges */
.navbar-container {
    max-width: 1550px !important;
    padding: 0 1.25rem !important;
}

/* On intermediate desktop screens, scale down font sizes, gap and logo to prevent crowding */
@media (min-width: 1301px) and (max-width: 1440px) {
    .navbar-logo .logo-img {
        width: 210px !important; /* Slightly smaller logo */
    }
    
    .navbar-nav {
        gap: 0.95rem !important; /* Compact gap between links */
    }
    
    .navbar-separator {
        margin-left: 1rem !important;
        margin-right: 0.5rem !important;
    }
}

/* ========================================================
   CUSTOM SUCCESS MODAL & TOAST NOTIFICATION STYLES
   ======================================================== */

/* Custom Success Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 24, 55, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-card.glass-modal {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 50px rgba(9, 24, 55, 0.15);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.show .custom-modal-card.glass-modal {
    transform: none;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--navy);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Checkmark Animation */
.modal-success-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-svg {
    width: 52px;
    height: 52px;
    stroke: var(--teal);
    stroke-width: 4;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--teal);
    border-radius: 50%;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: var(--teal);
    fill: none;
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--teal);
    fill: none;
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke-circle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes stroke-check {
    100% {
        stroke-dashoffset: 0;
    }
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.modal-message {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.user-email-badge {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: var(--teal);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    word-break: break-all;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999999;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 25px rgba(9, 24, 55, 0.08);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.toast-error {
    border-left: 4px solid var(--orange) !important;
}

.toast-item.toast-success {
    border-left: 4px solid var(--teal) !important;
}

.toast-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex-grow: 1;
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--navy);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 0.8;
}

/* ========================================================
   MODERN TAB SECTION HEADERS
   ======================================================== */

.tab-section-header {
    margin-bottom: 2.5rem;
    position: relative;
    border-bottom: 1px solid rgba(9, 24, 55, 0.06);
    padding-bottom: 1.5rem;
}

.tab-section-header .tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20, 184, 166, 0.08);
    color: var(--teal);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tab-section-header .tab-badge.badge-orange {
    background: rgba(255, 87, 34, 0.08);
    color: var(--orange);
}

.tab-section-header .tab-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tab-section-header .tab-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tab-section-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
    }
    
    .tab-section-header .tab-title {
        font-size: 1.75rem;
    }
    
    .tab-section-header .tab-subtitle {
        font-size: 0.88rem;
    }
}

/* ========================================================
   RESPALDO INSTITUCIONAL PLAQUE STYLES
   ======================================================== */

.respaldo-plaque-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.respaldo-plaque {
    background: linear-gradient(135deg, #091837 0%, #152b52 100%);
    border: 3px solid #d4af37; /* Clean Gold Border */
    border-radius: 20px;
    padding: 1.75rem;
    color: var(--white);
    position: relative;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 35px rgba(9, 24, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.respaldo-plaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.respaldo-plaque:hover::before {
    left: 150%;
    transition: all 1.2s ease-in-out;
}

.respaldo-plaque:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 45px rgba(9, 24, 55, 0.35), 0 0 20px rgba(212, 175, 55, 0.15);
    border-color: #f3e5ab; /* Lighter golden glow on hover */
}

.plaque-inner-border {
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
}

.plaque-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.plaque-seal {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.plaque-header h4 {
    font-family: 'Outfit', sans-serif;
    color: #d4af37; /* Gold color */
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.plaque-divider {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.7) 50%, rgba(212, 175, 55, 0) 100%);
    margin: 0.5rem auto 0 auto;
}

.plaque-body {
    text-align: center;
}

.plaque-entity-name {
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
}

.plaque-grid {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    text-align: left;
}

.plaque-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.45rem;
}

.plaque-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plaque-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #d4af37; /* Gold label */
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
    opacity: 0.85;
}

.plaque-value {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.badge-rfc {
    font-family: monospace;
    background: rgba(212, 175, 55, 0.1);
    color: #f3e5ab;
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 700;
}

@media (max-width: 768px) {
    .respaldo-plaque {
        padding: 1.25rem;
    }
    .plaque-inner-border {
        padding: 1rem;
    }
    .plaque-header h4 {
        font-size: 1rem;
    }
}






@keyframes pulse-advisor {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Advisor Button */
.advisor-btn {
    position: fixed;
    top: 110px;
    right: 30px;
    background: #10b981;
    animation: pulse-advisor 2s infinite;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.advisor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Advisor Modal Specific Styles */
.advisor-modal-content {
    max-width: 500px;
}
.advisor-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.advisor-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.advisor-form label {
    font-weight: 600;
    color: #1A365D;
    font-size: 0.9rem;
}
.advisor-form input, .advisor-form select {
    padding: 10px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.advisor-form input:focus, .advisor-form select:focus {
    border-color: #FF6B00;
}
.schedule-group {
    background: #F8FAFC;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #CBD5E1;
}
.schedule-inputs {
    display: flex;
    gap: 10px;
}
.schedule-inputs > * {
    flex: 1;
}
@media (max-width: 768px) {
    .advisor-btn {
        top: 90px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .schedule-inputs {
        flex-direction: column;
    }
}


/* Hidden Utilities for Advisor Modal */
.modal-overlay.hidden {
    display: none !important;
}
.form-group.hidden {
    display: none !important;
}

/* Custom Select Styles to prevent native Chromium dropdown displacement */
.custom-select-container {
    position: relative;
    flex: 1;
    display: block;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1A365D;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    height: 100%;
    box-sizing: border-box;
}
.custom-select-trigger:hover {
    border-color: #CBD5E1;
}
.custom-select-container.open .custom-select-trigger {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}
.chevron-icon {
    transition: transform 0.3s ease;
}
.custom-select-container.open .chevron-icon {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(9, 24, 55, 0.1);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-sizing: border-box;
}
.custom-select-container.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
    color: #1A365D;
    text-align: left;
}
.custom-select-option.placeholder-option {
    color: #A0AEC0;
    cursor: not-allowed;
    background-color: #F8FAFC;
}
.custom-select-option:not(.placeholder-option):hover {
    background-color: #F8FAFC;
    color: #FF6B00;
}
.custom-select-option.selected {
    background-color: #FFF5EC;
    color: #FF6B00;
    font-weight: 600;
}

/* Visually Hidden but focusable for native validation */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

