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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0D0D1A;
    color: #e0e0e0;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #673ab7, #b388ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #a0a0b0;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b388ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #b388ff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: calc(100vh - 100px);
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-text h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #b388ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: #a0a0b0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        min-height: auto;
        padding-top: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1a1a2e;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(179, 136, 255, 0.2);
    max-width: 400px;
    width: 90%;
}

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

.modal-content h2 {
    color: #fff;
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #a0a0b0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(90deg, #673ab7, #b388ff);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

/* Toast de Construcción (Esquina inferior izquierda) */
.construction-toast {
    position: fixed;
    bottom: -200px;
    left: 24px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(179, 136, 255, 0.25);
    border-radius: 12px;
    padding: 1rem 2rem 1rem 1.2rem;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, bottom 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.construction-toast.show {
    bottom: 24px;
    opacity: 1;
    pointer-events: all;
}

.construction-toast.hide {
    transform: translateX(-120%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.toast-content {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.toast-icon {
    font-size: 1.6rem;
    line-height: 1;
    animation: pulse-slow 2.5s infinite ease-in-out;
}

.toast-text h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.toast-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #a0a0b0;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.toast-close:hover {
    color: #b388ff;
    transform: scale(1.15);
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (max-width: 480px) {
    .construction-toast {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: -200px;
    }
    .construction-toast.show {
        bottom: 16px;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem 5%;
    background: rgba(13, 13, 26, 0.4);
    border-top: 1px solid rgba(179, 136, 255, 0.08);
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #606080;
    letter-spacing: 0.5px;
    font-weight: 400;
}
