@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

/* ===== Mobile menu toggle animation (used by main.js) ===== */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile nav dropdown ===== */
@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 20px 60px rgba(8, 54, 61, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
        transform: translateY(8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        display: flex !important;
        flex-direction: column;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-links ul li a {
        display: block;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
    }

    .nav-links ul li a:hover {
        background: rgba(79, 197, 193, 0.08);
    }
}

/* ===== Status messages (used by contact form and eliminar-cuenta JS) ===== */
.status {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    background: rgba(79, 197, 193, 0.08);
    color: #08363d;
    display: block;
}

.status:empty {
    display: none;
}

.status.success {
    border-color: rgba(79, 197, 193, 0.4);
}

.status.error {
    background: rgba(255, 99, 132, 0.08);
    border-color: rgba(255, 99, 132, 0.4);
    color: #6b1521;
}

/* ===== Foundation list items (dynamically created by eliminar-cuenta.js) ===== */
.foundation-name {
    font-weight: 600;
    color: #08363d;
}

.foundation-id {
    font-size: 0.75rem;
    color: #55787f;
    font-family: monospace;
}

#foundations-list li {
    background: white;
    border: 1px solid rgba(79, 197, 193, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
