@font-face {
    font-family: 'SF Pro Display';
    src: url('/static/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/static/fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Brand Colors */
    --energy-green: #00A443;
    --energy-green-rgb: 0, 164, 67;
    --energy-green-hover: #008f3a;

    --science-blue: #FF9C1A;
    --science-blue-rgb: 255, 156, 26;

    --innovation-orange: #57c4ff;
    --innovation-orange-rgb: 87, 196, 255;

    /* Semantic Aliases */
    --primary-green: var(--energy-green);
    --primary-green-rgb: var(--energy-green-rgb);
    --primary-green-hover: var(--energy-green-hover);
    --primary-blue: var(--science-blue);
    --primary-orange: var(--innovation-orange);
    --primary-color: var(--energy-green);
    /* Default primary */

    /* Text Colors */
    --text-main: #425466;
    --text-heading: #0a2540;
    --text-dark-blue: #1a2b3c;
    --text-white: #ffffff;
    --text-muted: #475569;
    --text-light-slate: #64748b;
    --text-accent: #FF9C1A;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fcff;
    --bg-card: rgba(255, 255, 255, 0.95);

    /* UI Decor & Functional */
    --status-active: #00A443;
    --separator: #eee;
    --logout-blue: var(--primary-blue);
    --overlay-dim: rgba(0, 0, 0, 0.3);
    --border-soft: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.04);
    --shadow-green: rgba(var(--energy-green-rgb), 0.12);

    /* Animation & Transitions */
    --dark: 0;
    --transition: 0.28s;
    --font-size: 1rem;
    --bg: transparent;
    --color: var(--text-white);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body {
    min-height: 100vh;
    background: var(--bg);
    margin: 0;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --dark: 1;
    }
}

button {
    outline-color: hsl(0 0% calc(var(--dark) * 100%));
    --padding: calc(var(--font-size) * 0.75);
    cursor: pointer;
    font-family: 'SF Pro Display';
    font-weight: bold;
    background: var(--bg);
    font-size: var(--font-size);
    border-radius: calc(var(--font-size) * 1.5);
    border: 4px solid white;
    color: rgb(7, 7, 7);
    position: relative;
    transition: border-color var(--transition);
    min-width: max-content;
}

button:is(:hover, :focus-visible) {
    border: 4px solid white;
    transform: scale(1.05);
    color: white;
}

button>span {
    background: var(--bg);
    padding: calc(var(--font-size) * 0.9) calc(var(--font-size) * 1.36);
    display: grid;
    align-items: center;
    transition: grid-template-columns var(--transition);
    white-space: nowrap;
    min-width: max-content;
}

button:after {
    content: "";
    position: absolute;
    inset: calc(var(--font-size) * -0.6);
    background: hsl(0 0% 100% / 0.45);
    filter: blur(calc(var(--font-size) * 1));
    scale: var(--hovered, 0);
    z-index: -1;
    transition: scale var(--transition), filter var(--transition);
}

button:hover {
    --hovered: 1;
}

/* Apple-style Navigation */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--energy-green);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: center;
}

/* Estilos para el separador y el link de cerrar sesión en el dropdown de usuario */
.logout-separator {
    border-top: 1px solid var(--separator);
    margin-top: 5px;
    padding-top: 5px;
}

.logout-link {
    color: var(--logout-blue) !important;
}


.nav-content {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    transition: opacity 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.nav-link:hover {
    opacity: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.nav-logo img {
    height: 100px;
    width: auto;
}

.user-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-area-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-area-link:hover .user-icon {
    transform: scale(1.1);
    color: var(--science-blue);
}

.mobile-user-text {
    display: none;
    /* Hidden on desktop */
}

/* Dropdown container */
.nav-dropdown {
    position: absolute;
    top: 90px;
    /* Header height */
    left: 0;
    width: 100%;
    height: 0;
    background: var(--energy-green);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    visibility: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .nav-dropdown {
    height: 375px;
    /* Adjust based on content */
    visibility: visible;
}

.dropdown-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Up to 4 columns */
    gap: 40px;
}

.dropdown-column h3 {
    color: var(--innovation-orange);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column li {
    margin-bottom: 8px;
}

.dropdown-column a {
    color: #e8e8ed;
    text-decoration: none;
    font-size: 20px;
    /* Large, like Apple's titles */
    font-weight: 600;
    display: block;
}

.dropdown-column a:hover {
    color: var(--science-blue);
    /* Apple Blue */
    text-decoration: none;
}

.dropdown-column .sub-text {
    font-size: 14px;
    font-weight: 400;
}

/* Unified background blur overlay when header is hovered */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    /* Slight dimming */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    /* Just below global-nav (9999) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

body:has(.global-nav:hover)::after {
    opacity: 1;
    visibility: visible;
}



.page-content {
    padding-top: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
}





/* News Section Styles */
.news-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(var(--energy-green-rgb), 0.12);
    border-color: rgba(var(--energy-green-rgb), 0.2);
}

.news-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--energy-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--energy-green);
    border-radius: 50%;
}

.news-card h2 {
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.news-excerpt {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.read-more {
    font-size: 15px;
    font-weight: 800;
    color: var(--energy-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card {
        padding: 25px;
    }
}





/* =========================================
   RESPONSIVE DESIGN SYSTEM - COMPREHENSIVE MOBILE SUPPORT
   ========================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    min-width: auto;
    box-shadow: none;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-toggle:hover {
    transform: none;
    border: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tablet & Small Desktop Adjustments */
@media (max-width: 1024px) {

    .section-container,
    .nav-content {
        padding-left: 30px;
        padding-right: 30px;
        max-width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-media {
        height: 400px;
    }

    /* Reduce complex animations on tablets */
    .connection-path {
        display: none;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* ===== NAVIGATION ===== */
    .global-nav {
        height: 70px;
    }

    .nav-content {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Space out hamburger and logo */
        gap: 15px;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: block;
        order: 1;
        /* Left */
    }

    /* Desktop logo visible on mobile on the right */
    .nav-content>.nav-logo {
        display: flex;
        order: 2;
        /* Right due to justify-content */
        padding: 0;
        margin-left: auto;
        /* Push it to the right just in case */
        flex-shrink: 0;
    }

    .nav-content>.nav-logo img {
        height: 45px;
        /* Slightly smaller for mobile header */
        width: auto;
        display: block;
    }

    .global-nav {
        cursor: pointer;
    }

    .nav-list {
        cursor: default;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--energy-green);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px 0;
        gap: 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        /* No horizontal scroll in menu */
        z-index: 10000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        order: 3;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        width: 60%;
        padding: 18px 25px;
        font-size: 16px;
        justify-content: flex-start;
    }

    /* Mobile Dropdown Handling */
    .nav-dropdown {
        position: static !important;
        width: 100% !important;
        height: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-bottom: none !important;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: block !important;
        /* Restore display to allow height transition */
    }

    .nav-item.mobile-active .nav-dropdown {
        height: auto !important;
        visibility: visible !important;
        padding-bottom: 10px;
        color: var(--primary-blue) !important;
    }

    .dropdown-content {
        padding: 0 25px 20px !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .dropdown-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .dropdown-column h3 {
        padding-top: 15px;
        margin-bottom: 10px;
        opacity: 0.7;
    }

    .dropdown-column a {
        font-size: 16px !important;
        padding: 8px 0;
    }

    .mobile-user-text {
        display: inline !important;
        margin-left: 10px;
    }

    .logout-separator {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
    }

    .logout-link {
        /* Brighter red for visibility */
        font-weight: 700 !important;
    }

    /* Chevron indicators for mobile */
    .nav-item.has-dropdown>.nav-link::after {
        content: '+';
        margin-left: auto;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .nav-item.has-dropdown.mobile-active>.nav-link::after {
        content: '-';
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* ===== LAYOUT ===== */
    body {
        font-size: 14px;
    }

    .page-content {
        padding-top: 70px;
    }

    .main-content {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }

    /* ===== TYPOGRAPHY ===== */
    :root {
        --font-size: 0.875rem;
    }

    h1,
    .hero-title,
    .section-title {
        font-size: clamp(28px, 8vw, 48px) !important;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p,
    .hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    /* ===== GRIDS ===== */
    .itineraries-grid,
    .news-grid,
    .dropdown-columns,
    .modal-options,
    .capsules-container,
    .feature-steps,
    .benefits-grid,
    .itinerary-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .news-grid {
        gap: 25px;
    }

    /* ===== BUTTONS & INTERACTIVE ===== */
    button,
    .submit-btn,
    .pay-btn,
    .enroll-btn {
        min-height: 44px;
        font-size: 16px;
        padding: 14px 24px;
    }

    /* Reduce hover transforms on mobile */
    button:hover,
    .submit-btn:hover {
        transform: translateY(-1px);
    }

    /* ===== CARDS ===== */
    .news-card,
    .itinerary-card,
    .value-card,
    .overlay-card {
        padding: 25px;
    }

    .user-card {
        padding: 20px;
    }

    /* ===== AREA PERSONAL ===== */
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .user-avatar {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }

    .credentials-carousel-container {
        padding: 0 10px;
    }

    /* ===== MODALS ===== */
    .modal-card {
        padding: 30px 20px;
        width: 95%;
        max-width: 500px;
    }

    .modal-overlay {
        padding: 20px;
    }

    /* ===== SECTIONS ===== */
    .news-section,
    .values-section,
    .team-section {
        padding: 60px 20px;
    }

    /* ===== PERFORMANCE & ANIMATIONS ===== */
    /* Slow down animations on mobile */
    * {
        animation-duration: 0.6s !important;
    }

    /* Specific slow animations */
    @keyframes rotating {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .rotating-seal {
        animation: rotating 15s linear infinite !important;
    }

    /* Collaborators ticker - slower on mobile */
    .ticker {
        animation-duration: 40s !important;
    }

    /* Disable background overlay blur on mobile for performance */
    body::after {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Small Mobile Devices */
@media (max-width: 425px) {
    .global-nav {
        height: 60px;
    }

    .nav-list {
        top: 60px;
        height: calc(100vh - 60px);
        width: 90%;
    }

    .nav-logo img {
        height: 40px;
    }

    h1,
    .hero-title {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    .modal-card {
        padding: 20px 15px;
    }

    .news-card,
    .itinerary-card {
        padding: 20px;
    }
}