/* ============================================
   DIPLOMADOS ULA - Premium Styles
   Separated CSS file (June 2026)
   ============================================ */

:root {
    --navy: #021B32;
    --green: #58B91A;
    --cyan: #50D2E3;
}

body {
    font-family: 'Poppins', system_ui, sans-serif;
}

/* Editorial Typography */
.editorial-title {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.premium-text {
    font-weight: 400;
    line-height: 1.65;
}

/* Premium Card Styling */
.diplomado-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s ease;
    will-change: transform, box-shadow;
}

.diplomado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(2 27 50 / 0.08), 0 8px 10px -6px rgb(2 27 50 / 0.08);
}

.diplomado-card.expanded {
    box-shadow: 0 25px 50px -12px rgb(2 27 50 / 0.15);
}

/* Details expansion container */
.card-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.23, 1.0, 0.32, 1), 
                opacity 0.5s ease 0.1s;
}

.card-details.open {
    max-height: 2000px;
    opacity: 1;
}

/* Parallax & 3D layers in Hero */
.hero-visual {
    perspective: 1200px;
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.floating-element {
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1.5deg); }
}

.ecg-line {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: ecg-draw 2.8s ease forwards;
}

@keyframes ecg-draw {
    to { stroke-dashoffset: 0; }
}

/* Text reveal spans */
.word {
    display: inline-block;
    will-change: transform, opacity;
}

/* Premium Button Styles */
.btn-primary {
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(88 185 26 / 0.3), 0 4px 6px -4px rgb(88 185 26 / 0.3);
}

.btn-primary:active {
    transform: scale(0.985);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #58B91A 0%, #4a9c16 100%);
}

/* Floating WhatsApp */
.whatsapp-float {
    box-shadow: 0 10px 15px -3px rgb(88 185 26 / 0.4), 
               0 4px 6px -4px rgb(88 185 26 / 0.4);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(88 185 26 / 0.35);
}

/* Holographic / Cyan accents */
.holo-accent {
    position: relative;
}

.holo-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #50D2E3, #58B91A);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.holo-accent:hover::after {
    width: 100%;
}

/* Section breathing */
.section-breathing {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

@media (min-width: 1024px) {
    .section-breathing {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

/* Subtle grid pattern for hero */
.hero-grid {
    background-image: 
        linear-gradient(rgba(80, 210, 227, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 210, 227, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
}

/* Faculty avatar styling */
.faculty-avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 10px -3px rgb(2 27 50 / 0.15);
}

/* Module item */
.module-item {
    transition: all 0.2s ease;
}

.module-item:hover {
    transform: translateX(4px);
    background-color: #F8F9FA;
}

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

/* Custom scrollbar for premium feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #021B32;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #50D2E3;
}

/* Mobile navbar/menu responsive support */
.mobile-menu-panel {
    height: 100dvh;
    overflow-y: auto;
    padding: 1.25rem;
}

.mobile-menu-header {
    margin-bottom: 2.5rem;
}

.mobile-menu-logo {
    width: 5rem;
    height: 2.75rem;
    flex: 0 0 auto;
}

.mobile-menu-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mobile-menu-brand {
    font-size: 2rem;
    line-height: 1;
}

.mobile-menu-tagline {
    font-size: 0.8rem;
    line-height: 1.1;
}

.mobile-menu-close {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    border-radius: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: #F8F9FA;
    color: var(--navy);
}

.mobile-menu-links {
    gap: 1rem;
    font-size: 1.25rem;
}

.mobile-menu-links > a {
    color: var(--navy);
    padding: 0.9rem 1rem;
    border-radius: 1.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-links > a:hover {
    background-color: #F8F9FA;
    color: var(--green);
}

.mobile-menu-cta-wrap {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgb(2 27 50 / 0.1);
}

.mobile-menu-cta {
    padding: 1rem;
    border-radius: 1rem;
}

@media (max-width: 767px) {
    #navbar .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #navbar .h-20 {
        height: 4.75rem;
    }

    #navbar .flex.items-center.gap-x-3\.5 {
        min-width: 0;
        flex: 1 1 auto;
    }

    #navbar .w-28 {
        width: 4.75rem;
        height: 2.5rem;
        flex: 0 0 auto;
    }

    #navbar img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    #navbar .leading-none {
        min-width: 0;
    }

    #navbar .leading-none > div:first-child {
        font-size: 1.75rem;
        line-height: 1;
    }

    #navbar .leading-none > div:last-child {
        max-width: 10rem;
        font-size: 0.72rem;
        line-height: 1.1;
        white-space: normal;
    }

    #mobile-menu-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 374px) {
    #navbar .w-28 {
        width: 4.25rem;
    }

    #navbar .leading-none > div:first-child {
        font-size: 1.45rem;
    }

    #navbar .leading-none > div:last-child {
        max-width: 8.5rem;
        font-size: 0.64rem;
    }

    .mobile-menu-panel {
        padding: 1rem;
    }

    .mobile-menu-logo {
        width: 4.25rem;
    }

    .mobile-menu-brand {
        font-size: 1.55rem;
    }

    .mobile-menu-tagline {
        font-size: 0.68rem;
    }
}

