@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

:root {
    --color-primary: #42695d;
    --color-primary-light: #6d837a;
    --color-secondary: #ed7705;
    --color-secondary-light: #f6a800;
    --color-bg: #f0f2f1;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--color-bg);
    font-family: 'Inter', sans-serif;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 242, 241, 0.85) 0%, rgba(240, 242, 241, 0.3) 50%, rgba(240, 242, 241, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    background: rgba(66, 105, 93, 0.08);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease-out;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
    animation: badgePulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    max-width: 1100px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 30px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title .highlight-primary {
    background: linear-gradient(135deg, #6d837a, #42695d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight-secondary {
    background: linear-gradient(135deg, #f6a800, #ed7705);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cnc-siglas {
    font-size: 0.5em;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.5);
    -webkit-text-fill-color: rgba(26, 26, 46, 0.5);
    vertical-align: middle;
}

.hero-subtitle-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    font-weight: 600;
    color: rgba(26, 26, 46, 0.55);
    letter-spacing: 0.12em;
    margin: 0.75rem 0 2rem;
    animation: fadeInUp 1s ease-out 0.45s both;
    text-transform: uppercase;
    max-width: 900px;
}

.hero-subtitle-small::before,
.hero-subtitle-small::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 105, 93, 0.2), transparent);
}

.hero-subtitle-small .highlight-primary {
    background: linear-gradient(135deg, #6d837a, #42695d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    color: rgba(26, 26, 46, 0.7);
    max-width: 800px;
    line-height: 1.7;
    margin: 0 0 2.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 30px rgba(237, 119, 5, 0.25);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(237, 119, 5, 0.4);
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: 1.5px solid rgba(109, 131, 122, 0.4);
    border-radius: 50px;
    background: rgba(109, 131, 122, 0.08);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--color-secondary);
    background: rgba(237, 119, 5, 0.08);
    color: var(--color-secondary);
    box-shadow: 0 8px 40px rgba(237, 119, 5, 0.12);
}

.hero-login-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(66, 105, 93, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.hero-login-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(66, 105, 93, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    animation: fadeInUp 1.5s ease-out 1.5s both;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(66, 105, 93, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    height: 120px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(26, 26, 46, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-feature i {
    color: var(--color-secondary);
    font-size: 1rem;
}

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.login-modal {
    background: #fff;
    border: 1px solid rgba(66, 105, 93, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-modal-overlay.active .login-modal {
    transform: scale(1) translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(66, 105, 93, 0.08);
    color: rgba(66, 105, 93, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: rgba(66, 105, 93, 0.15);
    color: var(--color-primary);
}

.login-modal h2 {
    color: #1a1a2e;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.login-modal p {
    color: rgba(26, 26, 46, 0.5);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.login-modal .form-floating {
    margin-bottom: 1rem;
}

.login-modal .form-floating label {
    color: rgba(26, 26, 46, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

.login-modal .form-control {
    background: rgba(66, 105, 93, 0.04);
    border: 1px solid rgba(66, 105, 93, 0.15);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: #1a1a2e;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-modal .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 105, 93, 0.1);
    background: #fff;
}

.login-modal .form-control::placeholder {
    color: rgba(26, 26, 46, 0.2);
}

.login-modal .btn-submit {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-modal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(237, 119, 5, 0.3);
}

.login-modal .register-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: rgba(26, 26, 46, 0.5);
    font-size: 0.85rem;
}

.login-modal .register-link a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-modal .register-link a:hover {
    color: var(--color-secondary-light);
}

.login-modal .modal-logo {
    display: block;
    max-height: 100px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

/* View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.08; }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(30); opacity: 0; }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .hero-content {
        justify-content: flex-start;
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }
    .hero-badge {
        margin-bottom: 1.25rem;
        padding: 0.4rem 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin-bottom: 0.25rem;
    }
    .hero-subtitle-small {
        margin: 0.5rem 0 1.25rem;
    }
    .hero-subtitle {
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.85rem 2rem;
    }
    .hero-scroll-indicator {
        margin-top: 1rem;
    }
    .hero-login-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .hero-logo {
        top: 1rem;
        left: 1rem;
        height: 56px;
    }
    .login-modal {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 4rem;
    }
    .hero-logo {
        height: 44px;
    }
    .hero-subtitle-small::before,
    .hero-subtitle-small::after {
        display: none;
    }
}
